android icon indicating copy to clipboard operation
android copied to clipboard

Translations are not synced ...

Open DeepDiver1975 opened this issue 13 years ago • 15 comments

@davivel almost all other ownloud repos are synced every night with transifex.com to get the latest translations.

Are you interested in getting this setup as well?

DeepDiver1975 avatar Jun 02 '13 22:06 DeepDiver1975

Yes, I am :)

davivel avatar Jun 03 '13 07:06 davivel

sync job is in place: https://ci.tmit.eu/job/translation-sync-android/

DeepDiver1975 avatar Jun 03 '13 22:06 DeepDiver1975

@DeepDiver1975 , it's not working. There is a credentials error.

davivel avatar Jun 04 '13 06:06 davivel

@karlitschek @davivel Can you please grant me write permissions to this repo? THX

DeepDiver1975 avatar Jun 04 '13 20:06 DeepDiver1975

@DeepDiver1975 I will make the change now. Sorry, I can't change permissions.

davivel avatar Jun 05 '13 08:06 davivel

@karlitschek THX @davivel up and running: https://ci.tmit.eu/job/translation-sync-android/6/

DeepDiver1975 avatar Jun 05 '13 12:06 DeepDiver1975

Thank you very much, @DeepDiver1975 . No more manual updates! :)

davivel avatar Jun 05 '13 14:06 davivel

one issue remains due to the exotic language en@pirate - I'll fix that tonight

DeepDiver1975 avatar Jun 05 '13 14:06 DeepDiver1975

Yes, that won't build in Android.

davivel avatar Jun 05 '13 16:06 davivel

@DeepDiver1975 , seems that pirate translation is being downloaded again with every pull from Transfex. What options are being passed to tx pull in the script? We need to update .tx/config so that pirate English is ignored.

davivel avatar Jun 07 '13 09:06 davivel

I've seen the build failing .... sigh

I have to read through the tx docu on this

DeepDiver1975 avatar Jun 07 '13 09:06 DeepDiver1975

I can do it myself if you will. Just would like to know what options are being passed now to the tx command , in case we don't need to change it and can do it updating only the config file.

davivel avatar Jun 07 '13 10:06 davivel

Pirate problem solved. Here is the next issue:

     [aapt] /var/lib/jenkins/jobs/ownCloud-Android/workspace/res/values-pt-rBR/strings.xml:118: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
     [aapt] /var/lib/jenkins/jobs/ownCloud-Android/workspace/res/values-pt-rBR/strings.xml:118: error: Unexpected end tag string
     [aapt] /var/lib/jenkins/jobs/ownCloud-Android/workspace/res/values-ru/strings.xml:115: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
     [aapt] /var/lib/jenkins/jobs/ownCloud-Android/workspace/res/values-ru/strings.xml:115: error: Unexpected end tag string

DeepDiver1975 avatar Jun 07 '13 11:06 DeepDiver1975

I solved the problem with pt-BR and ru, removing " from the start of the string and altering "5% $" to %5$s" near the end of the string.

Don't know if it's correct, though, at least it's building without problems.

cabral404 avatar Jun 11 '13 15:06 cabral404

Totally right, there are two replacement tokens wrong in those languages. Thanks, @cabral404 .

Now it's updated, both in the source and in the translations at Transifex.

davivel avatar Jun 12 '13 07:06 davivel