-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cleanup translation PR #778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup translation PR #778
Conversation
Change-Id: Iee013581f6d1e7e7387c06ce3895c378f03a6b23
Change-Id: Iaea384e3957470181d802a702d7f1a6feffea124
Change-Id: Ibeec6996cfc24d59366cfcb94297ce9007c73b9f
Change-Id: I2495679d27e4342946ad1744004639dc1bf43cb3
Change-Id: Ie45aa4e35e5078e8f6b08c1015f4b075c54f0f2f
Oh and I forgot to mention that the build is going to fail because I didn't change the preamble stuff since that's in a state of flux at the moment. |
Thanks for doing this @SUPERCILEX. For the ellipses/curved quote characters did you use a script for this? The issue is that we're going to get the bad characters back every time I import the strings files from our translation service so I'd like to have a one-click way to remove them again (that's why I am checking in scripts in the original PR) |
Change-Id: I1ffcc0168c0ab29bbfefaaf746ead0aa4da648e0
@samtstern Oh lol, I just did a find and replace in Intellij. However, I see how writing a script makes sense so I'm trying to write one, but I keep getting python charmap errors with your |
@SUPERCILEX I am using Python 2.7, I'm sure there's some way to make the script specify that but my Python fu is not that strong. |
@samtstern Haha, thanks! 😄 |
@samtstern Well that was fun, haven't used Python is ages! 😄 I wrote and used the scripts to process the new translations, but there are still some missing so the build will fail: Is that unexpected or should I disable the lint warning? PS: please squash this PR, I made some merge mistakes and my script ended up being added to the merge commit which is gross so I gave up on the other commits. Sorry about that! 😆 |
… into translations Change-Id: I6b3c7b6c30e4fb699eabd4e1cd019edf84046b4a
@SUPERCILEX yeah you're right we're still missing a few translations, I thought they had all come in but I guess they have not. So let's leave the lint warning. Happy to squash this PR once we don't have conflicts. You may want to save yourself some pain and wait until I have 100% of the translations put into the main PR so that you only have to resolve conflicts one more time. Should be today or tomorrow. |
Change-Id: I530e90a032b58211ba6ee85595f7c43a0f499bdb
Change-Id: Ibb8a5b10395127e428ce21b9cd27fbd8535ed9a2
@samtstern Cool beans! 😄 Can you tell me when all the translations have been imported? Thanks! |
@SUPERCILEX definitely, will do |
Change-Id: I2a91ae6a2a8d8950713aafa2391c16e4afc1fbcd
…s-cleanup # Conflicts: # auth/src/main/res/values-ar/strings.xml # auth/src/main/res/values-bn/strings.xml # auth/src/main/res/values-gu/strings.xml # auth/src/main/res/values-hi/strings.xml # auth/src/main/res/values-hr/strings.xml # auth/src/main/res/values-mr/strings.xml # auth/src/main/res/values-ms/strings.xml # auth/src/main/res/values-sl/strings.xml # auth/src/main/res/values-ta/strings.xml # auth/src/main/res/values-tl/strings.xml # auth/src/main/res/values-uk/strings.xml # auth/src/main/res/values-ur/strings.xml
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
@samtstern Merged! We're all ready to go! 😄 |
@SUPERCILEX I am going to merge translations soon (as soon as the build turns green). Let's do your PR against |
@samtstern SGTM! Can you wait until Monday to release |
@SUPERCILEX no problem, wasn't planning on releasing today anyway. |
…ations-cleanup # Conflicts: # app/src/main/AndroidManifest.xml # auth/src/main/res/values-b+es+419/strings.xml # auth/src/main/res/values-bg/strings.xml # auth/src/main/res/values-bn/strings.xml # auth/src/main/res/values-ca/strings.xml # auth/src/main/res/values-cs/strings.xml # auth/src/main/res/values-da/strings.xml # auth/src/main/res/values-de-rAT/strings.xml # auth/src/main/res/values-de-rCH/strings.xml # auth/src/main/res/values-de/strings.xml # auth/src/main/res/values-el/strings.xml # auth/src/main/res/values-en-rAU/strings.xml # auth/src/main/res/values-en-rCA/strings.xml # auth/src/main/res/values-en-rGB/strings.xml # auth/src/main/res/values-en-rIE/strings.xml # auth/src/main/res/values-en-rIN/strings.xml # auth/src/main/res/values-en-rSG/strings.xml # auth/src/main/res/values-en-rZA/strings.xml # auth/src/main/res/values-es-rAR/strings.xml # auth/src/main/res/values-es-rBO/strings.xml # auth/src/main/res/values-es-rCL/strings.xml # auth/src/main/res/values-es-rCO/strings.xml # auth/src/main/res/values-es-rCR/strings.xml # auth/src/main/res/values-es-rDO/strings.xml # auth/src/main/res/values-es-rEC/strings.xml # auth/src/main/res/values-es-rGT/strings.xml # auth/src/main/res/values-es-rHN/strings.xml # auth/src/main/res/values-es-rMX/strings.xml # auth/src/main/res/values-es-rNI/strings.xml # auth/src/main/res/values-es-rPA/strings.xml # auth/src/main/res/values-es-rPE/strings.xml # auth/src/main/res/values-es-rPR/strings.xml # auth/src/main/res/values-es-rPY/strings.xml # auth/src/main/res/values-es-rSV/strings.xml # auth/src/main/res/values-es-rUS/strings.xml # auth/src/main/res/values-es-rUY/strings.xml # auth/src/main/res/values-es-rVE/strings.xml # auth/src/main/res/values-es/strings.xml # auth/src/main/res/values-fa/strings.xml # auth/src/main/res/values-fi/strings.xml # auth/src/main/res/values-fil/strings.xml # auth/src/main/res/values-fr-rCH/strings.xml # auth/src/main/res/values-fr/strings.xml # auth/src/main/res/values-gsw/strings.xml # auth/src/main/res/values-gu/strings.xml # auth/src/main/res/values-hi/strings.xml # auth/src/main/res/values-hr/strings.xml # auth/src/main/res/values-hu/strings.xml # auth/src/main/res/values-in/strings.xml # auth/src/main/res/values-it/strings.xml # auth/src/main/res/values-ja/strings.xml # auth/src/main/res/values-kn/strings.xml # auth/src/main/res/values-ko/strings.xml # auth/src/main/res/values-ln/strings.xml # auth/src/main/res/values-lt/strings.xml # auth/src/main/res/values-lv/strings.xml # auth/src/main/res/values-mo/strings.xml # auth/src/main/res/values-mr/strings.xml # auth/src/main/res/values-ms/strings.xml # auth/src/main/res/values-nb/strings.xml # auth/src/main/res/values-nl/strings.xml # auth/src/main/res/values-no/strings.xml # auth/src/main/res/values-pl/strings.xml # auth/src/main/res/values-pt-rBR/strings.xml # auth/src/main/res/values-pt-rPT/strings.xml # auth/src/main/res/values-pt/strings.xml # auth/src/main/res/values-ro/strings.xml # auth/src/main/res/values-ru/strings.xml # auth/src/main/res/values-sk/strings.xml # auth/src/main/res/values-sl/strings.xml # auth/src/main/res/values-sr/strings.xml # auth/src/main/res/values-sv/strings.xml # auth/src/main/res/values-ta/strings.xml # auth/src/main/res/values-th/strings.xml # auth/src/main/res/values-tl/strings.xml # auth/src/main/res/values-tr/strings.xml # auth/src/main/res/values-uk/strings.xml # auth/src/main/res/values-ur/strings.xml # auth/src/main/res/values-vi/strings.xml # auth/src/main/res/values-zh-rCN/strings.xml # auth/src/main/res/values-zh-rHK/strings.xml # auth/src/main/res/values-zh-rTW/strings.xml # auth/src/main/res/values-zh/strings.xml # library/src/main/AndroidManifest.xml # scripts/translations/base_string_script.py # scripts/translations/clean_up_translations.sh # scripts/translations/remove_non_translatable.py # scripts/translations/remove_string.py
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
@samtstern All merged up and ready to roll! |
@@ -10,8 +10,8 @@ | |||
|
|||
class BaseStringScript: | |||
|
|||
def ProcessTag(self, lines): | |||
return lines | |||
def ProcessTag(self, line): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename doesn't bother me but just FYI this is an array of multiple lines in the case where the <string>
tag occupies more than one line in the XML file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samtstern oh, got it. Yeah, I was confused when writing my script because I thought it was all lines of the whole file. I see what you meant now—either way, #namingishard 😂
@SUPERCILEX thanks for all the merge insanity. |
@samtstern There were too many things to review on #771 so I made a PR, hope you don't mind! 😄
Changelog: