JohnCoates / Aerial

Apple TV Aerial Screensaver for Mac
MIT License
20.78k stars 1.05k forks source link

Localization of Aerial's UI (On hold pending next macOS release) #792

Open glouel opened 5 years ago

glouel commented 5 years ago

Edit : Just a heads up for everyone, I'm putting the UI stuff on hold until the next macOS release is announced. Currently Catalina has broken localization for screensavers and I can't workaround that bug ! We still translate video names though so if you like to help with that for another language, let us know !

Hi everyone,

With version 1.4.8, we already started a pretty important translation effort, thanks to @aitor. As of 1.5.0, we have translations for all video names, and all our custom descriptions in:

Following the release of 1.5.0, I'll be working on making Aerial's UI translatable. This should be fairly straightforward, using a Localizable.strings that we can import in Lokalise so everyone can work on their language.

This will probably take a few days for me to setup so if you are interested to give a hand with the translation in a language (you don't need to know anything about programming), keep an eye on this issue (I'll keep it pinned) or let us know in comments below which language you want to help with (I'll do french ;)) !

The same goes if you would like to help translate video names and descriptions in a language not mentionned above, let us know in this issue and @aitor or I will get you setup for this.

Thanks all!

sibwyl-batrep commented 5 years ago

Wanna join the translation team to make one for Russian, but dunno how to contact with @glouel & @aitor except here. So writing about it here

aitor commented 5 years ago

Hi @SetKam,

We had a person working on the russian translation but the work seems to have stalled so it would be great if you can work us there. Please send me your email and name (mine is my public profile @aitor) and I'll add you to the translation service.

Thank you and have a great week!

sebastiaanspeck commented 5 years ago

I added Dutch translations yesterday. Let's integrate them! 🎉

glouel commented 5 years ago

@aitor can you do the PR so I can integrate them ?

@sebastiaanspeck awesome, many thanks ! They will be in next beta !

aitor commented 5 years ago

Yep, no prob. I'll send the PR today.

On Tue, 25 Jun 2019 at 10:24, Guillaume Louel notifications@github.com wrote:

@aitor https://github.com/aitor can you do the PR so I can integrate them ?

@sebastiaanspeck https://github.com/sebastiaanspeck awesome, many thanks ! They will be in next beta !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JohnCoates/Aerial/issues/792?email_source=notifications&email_token=AAABBR3GX54VMTX46XV5X7LP4HI3RA5CNFSM4HRXP7G2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYPOOEA#issuecomment-505341712, or mute the thread https://github.com/notifications/unsubscribe-auth/AAABBR24WTE637XR6UK2RMLP4HI3RANCNFSM4HRXP7GQ .

-- Kind Regards, Aitor Garcia http://aitor.is

sebastiaanspeck commented 5 years ago

Yep, no prob. I'll send the PR today.

Any update?

glouel commented 5 years ago

Yeah sorry about that, @aitor any luck in making the PR ?

sebastiaanspeck commented 5 years ago

If you explain the steps to me, I could make the PR as well 😉

Op 6 jul. 2019 om 10:46 heeft Guillaume Louel notifications@github.com het volgende geschreven:

Yeah sorry about that, @aitor any luck in making the PR ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

glouel commented 5 years ago

I think you need specific rights. I'll have a look this afternoon.

Again sorry about that, we're usually pretty quick about this 😅

aitor commented 5 years ago

Sorry for the delay! Busy days first and then I totally forgot about it ¯_(ツ)_/¯. Here it's #825

PS: Sorry @glouel for including a small Arabic space fixing commit. Rushes are not good.

aitor commented 5 years ago

@sebastiaanspeck And thanks again for your translations!

glouel commented 5 years ago

@aitor thanks and no worries, life happens !

Will have beta out shortly.

glouel commented 5 years ago

@sebastiaanspeck here it is, finally : https://github.com/JohnCoates/Aerial/releases/tag/v1.5.1beta8

Sorry again for the delay and thanks for your translation !

sebastiaanspeck commented 5 years ago

Great! Thanks!!

Op 6 jul. 2019 om 12:51 heeft Guillaume Louel notifications@github.com het volgende geschreven:

@sebastiaanspeck here it is, finally : https://github.com/JohnCoates/Aerial/releases/tag/v1.5.1beta8

Sorry again for the delay and thanks for your translation !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

sebastiaanspeck commented 5 years ago

I've installed 1.5.1beta8 and I checked "Use community information: Dutch" and unchecked "Display in preferred language if available" (because my Mac itself is set to English). Unfortunately I still get the English descriptions. This problem also exists if I change the community information to any other language.

glouel commented 5 years ago

Can you check "Display in preferred language if available" too ? It's a bit counter intuitive but you need both checked. I really need to rethink those settings 😱

If it makes you feel any better, I got bitten by this while making the PR too so it's definitely not even obvious to me! I made a change for some reason I don't remember when we allowed to manually pick the language, but probably should make this independant.

sebastiaanspeck commented 5 years ago

Hmm.. Don't seem to have any effect. Lets hope you can fix it ASAP

glouel commented 5 years ago

Make sure both are set, but you need to close the control panel, then close system preferences for them to get picked up:

Capture d’écran 2019-07-06 à 14 02 36

When you reopen you should see your list:

Capture d’écran 2019-07-06 à 14 02 26

Note that some videos don't have custom translations (like space).

sebastiaanspeck commented 5 years ago

Yes! That made it work! Don’t know what happened but I got the Dutch list now. Many thanks!

Op 6 jul. 2019 om 14:04 heeft Guillaume Louel notifications@github.com het volgende geschreven:

Make sure both are set, but you need to close the control panel, then close system preferences for them to get picked up:

When you reopen you should see your list:

Note that some videos don't have custom translations (like space).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

aitor commented 5 years ago

@glouel Maybe a simple "Show info in [LANGUAGE COMBO]" with system language selected by default if it's one of the 10 languages we support and English of it's not.

This will merge both checks while retaining the same options and giving better defaults to users.

glouel commented 5 years ago

@aitor Yeah I was thinking about something like that, there's really no need to have a separate custom settings. Will fix that in next beta !

sebastiaanspeck commented 5 years ago

Yes. That sounds great. Because right now, I see the list in Dutch but the location information stays in English. In the logs I see a line with "locale.languageCode en" after the video started playing but the setting is set to Dutch

Op 6 jul. 2019 om 14:14 heeft Aitor García Rey notifications@github.com het volgende geschreven:

@glouel Maybe a simple "Show info in [LANGUAGE COMBO]" with system language selected by default if it's one of the 10 languages we support and English of it's not.

This will merge both checks while retaining the same options and giving better defaults to users.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

glouel commented 5 years ago

@sebastiaanspeck try to unselect all videos and only pick Buckingham palace. You should see it in Dutch. Since not all videos are translated that may be the issue. You should see your descriptions then in videos.

sebastiaanspeck commented 5 years ago

Yes! If you want, I can translate the remaining videos as well

Op 6 jul. 2019 om 14:48 heeft Guillaume Louel notifications@github.com het volgende geschreven:

@sebastiaanspeck try to unselect all videos and only pick Buckingham palace. You should see it in Dutch. Since not all videos are translated that may be the issue. You should see your descriptions then in videos.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

glouel commented 5 years ago

Yes! If you want, I can translate the remaining videos as well

What does "Prefered language:" says next to it in your case ?

In theory if you had dutch there [nl], you should get the default Apple translations for Dutch for the other videos. Unless you changed your preferred language settings to something else.

It's also quite possible that this is broken in betas with the new Catalina stuff. I'll have a look tomorrow.

sebastiaanspeck commented 5 years ago

I set my MacBook in English, but want Aerial in Durch

Op 6 jul. 2019 om 15:33 heeft Guillaume Louel notifications@github.com het volgende geschreven:

Yes! If you want, I can translate the remaining videos as well …

What does "Prefered language:" says next to it in your case ?

In theory if you had dutch there [nl], you should get the default Apple translations for Dutch for the other videos. Unless you changed your preferred language settings to something else.

It's also quite possible that this is broken in betas with the new Catalina stuff. I'll have a look tomorrow.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

glouel commented 5 years ago

I set my MacBook in English, but want Aerial in Durch

Ok that makes sense. So what you have right now is a mix of your translation and english because of your macbook settings. I'll unify all of that in next beta it should make a lot more sense :)

sebastiaanspeck commented 5 years ago

Thanks. Looking forward!

Op 6 jul. 2019 om 16:14 heeft Guillaume Louel notifications@github.com het volgende geschreven:

I set my MacBook in English, but want Aerial in Durch …

Ok that makes sense. So what you have right now is a mix of your translation and english because of your macbook settings. I'll unify all of that in next beta it should make a lot more sense :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

glouel commented 5 years ago

@sebastiaanspeck give a shot to beta 9, I massively simplified everything:

Capture d’écran 2019-07-08 à 14 15 13

No unreadable setting, just pick from the list, either keep preferred or pick a language. If you do, it will use our translation and mix it with the default ones in same language.

https://github.com/JohnCoates/Aerial/releases/download/v1.5.1beta9/Aerial.saver.zip

aidenmitchell commented 5 years ago

Has French been localized yet? I can help with that.

glouel commented 5 years ago

@ilovecats516 the descriptions, yep ! The ui however not yet, I had to put that project on hold because of the mess that is Catalina.

I’m French though so should that work resume, that language will be covered ! But thanks for the offer ;)

