User Tools

Site Tools


ru:plugins:i18n

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 =====
ru/plugins/i18n.txt · Last modified: 2013/10/09 12:23 by Arkady