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/09/22 13:36] – smayo | newdevs:i18n [2024/01/26 15:24] (current) – [Marking Up Evergreen (Angular TypeScript Pages)] tmccanna | ||
---|---|---|---|
Line 25: | Line 25: | ||
Repeat steps 2-4 for each additional language. | Repeat steps 2-4 for each additional language. | ||
- | **Check Files** | + | **Copy Files** |
At this point, you should have PO files under: | At this point, you should have PO files under: | ||
Line 33: | Line 33: | ||
Copy each of these folders to the corresponding location on your server. | Copy each of these folders to the corresponding location on your server. | ||
* cp -r / | * cp -r / | ||
- | * cp -r / | + | * cp -r / |
==== 2. Configure the Evergreen Database (if needed) ==== | ==== 2. Configure the Evergreen Database (if needed) ==== | ||
Line 54: | Line 54: | ||
VALUES (' | VALUES (' | ||
- | Add the generated seed data if it was not already installed: | + | Add the generated seed data if it was not already installed. Navigate to / |
- | < | + | < |
==== 3. Modify eg_vhost.conf ==== | ==== 3. Modify eg_vhost.conf ==== | ||
+ | - Switch to root | ||
- File location: etc/ | - File location: etc/ | ||
- | - Look for the " | + | - Look for the " |
- Uncomment or add lines for the new languages you are adding: < | - Uncomment or add lines for the new languages you are adding: < | ||
PerlAddVar OILSWebLocale "/ | PerlAddVar OILSWebLocale "/ | ||
Line 72: | 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 93: | 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) ===== |
newdevs/i18n.txt · Last modified: 2024/01/26 15:24 by tmccanna