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
Previous revision
Next revision Both sides next revision
ru:plugins:i18n [2013/10/09 11:17]
Arkady [Language files without country]
ru:plugins:i18n [2013/10/09 11:20]
Arkady [Фронтенд]
Line 81: Line 81:
  
  
-===== Front-end ​=====+===== Фронтенд ​=====
  
-If your plugin has to display texts on the front-end (the internet site itself) and you just support typical ​GetSimple ​installationswhere the content is displayed in one language and the admin back-end is set to this languageyou do it the same way as described above.+Если ваш плагин выводит текстовую информацию непосредственно на страницы сайта при типовой установке ​GetSimple, ​в случае когда контент сайта и язык административной панели совпадаютработают методы,​ уже описанные в настоящей секции.
  
-The only difference is that you must provide language supportbecause where it might be acceptable for administrators and editors to see some information in english instead of their own languageit is unacceptable on the front-endWithout language support you basically limit your plugin to use in countries with the same language as your's.+Тем не менее – языковая поддержка должна быть обеспечена. Возможнодля администраторов или пользователей с правами редактора допустимо использование администраторского интерфейса на неродном языке (как правилона английском)Но отсутствие поддержки плагином других языков во фронтенде недопустимо. Без мультиязычной поддержки вы практически ставите серьезную преграду для распространения вашего плагина среди пользователей,​ которые не владеют вашим родным языком.
  
 **GetSimple 3.0:** **GetSimple 3.0:**
  
-In the frontend the variable ​$LANG is always ​en_US (due to the multi-user capabilities introduced with 3.0). The user should be encouraged to enter a line +Во фронтенде значение переменной ​$LANG всегда равно ​en_US (из-за многопользовательского функционала,​ внедренного в версии ​3.0+).  ​Пользователю следует указать на необходимость добавить строку 
 + 
 <​code>​ <​code>​
-$LANG = '​de_DE';​+$LANG = 'de_DE'; или, в нашем случае,​ $LANG = 'ru_RU';
 </​code>​ </​code>​
-or similar into gsconfig.php. + 
-As an alternative the plugin can offer a functionality to set the frontend language.+в файл ​gsconfig.php. 
 + 
 +В качестве альтернативы плагин может предлагать пользователю возможность для смены языка сайта.
  
 ===== Multi-language Front-end ===== ===== Multi-language Front-end =====
ru/plugins/i18n.txt · Last modified: 2013/10/09 12:23 by Arkady