KyleBing commented 5 years ago

it seems that the translation is not covered all ui text part, I want to contribute in Chinese translation. How

glouel commented 5 years ago

it seems that the translation is not covered all ui text part, I want to contribute in Chinese translation. How

Hi @KyleBing

I haven't started working on the UI translation yet (because fixing Catalina was my priority). I'll let you know when I do, hopefully soon !

domdtyler commented 4 years ago

Hi! I wonder if you're planning to localise to British English? There are a few descriptions which are grammatically acceptable in American English but somewhat jarring on this side of the pond; the 'worst' offender being 'off of'. Perhaps 'near' could be used instead, if you simply wanted to keep a single English localisation? Otherwise, I'd be happy to go through and update the descriptions for Brits :-)

glouel commented 4 years ago

Hi! I wonder if you're planning to localise to British English? There are a few descriptions which are grammatically acceptable in American English but somewhat jarring on this side of the pond; the 'worst' offender being 'off of'. Perhaps 'near' could be used instead

Hi @domdtyler !

Since you are mentioning "off of", I assume you are thinking of this one, right ?

Capture d’écran 2020-02-14 à 16 04 44

If you are, this is a bit more complicated. Here's the thing, Aerial uses two sources for translations, the first one is the strings bundle coming from Apple with the list of videos. The second one is a translation effort that you see mentioned here. In here, we translate the video titles (and sometimes create them when there are duplicates, I still haven't done that for the tvOS 13 videos yet !) and have translations for some of the older videos in multiple languages.

