This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
ru:languages [2013/09/16 05:01] Arkady created |
ru:languages [2013/09/27 05:48] Arkady [Поддержка языков] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Файлы локализации ====== | + | ====== Поддержка языков ====== |
+ | Hint: As AccessKeys differ in different languages, you can define the AccessKeys which fit best for your language in the language-file. Search for the section //For: include-nav.php// in the language-file and wrap a single letter in ''<em></em>'' code there to define that letter als AccessKey for that function. | ||
+ | Example: ''<em>S</em>'' defines //**s**// as AccessKey for the Page-Menu in the german version. | ||
- | Заглушка под перевод languages | + | GetSimple поддерживает файлы локализации, по-другому их можно назвать языковые файлы или файлы перевода для административной панели. Их можно скачать в секции сайта GS [[http://get-simple.info/extend/all_languages.php|Extend]]. |
+ | |||
+ | Поместите скачанный вами языковой файл в папку ''/admin/lang/'' вашей системы. Теперь в секции административной панели **Настройки** в раскрывающемся списке **Язык** можно сменить язык интерфейса на только что установленный. | ||
+ | |||
+ | **Примечание**: Клавиши горячего доступа, устоявшиеся в разных языках, могу отличаться. Вы можете определить пользовательские горячие клавиши, наиболее подходящие, по вашему мнению, для вашего языка, в том же языковом файле. Например: откройте в текстовом редакторе языковой файл, найдите секцию For: include-nav.php и заключите любую букву в тэги <em></em> | ||
+ | "PLUGINS_NAV" => "Пла<em>г</em>ины", | ||
+ | Мы только что определили горячую клавишу «г» для активации вкладки Плагины. | ||
+ | Допустим, в немецкой версии <em>s</em> определяет s как горячую клавишу для вкладки Страницы. | ||
+ | |||
+ | ===== Creating a New Language File ===== | ||
+ | |||
+ | - [[http://get-simple-cms.googlecode.com/svn/trunk/admin/lang/en_US.php|Download the latest en_US from our SVN]] | ||
+ | - Change the header information and filename to match the language you are translating | ||
+ | - Translate the text | ||
+ | - Save the new file **UTF8 Without BOM**. | ||
+ | * If you get an error saying "Headers already sent", it is probably because you did not save the file in this format. | ||
+ | |||
+ | For plugins conforming to the guidelines and GetSimple itself: you may use the [[http://get-simple.info/extend/plugin/translate/112/|Translate plugin]] - more information see [[lang:translate|Translation Tools]]. | ||
+ | |||
+ | ===== Slug Transliteration ===== | ||
+ | |||
+ | GetSimple also provides a way to convert international characters in the page's 'slug' attribute. By default, we strip out all non-English characters to create the page's 'slug'. You can create your own transliteration array named 'TRANSLITERATION' within the specific language file. | ||
+ | |||
+ | ===== Plugin Language Files ===== | ||
+ | |||
+ | There are functions and standards to internationalize (i18n) plugins. [[plugins:i18n|Check them out here.]] | ||
+ | |||
+ | ===== CKEditor Language Files ===== | ||
+ | |||
+ | [[how_to:editor_configuration_languageconfiguration|CKEditor]] also supports languages. | ||
+ | |||
+ | |||
+ | ===== Language File Problems ===== | ||
+ | If you see certain language strings that look like **{LOREM_IPSUM}**, then these are untranslated strings within your current language file. Either compare your file with the latest GetSimple ''/admin/lang/en_US.php'' file or add the string to your current translation. | ||
+ | {{:nolanguages.png|}} |