1- .. include :: /Includes.rst.txt
1+ .. include :: /Includes.rst.txt
22
3+ .. _localized-labels :
34
4- .. _localized-labels :
5-
5+ ================
66Localized labels
7- ^^^^^^^^^^^^^^^^
7+ ================
88
99
10- .. _localized-labels-typoscript :
10+ .. _localized-labels-typoscript :
1111
1212Using XLF labels in TypoScript structures
13- """""""""""""""""""""""""""""""""""""""""
13+ =========================================
1414
15- XLIFF (XLF) files are XML files containing labels that the system can fetch
16- in a localized version if the relevant translations are installed.
17- It is possible to retrieve values from XLF files using TypoScript:
15+ :ref: ` XLIFF (XLF) < t3coreapi:xliff >` files are XML files containing labels that
16+ the system can retrieve in a localized version if the appropriate translations
17+ are installed. It is possible to retrieve values from XLF files using TypoScript:
1818
19- .. code-block :: typoscript
20- :caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
19+ .. code-block :: typoscript
20+ :caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
2121
22- page.20 = TEXT
23- page.20.data = LLL:EXT:indexed_search/Resources/Private/Language/locallang.xlf:form.submit
22+ page.20 = TEXT
23+ page.20.data = LLL:EXT:indexed_search/Resources/Private/Language/locallang.xlf:form.submit
2424
2525 This looks for the label :code: `form.submit ` in the file
26- :file: `Resources/Private/Language/locallang.xlf ` from extension
26+ :file: `Resources/Private/Language/locallang.xlf ` from the extension
2727"indexed\_ search".
2828
29- If the frontend is now accessed in the language "de", the german language
30- is configured in the site configuration and the german translations
31- are installed in :ref: `t3coreapi:Environment-labels-path `/:file: `de/ `, the output should be "Suche"
32- (instead "Search" which is what you will get if the label is retrieved
33- for the default language).
29+ If the frontend is now accessed in the language "de", the German language
30+ is configured in the :ref: ` site configuration < languages >` and the German
31+ translations are installed in :ref: `t3coreapi:Environment-labels-path `/:file: `de/ `,
32+ the output should be "Suche" (instead "Search" which is what you will get if the
33+ label is retrieved for the default language).
3434
3535
36- .. _localized-labels-plugins :
36+ .. _localized-labels-plugins :
3737
3838Using XLF labels in frontend plugins
39- """"""""""""""""""""""""""""""""""""
39+ ====================================
4040
4141Making your code ready for internationalization is covered in
4242:ref: `t3coreapi:internationalization ` and
@@ -48,17 +48,18 @@ output when a specific language is requested.
4848For instance, if the page is accessed in the language "de" and
4949the German translations are installed, you will see this page for "indexed search":
5050
51- .. figure :: /Images/ManualScreenshots/Frontend/IndexedSearchGerman.png
52- :alt: Indexed search in German
51+ .. figure :: /Images/ManualScreenshots/Frontend/IndexedSearchGerman.png
52+ :alt: Output from the Indexed Search plugin in German
53+ :class: with-shadow
5354
54- Output from the indexed search plugin in German
55+ Output from the Indexed Search plugin in German
5556
5657Overriding an existing translation is possible using custom XLIFF files.
57- This process is described in :ref: `Core APIs < t3coreapi:xliff-translating-custom > `.
58+ This process is described in :ref: `t3coreapi:xliff-translating-custom `.
5859
5960It is also possible to override a label using TypoScript. See the
6061:ref: `TypoScript Reference for more information <t3tsref:setup-plugin-local-lang-lang-key-label-key >`.
6162
62- It is also possible to create XLIFF files for a language into which
63- TYPO3 CMS is not translated yet. This process is also described in
64- :ref: `Core APIs < t3coreapi:xliff-translating-languages > `.
63+ You can also create XLIFF files for a language into which
64+ TYPO3 is not translated yet. This process is described in
65+ :ref: `t3coreapi:xliff-translating-languages `.
0 commit comments