Because of copyright issues (and a general headache avoidance on my part), we never directly modify translations from Apple (such as the substitution you suggested).

If you are curious about how this work, you can find the TVIdleScreenStrings13.bundlein Aerial's cache directory. Copy it somewhere, change its extension to .zip, and you'll see all the translations provided by Apple (you have to rename the .strings to .plist).

Now here's the thing, there's a en_GB locale already, and it's different to the common english one (en) ! And I just checked, for the one I mentioned, it's literally different for your locale :

en_GB

Spinner Dolphins in the waters off
Costa Rica

en

Spinner Dolphins in the waters off
of Costa Rica

Another one :

en_GB

Over central China travelling towards Shanghai

en

Over central China traveling toward Shanghai

So at this point, I'm wondering if you have set your locale correctly in macOS, of if there's a bug in the locale loading here. Can you check the "Costa Rica Dolphins" video in your machine and let me know if you're seeing "off" or "off of" (there's a line split in both).

Aerial should load the best locale available according to your regional settings, it's a priority system, here's what I have FYI :

Capture d’écran 2020-02-17 à 13 40 39

So in my case, it should try French, US english, UK english, then "common" english, etc... If you have the "common" one first, then it will load the en I mentioned above. If you have English U.K first, it should load en_GB.

Now this is assuming you left the default settings in Aerial, which is, in advanced, "Preferred".

Next to it, you should see what's on top of your list, so in my case :

Capture d’écran 2020-02-17 à 13 44 47

