Difference between revisions of "Paradatabase:Multilingual implementation/ru"
Jump to navigation
Jump to search
(Created page with ":* Право на создание страницы есть у всех. А право на изменение ''PageLanguage'' не у всех. :* Изменение яз...") |
(Created page with "==Договоренность о страницах на других языках==") |
||
| Line 12: | Line 12: | ||
| − | == | + | ==Договоренность о страницах на других языках== |
:* In the main namespace all pages are in English. | :* In the main namespace all pages are in English. | ||
Revision as of 07:27, 22 April 2019
В MediaWiki страницы могут быть написаны на разных языках. Но у системы только один язык главный, который называется базовый язык. В Paradatabase базовый язык - английский
У каждой страницы есть параметр PageLanguage (Язык страницы). Он необходим внутренним программам для правильного представления и обработки текста. Этот параметр может быть изменен. Политика MediaWiki предполагает, что страница создается на базовом языке, а все ее переводы становятся ее подстраницами путем добавления в конец имени комбинации "слэш + код языка".
Проблемы
- Право на создание страницы есть у всех. А право на изменение PageLanguage не у всех.
- Изменение языка страницы - не примитивная операция, а определенная последовательность действий, которую часто игнорируют или забывают проделать.
- Страницы могут создаваться не только на базовом языке. В этом случае Extension:Translate вступает в противоречие с внутренним устройством MediaWiki.
Договоренность о страницах на других языках
- In the main namespace all pages are in English.
- There is a list of supported languages.
- For each of the supported languages, a namespace is created, the name of which is the language code. For the most common languages there is no problem. For example: Fr - French, De - German, Ru -Russian. It is easy to type three characters (for example, "Fr:") before the page name at the time of its creation.
- In the namespace created for a specific language the PageLanguage parameter is set automatically according to this language. Translation of this page into another language is its subpage. The name of the translation page is obtained by adding to the name of the source page the combination “slash + language code” (for example, “Fr:Page name/de”). The PageLanguage parameter of translation is also automatically set.
- Using Extension:Translate, it is possible to translate any of the source pages inside of any namespace. At the same time Extension:Translate correctly perceives the language of the source page and creates translations in the form of its sub-pages.
- Languages of pages created in other (language independent) namespaces follow the same rules as in the main namespace