Warning: This page has not been updated in over over a year and may be outdated or deprecated.
legacy:vufind_1.x_developer_manual:language_localization_support
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
legacy:vufind_1.x_developer_manual:language_localization_support [2015/12/21 16:47] – ↷ Links adapted because of a move operation demiankatz | legacy:vufind_1.x_developer_manual:language_localization_support [2018/12/19 14:19] (current) – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Language / Localization Support ====== | ====== Language / Localization Support ====== | ||
- | // This page refers | + | // This outdated |
- | + | ||
- | VuFind supports multiple languages in its user interface through two main mechanisms. | + | |
- | + | ||
- | ===== Translate Function ===== | + | |
- | + | ||
- | VuFind supports a global translate() function (available as {translate text=' | + | |
- | + | ||
- | Notes: | + | |
- | + | ||
- | * If you attempt to translate a string that is not found in a language map, the original string will be displayed untranslated. | + | |
- | * If you turn debug on in [[configuration: | + | |
- | * Many of the translated strings in the language files are simply chunks of English text. However, more recent additions are represented as shorter tokens (i.e. " | + | |
- | + | ||
- | ==== Formatting Language Files ==== | + | |
- | + | ||
- | When modifying an existing language file or creating a new one, you should observe these standards: | + | |
- | + | ||
- | * Save the file in UTF-8 format without a Byte Order Marker (BOM). | + | |
- | * Sort the file after adding new lines. | + | |
- | * Put double-quotes around multi-word phrases on the right side of the equals sign. Do NOT put quotes around phrases on the left side of the equals sign. | + | |
- | + | ||
- | For an example of a full language file, see [[https:// | + | |
- | + | ||
- | ===== Help Screen Translation ===== | + | |
- | + | ||
- | //Note: This feature applies to VuFind 1.0RC2 and later only.// | + | |
- | + | ||
- | VuFind' | + | |
- | + | ||
- | ===== Adding a New Language ===== | + | |
- | + | ||
- | - Create a new language file as described [[# | + | |
- | - If desired, translate help screens as described [[#help screen translation|above]]. | + | |
- | - Edit [[configuration: | + | |
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
legacy/vufind_1.x_developer_manual/language_localization_support.txt · Last modified: 2018/12/19 14:19 by demiankatz