The other languages options are for our own translations (which is mostly about providing translated titles for non english languages, which aren't provided at all by Apple, and the effort regarding the older videos), and we only have a common english one. Should you set that to english, I can't recall what happen off the top of my head.

Loading common english, en, seems correct to me here, if it does.

So please check your settings first and get back to me, and we'll see what's happening here.

, if you simply wanted to keep a single English localisation? Otherwise, I'd be happy to go through and update the descriptions for Brits :-)

If you want to check our english translation effort (with all the caveats mentioned above), you can find the file here : https://github.com/JohnCoates/Aerial/blob/master/Resources/Community/en.json

If you truly strongly feel a need to have separate British English entry for those, I could consider adding that extra locale on top of the "common" english one (en), but I'm not sure these ones are as offending as the one you mentioned. As for using "British" English for "Common" English, that's not how Apple's localization system work, nor what's culturally expected nowadays, but I'm sure you are already well aware of that ;)

So check your settings that I mentioned above and get back to me so I can check if there's a locale loading issue. Thanks !

(and to everyone else reading this in this thread, I know I'm really late with getting the UI translatable, once the current UI rework is done, which should be soon, I'll get right to it. My apologies again on the delay but Catalina and auto updates have messed my schedule !).

domdtyler commented 4 years ago

Hi @glouel! Thanks for your detailed response!

I am still seeing the en localisation, rather than en_GB, despite having what I believe are the correct settings:

Screenshot 2020-02-17 at 21 50 17 Screenshot 2020-02-17 at 21 50 05

I therefore wonder whether this might be a bug? Is there anything you'd like me to try with regards to resolving it?

As for the American English being the default, I am fully resigned to it at this point :wink:

glouel commented 4 years ago

Hi @glouel! Thanks for your detailed response!

I am still seeing the en localisation, rather than en_GB, despite having what I believe are the correct settings:

Screenshot 2020-02-17 at 21 50 17

So that looks good !

Screenshot 2020-02-17 at 21 50 05

That... a bit less so. I would have expected to see en_GB between the brackets, not en. The way Apple handles locales is a bit mystical though, a lot is automated (more details here about the finer points of separating english versions : https://developer.apple.com/library/archive/technotes/tn2418/_index.html#//apple_ref/doc/uid/DTS40016588 ) and I may have something wrong in my code.

I therefore wonder whether this might be a bug? Is there anything you'd like me to try with regards to resolving it?

I think that's on my end. I'll have a look tomorrow and get back to you !

As for the American English being the default, I am fully resigned to it at this point 😉

As we say here, "c'est la vie" ;) I'll get back to you tomorrow, hopefully this should be a quick fix !

domdtyler commented 4 years ago

Perfect, thanks @glouel!

glouel commented 4 years ago

@domdtyler this is worse than I thought, it looks like the "automatic" language detection I was relying on no longer works in Catalina. I just double checked and here, with preferred selected, I get common english (en) too returned by macOS localized loading thing (with french locale!) with 2 separate macs on Catalina. No such issue with my VM in Mojave that loads the correct thing.

I did a quick check with UK locale and it works as intended in Mojave :

Capture d’écran 2020-02-18 à 15 04 21

So I guess it's one more thing Catalina broke for screensavers ! I have no idea how/why, possibly a side effect of the sandboxing that restricts us whatever languages are available in our "parent" .appex which probably isn't localized in all languages (unlike System Preferences, which we would run under previously).

I'm looking at how to fix that, might take me a while to workaround that one. Just when I thought that I had workarounds for all the Catalina bugs... This is starting to annoy me !

glouel commented 4 years ago

@aitor @Soruk @moeffju @kaaspad @kachikulu @LinkeyLeo

I've just added the keys for the names of the new tvOS 13 videos, if you have a second, could you connect to lokalise and translate them in your language ? No hurry, I should have done a while ago so no pressure ! Many thanks !

@domdtyler I can confirm that it was as I thought, it's a byproduct of the new sandboxing. I found a workaround so I'll put up a new version tonight. Stay tuned !

domdtyler commented 4 years ago

Hi @glouel! I know Catalina has been somewhat problematic, so my apologies for finding yet another problem with it! I'll get updated to the new version and let you know how it goes. Thanks again!

glouel commented 4 years ago

@domdtyler definitely not your fault ! Here's 1.8.0 which should fix your issue : https://github.com/JohnCoates/Aerial/releases/download/v1.8.0/Aerial.saver.zip

aitor commented 4 years ago

@glouel Hi there… I'll be able to translate the language I maintain this weekend. I'll signup a few folks that have been offering us help with new languages too. Sorry for the delay!

glouel commented 4 years ago

@aitor no worries, take your time ! Thanks a whole lot !

domdtyler commented 4 years ago

Hi @glouel, I'm still having the same issue. The preferred language still says en. I can provide any further information you might need :smile:

glouel commented 4 years ago

@domdtyler preferred language should still say "en" yes, it's independent, but otherwise it should be fixed. Can you check the Costa Rica video ? It should be fixed. If not please enable debug log/log to disk, and paste your log.

Edit : It shows up like this in your log:

2020-02-18 18:05:42.995 : Preferred languages : ["fr-FR", "en-US", "en-GB", "en-FR", "ja-FR", "es-FR", "pl-FR", "he-FR"]
2020-02-18 18:05:42.995 : Best matched language : fr
Soruk commented 4 years ago

Hi @glouel Polish version is translated (with some help from the French translation because English wasn't enough 😉)

glouel commented 4 years ago

Hi @glouel Polish version is translated (with some help from the French translation because English wasn't enough 😉)

Awesome, thanks a lot ! It will be in the next build !

domdtyler commented 4 years ago

@glouel it works! Thank you very much for your help!

glouel commented 4 years ago

@domdtyler glad to hear it 🎉