This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dev:284:translate [18.07.2018 11:09] – [Structure of translation tables] Manuela v.d.Decken | en:dev:284:translate [18.07.2018 12:46] (current) – [Translations before 2.8.4] Manuela v.d.Decken | ||
---|---|---|---|
Line 18: | Line 18: | ||
==== General ==== | ==== General ==== | ||
For simplicity, I'm talking only about ' | For simplicity, I'm talking only about ' | ||
- | ==== Translations before 2.8.4 ==== | + | ==== Translations before 2.10.0 ==== |
- | Let's start at the current level at the beginning of 2.8.4 and earlier. In the central language directory of the core, there are a large number of language files (DE.php | EN.php | etc.). Each of these files contains an overwhelmingly large number of language variables (specifically, | + | Let's start at the current level at the beginning of 2.10.0 and earlier. In the central language directory of the core, there are a large number of language files (DE.php | EN.php | etc.). Each of these files contains an overwhelmingly large number of language variables (specifically, |
+ | === Aufbau der Sprachdateien (EN.php) === | ||
+ | < | ||
+ | //Modul Description | ||
+ | $module_description = 'Enter here a really short description of your module. About 200-250 characters should suffice.'; | ||
+ | |||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule[' | ||
+ | </ | ||
+ | somebody wrote this kind of entries: | ||
+ | < | ||
+ | $MOD_MyModule[' | ||
+ | $MOD_MyModule_TEXT[' | ||
+ | $MOD_MyModule_MESSAGE[' | ||
+ | </ | ||
+ | It does not look that good, but it works. Both syntax lead to the same Translate keys. | ||
+ | < | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | echo $oTrans-> | ||
+ | </ | ||
+ | |||
+ | |||
==== The basic system behind Translate ==== | ==== The basic system behind Translate ==== |