Changes between Initial Version and Version 1 of Ru:Translations


Ignore:
Timestamp:
2011-10-06T21:19:09+02:00 (15 years ago)
Author:
RoverBook
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Translations

    v1 v1  
     1[[TranslatedPages(revision=27,outdated=Translation incomplete)]]
     2
     3= Перевод =
     4
     5[[TOC(noheading,inline)]]
     6
     7== [wiki:StartupPage] перевод ==
     8
     9Перевод страницы с сообщениями, появляющейся при запуске JOSM, можно изменить по ссылке [wiki:StartupPageSource].
     10
     11Эта страница имеет специальный формат:
     12 * Каждая строка "en:" указывает на начало нового перевода
     13 * Каждая строка на другом языке является переводом предшествующей строки на английском языке
     14 * Каждая строка без пометок показывается "как есть" (Each line without specifics is taken as is.)
     15 * Строки, начинающиеся с "#" игнорируются.
     16
     17Примечание: Между сообщениями не всегда присутствуют пустые строки, поэтому будьте осторожны - не путайте сообщения и не забудьте перевести какое-либо из них!
     18
     19Переводя с английского всегда имеете в виду, что перевод требует творческого подхода и адаптации к вашей речи. Если вы неуверенны, просто добавьте перед кодом языка "х", так перевод сохранится, но не будет отображаться
     20
     21Пожалуйста, располагайте ваши переводы упорядоченно, в порядке алфавита аббревиатур языка. (Please sort the entries by the language abbreviation!)
     22
     23При нажатии "Предварительный просмотр страницы" или "Отправить изменения" для перевода, вам будет показана страница, состоящая из нескольких разделов, для каждого языка отдельно. Строки, отмеченные "EN", содержат не переведенный текст, X - отмечаются строки, которые были изъяты в связи с изменением текста.
     24
     25Далее приведена таблица, отображающая состояние перевода StartupPage:
     26 * Желтым: Перевод требует обновления
     27 * Зеленым: Перевод актуален
     28 * Числа показывают:
     29  * первое: количество непереведенных строк
     30  * второе: количество строк с устаревшим переводом
     31
     32[[MOTD(status|StartupPageSource)]]
     33
     34== [wiki:VersionHistory] перевод ==
     35
     36Перевод старых стартовых сообщений JOSM возможно изменить на странице [wiki:VersionHistorySource].
     37
     38Она имеет такой же формат, как и предыдущая.
     39
     40[[MOTD(status|VersionHistorySource)]]
     41
     42== Перевод интерфейса JOSM ==
     43
     44Translation of the program texts is done at [https://translations.launchpad.net/josm/trunk/ Launchpad].
     45
     46The Java translation has some specialities which must be remembered when translating:
     47 * The ' sign is a special character. It must be escaped by another ', so !'' means a single quote in resulting display.
     48 * For languages with heavy usage of this character the typographic ’ may be used instead of the escaping (looks better when translating, in the final software a user will hardly see the difference).
     49 * Don't use the message formating brackets {}, or when, then escape each with single quotes like '{' or '}'.
     50
     51Changes made in Launchpad will be imported into JOSM for all languages which are already in JOSM. The JOSM team will try to update the text data at least every second week.
     52
     53New languages will be added to JOSM when there are at least 2000 translated strings. Please start with main user interface to reach best results.
     54
     55A short description how to add new language support for test purposes, when 2000 strings limit is not yet reached:
     56* Create the language files and store them in the plugin file:
     57 * Language files are stored in directory "data" of JOSM and named with the lowercase language code with extension '''.lang'''.
     58 * These files are always a set. The English base file and the translation files must be created together or they will not work correctly.
     59 * The Perl script [osm:source:applications/editors/josm/i18n/i18n.pl i18n.pl] must be called with a destination directory and the '''.po''' files to create translation data.
     60* Add you language in init() function of [source:trunk/src/org/openstreetmap/tools/I18n.java I18n.java].
     61 * You need to specify a proper code for the plural mode of your language.
     62 * A description of the plural calculations can be found in the '''.po''' file downloaded from Launchpad.
     63 * If none of the existing modes matches your language, you need to add one in the PluralMode enumeration and in pluralEval() function.
     64 * For some special languages it is necessary to add workaround code in [source:trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java LanguageInfo.java] to translate between Java language code and the newer codes used on Launchpad
     65
     66Current JOSM translation status active in the software (only JOSM core, no plugins) is shown in following table.
     67
     68[[JOSMTranslation(||=language code=||=normal strings=||=plural number=||=plural strings=||=complete plural sets=||=total=||)]]
     69
     70{{{
     71#!comment
     72NOTE: This table misses all strings, which are not translated in at least 1 single additional language. This means it will be a bit too optimistic in case of newly added texts.
     73}}}
     74
     75== Интерактивная справка JOSM ==
     76
     77Полный список всех страниц интерактивной справки находится на странице [wiki:DevelopersGuide/HelpSystem/HelpTopicsList Help Topics List]. Этот перечень создается автоматически, но тем не менее, может быть неполным.
     78Смотрите следующий раздел о том, как делается перевод.
     79
     80== Перевод страниц ==
     81
     82JOSM использует простой метод - добавление кода языка перед именем станицы. Вы можете найти или добавить код вашего языка на странице [wiki:TracLanguages].
     83
     84Каждая базовая англоязычная страница содержит обращение к макросу {{{[[}}}{{{TranslatedPages]]}}} в верхней части страницы. Этот макрос создает небольшое меню, содержащее все существующие переводы данной страницы на другие языки.
     85Каждая переведенная страница должна содержать обращение к тому же макросу, но для него должен быть еще указан номер версии (revision) базовой страницы, с которой делался перевод, как это показано на рисунке:
     86
     87[[Image(wiki:revision.png)]]
     88
     89Если версия базовой страницы новее, чем указано в переведенной странице (кто-то обновил англоязычный вариант), то в списке доступных переводов появляется специальный пункт, показывающий номера переведенной версии и новейшей англоязычной версии. При нажатии на этот пункт приводятся перечень отличий между версиями, который можно использовать для обновления перевода. Во время обновления перевода необходимо увеличить номер версии в строке {{{[[}}}{{{TranslatedPages((revision=xx))]]}}} до текущей англоязычной версии, и дополнительный пункт меню исчезнет.
     90
     91[[Image(diff.png)]]
     92
     93Некоторые замечания:
     94* It is possible to access image from English base page (or any other page) also in translated page by using the page in the link: [[Image(wiki:Styles:Mappaint_deprecated.png)]]
     95 * It is nice if screenshots are offered in the native language althought the English version is also accepted and less work.
     96* Links inside the texts should go to translated pages or to English page when not yet translated (marked with (En) or something alike)
     97* Pages should be consistent, so when adding new stuff, update the English base page also (except for language specific things)
     98
     99See the [WikiMacros#TranslatedPages-macro macro description] for more information about this macro.
     100
     101Pages can be marked as incomplete or old when the parameter '''outdated''' is added to the translation macro (separated by a comma from other parameters). Behind the parameter a text describing the reason must be appended with an equal sign. Commas must be escaped with a backslash.
     102
     103Example:
     104{{{[[}}}{{{TranslatedPages(revision=12,outdated=Translation is incomplete\, last part missing.]]}}}
     105
     106Outdated messages from the English base page can be copied in translation, but probably it is better to have them at base page only. This allows to separate translation related issues (translated pages) from content related issues (base page).
     107
     108The [wiki:OutdatedPages list of outdated pages] shows all outdated pages and the related comments.
     109
     110The following are automatically generated statistics showing errors in the {{{[[}}}{{{TranslatedPages]]}}} macro or outdated and missing pages.
     111
     112=== Status table ===
     113
     114 * Red: There is an error with this page (see error list below)
     115 * Yellow: Page needs update
     116 * Green: Everything up-to-date
     117 * Grey: Page is missing
     118
     119{{{
     120#!comment
     121When translating this page, don't copy the macro as is, but use  [[TranslatedPages(showstatus,lang=De)]] (for German), so only the relevant information for your language is printed.
     122}}}
     123[[TranslatedPages(showstatus)]]
     124
     125[[TranslatedPages(showproblems,silent)]]
     126
     127== Language specific translation notes ==
     128
     129Each language has specific rules how the terms and texts of JOSM and OpenStreetMap needs to be translated.
     130
     131{{{
     132#!comment
     133NOTE to translators: Add translation notes, and every language specific information in the translated pages. See e.g. German page for examples.
     134}}}