This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
ru:plugins:i18n [2013/10/09 11:16] Arkady [Интернационализация (I18N) и плагины] |
ru:plugins:i18n [2013/10/09 11:17] Arkady [Language files without country] |
||
---|---|---|---|
Line 70: | Line 70: | ||
- | ===== Language files without country ===== | + | ===== Языковые файлы без кода страны ===== |
- | If you want to provide language files en.php, de.php, etc. (without country code), than use the following lines to load your texts: | + | Если вы в плагине применяете языковые файлы без кода страны, т.е. en.php, de.php, и.т.д., используйте для подгрузки перевода следующий код: |
<code> | <code> | ||
global $LANG; | global $LANG; | ||
- | i18n_merge('my_plugin', substr($LANG,0,2)) || i18n_merge('my_plugin','en'); | + | i18n_merge('мой_плагин', substr($LANG,0,2)) || i18n_merge('мой_плагин','en'); |
</code> | </code> | ||
+ | |||
+ | |||
===== Front-end ===== | ===== Front-end ===== |