Warning: This page has not been updated in over over a year and may be outdated or deprecated.
development:architecture:localization
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
development:architecture:localization [2023/09/08 12:05] – [Video] demiankatz | development:architecture:localization [2024/01/10 13:56] – [Translate Function] demiankatz | ||
---|---|---|---|
Line 12: | Line 12: | ||
* If you attempt to translate a string that is not found in a language map, the original string will be displayed untranslated. | * If you attempt to translate a string that is not found in a language map, the original string will be displayed untranslated. | ||
- | * Many of the translated strings in the language files are simply chunks of English text. However, more recent additions are represented as shorter | + | * Many of the translated strings in the language files are simply chunks of English text. However, more recent additions are represented as shorter |
* Starting with VuFind® 2.4, a convenient [[https:// | * Starting with VuFind® 2.4, a convenient [[https:// | ||
+ | * The translate function can accept an array of values to insert into the translation string in order to include variables inside the translation (e.g. numbers). Placeholders for values are generally surrounded by double-percent-signs (e.g. %%token%%) in the language files. Starting with VuFind® 10.0, an additional argument can be added to the translate function to override the simple search-and-replace value insertion mechanism with the more complex ICU MessageFormatter syntax. When using MessageFormatter syntax, placeholders use braces instead of percent signs. See [[https:// | ||
===== Formatting Language Files ===== | ===== Formatting Language Files ===== | ||
Line 47: | Line 48: | ||
Note also that there are [[administration: | Note also that there are [[administration: | ||
+ | If you want to contribute to the project' | ||
===== Customizing Language Files ===== | ===== Customizing Language Files ===== | ||
Line 142: | Line 144: | ||
===== Related Links ===== | ===== Related Links ===== | ||
- | * [[community: | + | * [[community: |
===== Video ===== | ===== Video ===== |
development/architecture/localization.txt · Last modified: 2024/01/10 13:56 by demiankatz