Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
development:architecture:localization [2020/09/22 14:23] – demiankatz | development:architecture:localization [2021/11/09 11:34] – demiankatz |
---|
===== Translate Function ===== | ===== Translate Function ===== |
| |
VuFind uses Zend Framework's translation mechanism. The translator object is registered in the service manager as 'VuFind\Translator'. | VuFind uses Laminas' translation mechanism. The translator object is registered in the service manager under the standard 'Laminas\Mvc\I18n\Translator' key. |
| |
Notes: | Notes: |
VuFind's help screens contain too much text for the standard translation mechanism to be a practical way of presenting them in multiple languages. Instead, under the theme/root/templates/HelpTranslations directory, the help templates are in folders whose names correspond with VuFind language codes (i.e. "en" for English). When a user requests a help screen, VuFind attempts to serve them the most appropriate version for their selected language, though it defaults to the English version if nothing else is available; as of this writing, help screens have not been translated into all possible languages. | VuFind's help screens contain too much text for the standard translation mechanism to be a practical way of presenting them in multiple languages. Instead, under the theme/root/templates/HelpTranslations directory, the help templates are in folders whose names correspond with VuFind language codes (i.e. "en" for English). When a user requests a help screen, VuFind attempts to serve them the most appropriate version for their selected language, though it defaults to the English version if nothing else is available; as of this writing, help screens have not been translated into all possible languages. |
| |
| ===== Video ===== |
| |
| This topic is discussed in the [[videos:i18n|Internationalization]] video. |
---- struct data ---- | ---- struct data ---- |
---- | ---- |
| |