-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Rearrange i18n Resource files into a directory #1235
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
Conversation
The "app/src/processing/app" directory became mess because there are a lot of "Resources_*.po" and "Resources_*.properties" files for the internationalization. Moved the resource related files into a directory "i18n" under the "app/src/processing/app" directory. This is for developers only. No feature changed.
* The shell should be "bash" not "sh". * Added an ability to update specific files only.
Without sorting the key, it is difficult to maintain the language resource files on Git.
* Translated missing texts. * Small fixes for translation.
@cmaglie @ffissore @dcuartielles Sorry to ask to you directly. I will appreciate if you can merge this pull request a little bit earlier. This will make it easier to manage the result of Transifex on Git. The last commit a6c6a71 is not required, but please include if it is not a problem (this can be done on Transifex if the POT file is up-to-date). |
Rearrange i18n Resource files into a directory
@sgk |
Thank you! Do you mean Transifex integration like my recent commit 3dd601f ? This commit is a little bit large because it adds the Python "reqeusts" library. The core of the commit is "i18n/python/pull.py". This retrieves the translation from Transifex. Please read the instruction: Currently, the script can only retrieve the translation from Transifex. I will try to write another script to "push" local file to Transifex. |
Cool, I didn't noticed the pull script, that answer part of my question. My main concern is: how can I push new strings into transifex? The 1.5.x series has a bunch of new strings to be translated. |
I think it can be done by first incorporate the new strings into "*.po" files by using "./update.sh", run "./pull.sh", and then "push" the files to Transifex. I will try to write a script to "push". |
I added a "./push.sh" script in the commit 4d94310. https://github.com/sgk/Arduino/tree/transifex/app/src/processing/app/i18n |
I have submitted a pull request for this. See #1312. Please merge if you like it. You should be able to push the new strings into Transifex as follows.
This may require a project administrator permission for Transifex. |
The "app/src/processing/app" directory became mess because there are
a lot of "Resources__.po" and "Resources__.properties" files for the
internationalization.
Moved the resource related files into a directory "i18n" under the
"app/src/processing/app" directory.
This is for developers only. No feature changed.