newdevs:i18n
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:i18n [2023/11/21 13:39] – [3. Modify eg_vhost.conf] tmccanna | newdevs:i18n [2025/07/29 11:01] (current) – CLDR sleary | ||
---|---|---|---|
Line 73: | Line 73: | ||
The newer Angular administration interfaces provide a button to add translations (for example, the MARC Coded Value Map controls the Audience dropdown fields in the OPAC advanced search), but you will need to edit a file in order to enable it for each language. | The newer Angular administration interfaces provide a button to add translations (for example, the MARC Coded Value Map controls the Audience dropdown fields in the OPAC advanced search), but you will need to edit a file in order to enable it for each language. | ||
+ | - Switch to opensrf user | ||
- Edit Open-ILS/ | - Edit Open-ILS/ | ||
- Modify the locales array (eg, locales: [' | - Modify the locales array (eg, locales: [' | ||
- Recompile Angular: Go to the Open-ILS/ | - Recompile Angular: Go to the Open-ILS/ | ||
| | ||
- | ===== Marking Up Evergreen (Angular Pages) ===== | + | ===== Marking Up Evergreen (Angular |
Most strings only require the addition of " | Most strings only require the addition of " | ||
Line 94: | Line 95: | ||
* [[https:// | * [[https:// | ||
+ | ===== Marking Up Evergreen (Angular TypeScript Pages) ===== | ||
+ | |||
+ | When creating a message in TypeScript, use the $localize tag handler with backticks around the text. | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | |||
+ | Example: | ||
+ | < | ||
===== Marking Up Evergreen (Template Toolkit Pages) ===== | ===== Marking Up Evergreen (Template Toolkit Pages) ===== | ||
Line 115: | Line 125: | ||
* When selecting a language on one screen, it affects other areas of Evergreen. | * When selecting a language on one screen, it affects other areas of Evergreen. | ||
* When changing languages, it's best to refresh your browser and clear your browser cache | * When changing languages, it's best to refresh your browser and clear your browser cache | ||
+ | |||
+ | ===== Finding common translations using CLDR data: Czech, Spanish, French ===== | ||
+ | |||
+ | The [[https:// | ||
+ | |||
+ | Find the Field Name you need in the documentation (e.g. weekdayOfMonth) and then reference the summary tables to find translations: | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Additional Resources ===== | ===== Additional Resources ===== | ||
Line 127: | Line 147: | ||
+ | {{tag> | ||
newdevs/i18n.1700591950.txt.gz · Last modified: 2023/11/21 13:39 by tmccanna