User Tools

Site Tools


poeditor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
poeditor [2020/06/11 16:12] – [Making strings available for translation] rjs7poeditor [2023/12/13 15:54] (current) – [Making strings available for translation] tmccanna
Line 4: Line 4:
 ===== Join the Project ===== ===== Join the Project =====
  
-Request to join the POeditor Evergreen project.  An Evergreen admin will need to approve you before you can add translations.  If you want to help with the translation process, ask on the Evergreen General email list.+Request to join the POEditor Evergreen project.  An Evergreen admin will need to approve you before you can add translations.  If you want to help with the translation process, ask on the Evergreen General email list.
  
-  * [[https://poeditor.com/join/project/2FlOsiPYag|Join Evergreen on POeditor]]+  * [[https://poeditor.com/join/project/2FlOsiPYag|Join Evergreen on POEditor]]
  
 ===== Making strings available for translation ===== ===== Making strings available for translation =====
  
 +You will need to be an admin in poeditor.com in order to do the following steps.
  
 To upload new strings to poeditor.com: To upload new strings to poeditor.com:
  
-  - In the ''Open-ILS/src/eg2'' directory, run ''npm run export-strings''+  - In the ''Open-ILS/src/eg2'' directory, run ''npm run export-strings''. The output file is ''Open-ILS/src/eg2/locale/messages.xmb''.
   - Go to [[https://poeditor.com/projects/import?id=218177|the importer]]   - Go to [[https://poeditor.com/projects/import?id=218177|the importer]]
-  - Upload the xmb file -- make sure that "Import terms onlyis checked+  - Upload the ''Open-ILS/src/eg2/locale/messages.xmb'' file. Be sure to enable "Also import translations to a language" and select English (this will keep English at 100% translated):{{:screenshot-import.png?800|}} 
-  - Go to the [[https://poeditor.com/projects/import_translations?id_language=43&id=218177|English language importer]] and import the xmb file, making sure to not overwrite old translations (Note: this can almost certainly be combined with the other upload step; I was just being really careful).+  Be sure to add tags - you should have **TWO RULES**: one rule to add the base version (rel_3_12) to **all** translations and a second rule to add the specific version (rel_3_12_0) to **new** translations. The use of a tag like rel_3_12_0 for new terms is done purely as a convenience to the translators to identify the strings that are new to the release. However, it should be noted that the definition of "newapplies to the entire translation project. For example, if you upload new terms for rel_3_11_beta, then upload for rel_3_10, rel_3_10_x, a new terms that are already tagged rel_3_11_beta will not get the tag rel_3_10_x
 +  - Go to the [[https://poeditor.com/projects/import_translations?id_language=43&id=218177|English language importer]] and import the xmb file, making sure to not overwrite old translations. Unlike the first step, which appears to just load the numeric IDs of the strings to be translated, this step also adds their English-language values. 
 + 
 +===== Adding/updating translations to Evergreen ===== 
 + 
 +If a translation is sufficiently complete, in POEditor go to the language, then export it as an ''.xtb'' file. The result should be committed to the path ''Open-ILS/src/eg2/src/locale/'' as ''messages.$LANGUAGECODE.xtb''.
poeditor.1591906346.txt.gz · Last modified: 2022/02/10 13:33 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.