User Tools

Site Tools


eg_translations

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
Next revisionBoth sides next revision
eg_translations [2017/03/19 14:08] – [Evergreen translations] cernineg_translations [2017/03/19 14:20] – [Adding the custom string to PO file] cernin
Line 77: Line 77:
     - Notes to translators (denoted by  blue icons with "i")     - Notes to translators (denoted by  blue icons with "i")
     - String location (under the //New translation// field).  \\ E.g. information: //Located in ../../Open-ILS/src/templates/opac/register.tt2:63// means that the translated string occurs in //register.tt2// template file for OPAC, line 63 (and probably have something to do with user registration in OPAC).     - String location (under the //New translation// field).  \\ E.g. information: //Located in ../../Open-ILS/src/templates/opac/register.tt2:63// means that the translated string occurs in //register.tt2// template file for OPAC, line 63 (and probably have something to do with user registration in OPAC).
-  - ** Be consistent in used expressions** \\ Translate the same word or string always in the same way. It is good to make some "revisions" time to time. You can use [[https://docs.google.com/spreadsheets/d/13YvSic49TI8g-zyE4dn1QXCvwqf1cXumKEhjEhcVvSg/edit?usp=sharing | list of Evergreen translation strings]] containg all strings with name of the template in which the string occurs ((Note: The items  have been extracted from individual templates using  simple script. When an unexpected character (e.g., part of the code or variables) was used in translation string, it could affect the processing of the template. In such cases the item might exceptionally have been missing or inaccurate.))+  - ** Be consistent in used expressions** \\ Translate the same word or string always in the same way. It is good to make some "revisions" time to time. You can use [[https://docs.google.com/spreadsheets/d/13YvSic49TI8g-zyE4dn1QXCvwqf1cXumKEhjEhcVvSg/edit?usp=sharing | list of Evergreen translation strings]] containg all English trings with name of the template, to identify quickly in which template the string occurs ((Note: The items  have been extracted from individual templates using  simple script. When an unexpected character (e.g., part of the code or variables) was used in translation string, it could affect the processing of the template. In such cases the item might exceptionally have been missing or inaccurate.))
   - **Recognize the background of translated expression.** \\ Translation strings contain e.g.:    - **Recognize the background of translated expression.** \\ Translation strings contain e.g.: 
     - standardized terms used for MARC record description in Evergreen (it is good to have national MARC fields and terms translations at hand),      - standardized terms used for MARC record description in Evergreen (it is good to have national MARC fields and terms translations at hand), 
Line 125: Line 125:
 Analogically, to update the web staff client translations, download the translation template //webstaff// and copy it to ///openils/var/template/data/locale/staff//. Analogically, to update the web staff client translations, download the translation template //webstaff// and copy it to ///openils/var/template/data/locale/staff//.
  
-NOTE: It is necessary to set specific  language previouslysee the documentation: [[http://docs.evergreen-ils.org/2.10/_setting_a_default_language_and_adding_optional_languages.html | Setting a default language and adding optional languages]].+NOTE: It is necessary to set specific  language previously see the documentation: [[http://docs.evergreen-ils.org/2.10/_setting_a_default_language_and_adding_optional_languages.html | Setting a default language and adding optional languages]].
  
 ===== Making the custom string in TPAC translatable. ===== ===== Making the custom string in TPAC translatable. =====
Line 132: Line 132:
  
  
-As Evergreen supports multiple languages, it is important, that any customization to Evergreen’s default text (e.g., links in top or bottom navigation in OPAC, or any other kind of custom information on catalog homepage etc.) uses the localization function. To make the custom string translatable, the string must be in English and must be surrounded by   **[% l('**   ** ') %]**  (( The [% ... %] signifies a TT block, which can contain one or more TT processing instructions. l(" ... "); is a function that marks text for localization (translation). ))+As Evergreen supports multiple languages, it is important, that any customization to Evergreen’s default text  uses the localization function. To make the custom string translatable, the string must be in English and must be surrounded by   **[% l('**   ** ') %]**  (( The [% ... %] signifies a TT block, which can contain one or more TT processing instructions. l(" ... "); is a function that marks text for localization (translation). ))
  
  
Line 151: Line 151:
 ==== Adding the custom string to PO file ==== ==== Adding the custom string to PO file ====
  
-After you have added custom text in translatable form to a TT2 template, you need to add the custom strings and its translations to the PO file containing the translations (the PO files are stored  in  ///openils/var/template/data/locale/ // )+After you have added custom texts in translatable form to a TT2 template, you need to add the custom strings and its translations to the PO file containing the translations (the PO files are stored  in  ///openils/var/template/data/locale/ // )
  
 Note: It is good practice to save backup copy of the original PO file before changing it. Note: It is good practice to save backup copy of the original PO file before changing it.
eg_translations.txt · Last modified: 2023/10/31 16:28 by bmagic

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.