Changes between Version 10 and Version 80 of Translations


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Translations

    v10 v80  
    11[[TranslatedPages]]
    22
    3 = [wiki:StartupPage] translation =
     3= Translations =
     4Translation is a whole divided into three parts, one of which is seen on every [#StartupPage startup] in JOSM, another by the [#Software Software] user interface and OSM data, and a third called [wikitr:Translations/Wiki Wiki] for Online help.
    45
    5 The translation of JOSM start messages can be changed at the page of [wiki:StartupPageSource].
     6[[PageOutline(2-10,Table of Contents)]]
     7
     8The state of the translation over time is shown on [wikitr:/Translations/Statistics].
     9
     10
     11== Wiki and Online help ==
     12A good start for you to contribute is this Wiki. It serves as [wikitr:/Help Online Help] for JOSM, too. Please see the details on [wikitr:/Translations/Wiki]. You can start working right now — like on every good wiki.
     13
     14Some [#Languagespecificnotes English specific notes] are on the bottom of this page.
     15
     16A list of all currently known online help pages can be found at the [wiki:/DevelopersGuide/HelpSystem/HelpTopicsList List of help topics]. This list is created automatically, but may be incomplete.
     17
     18Note: Some of the plugins used in this wiki (e.g. the Spam filter) are, like JOSM, translated at [https://translations.launchpad.net/tracplugins/trunk/ Launchpad].
     19
     20== StartupPage ==#StartupPage
     21The translation of [wikitr:/StartupPage JOSM start messages] can be changed at [wiki:StartupPageSource].
    622
    723This page has a special format:
    8  * Each line "en:" starts a new translatable page.
    9  * Each line with another language translates the previous English line.
     24 * Each line "en:" starts a new translatable line.
     25 * Each line with another [TracLanguages language abbreviation] translates the previous English line.
    1026 * Each line without specifics is taken as is.
    1127 * Lines starting with "#" are ignored.
    1228
    13 NOTE: There aren't always empty lines between the different sets. Be careful not to mix translations or forget some!
     29NOTE: There aren't always empty lines between the different sets. Be careful not to mix translations or forget some! Please sort the entries in each set by the lowercase language abbreviation, but keep "en:" first.
    1430
    15 When changing English text please keep in mind that translations also need to be adapted. If you are not able to do
    16 so, then add an "x" in front of the language, so the translation is still available, but disabled.
     31When changing English text please keep in mind that translations also need to be adapted. If you are not able to do so, then add an "x" in front of the language abbreviation, so the translation is still available as a draft, but disabled.
    1732
    18 Please sort the entries by the language abbreviation!
     33The previewed or saved page shows multiple sections sorted by language.
     34Lines marked with **EN** show untranslated lines.
     35Lines marked with **X** have been marked as draft line.
     36Lines marked with **BASE** are missing in a nationalized translation and have been overridden with the language based translation (i.e. "ca" used instead of missing "ca@valencia").
    1937
    20 When you press preview or submit new revision, then the page has multiple sections containing the individual languages.
    21 Lines marked with '''EN''' show untranslated lines, lines marked with '''X''' show lines, which have been removed due to changed texts.
     38The translation of older [wikitr:/VersionHistory JOSM start messages] can be changed at [wiki:VersionHistorySource] for the current year. For each former year a separate page exists (e.g. [wiki:VersionHistorySource/2021]) back to 2008. The line format is the same as above.
    2239
    23 The table below shows translation status:
    24  * Yellow: Translations need update
    25  * Green: Everything up-to-date
    26  * The numbers are:
    27   * first: number of untranslated lines
    28   * second: number of outdated translations
    2940
    30 [[MOTD(status|StartupPageSource)]]
     41== Software ==#Software
     42Translation of the program texts including plugins is done at [https://translations.launchpad.net/josm/trunk/ Launchpad]. A few plugins are translated at [https://www.transifex.com/josm/josm/dashboard/ Transifex] instead (as of January 2018 Mapillary, geojson and scripting). See #8645 for plans about what platform to use.
    3143
    32 = [wiki:VersionHistory] translation =
     44The templates at Launchpad for translation are updated each night together with the new [/latest] build. The translated strings are imported into JOSM before each new [/tested] version is released (which is usually at the end of every month, see [/roadmap]) or more often when needed).
    3345
    34 The translation of older JOSM start messages can be changed at the page of [wiki:VersionHistorySource].
     46The Java translation has some specialties which must be remembered when translating:
     47 * The `'` sign [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/MessageFormat.html 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  * This character is U+2019 named RIGHT SINGLE QUOTATION MARK
     50  * Under Linux this character is available with ''`<ALT-GR>+<SHIFT>+<N>`''
     51  * Under Windows the character is available by pressing ''`<ALT>`'' and typing `0146` on keypad
     52 * Don't use the message formatting brackets `{}`, or when, then escape each with single quotes like `'{'` or `'}'`.
    3553
    36 The format is the same as above.
     54All strings have a reference to the place in source code where they appear. That can help to find proper translation. You find the sources here:
     55* [source:josm/trunk/src/org/openstreetmap/josm main JOSM source] or [source:josm/trunk complete JOSM source]
     56* [source:osm/applications/editors/josm/plugins JOSM plugins]
     57* sources starting with **trans_** are converted from data files
     58 * trans_maps.java: [/maps our list of background imagery]
     59 * trans_plugins.java: [/plugin description texts of plugins]
     60 * trans_presets.java: [source:josm/trunk/resources/data/defaultpresets.xml internal preset]
     61 * trans_surveyor.java: [source:osm/applications/editors/josm/plugins/surveyor/resources/surveyor.xml surveyor plugin setup file]
    3762
    38 [[MOTD(status|VersionHistorySource)]]
     63New languages can be started at Launchpad at any time. They will be added to the JOSM binary when there are at least 2000 translated strings. Please start with main user interface to reach best results.
    3964
    40 = Software translation =
     65A short description how to add new language support for test purposes, when 2000 strings limit is not yet reached:
     66* Create the language files and store them in the plugin file (or JOSM core):
     67 * Language files are stored in directory "data" of JOSM and named with the lowercase language code with extension **.lang**.
     68 * These files are always a set. The English base file and the translation files must be created together or they will not work correctly.
     69 * The Perl script [source:osm/applications/editors/josm/i18n/i18n.pl i18n.pl] must be called with a destination directory and the **.po** files to create translation data.
     70* Add the new language in init() function of [source:trunk/src/org/openstreetmap/josm/tools/I18n.java I18n.java]:
     71 * A proper code for the plural mode of the language needs to specified.
     72 * A description of the plural calculations can be found in the **.po** file downloaded from Launchpad.
     73 * If none of the existing modes matches the language, a new one needs to be added in the PluralMode enumeration and in pluralEval() function.
     74 * 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
    4175
    42 Translation of the program texts is done at [https://translations.launchpad.net/josm/trunk/+pots/josm Launchpad].
    4376
    44 = JOSM online help =
    45 
    46 A list of all currently known online help pages can be found at [wiki:DevelopersGuide/HelpSystem/HelpTopicsList Help Topics List]. This list is automatically created, but may be incomplete nevertheless.
    47 See next section how translation works.
    48 
    49 = Page translation =
    50 
    51 The JOSM pages follow the simple method to add the language code in front of page name. You can find (and add) the language codes at the page [wiki:TracLanguages].
    52 
    53 Each English base page contains the macro {{{[[}}}{{{TranslatedPages]]}}} at the top of the page. This macro creates a small menu containing all available languages.
    54 
    55 Each translated page has the same macro, but containing the revision of the base page like in following picture:
    56 
    57 [[Image(revision.png)]]
    58 
    59 When the revision of the base page is newer than the translated revision (someone updated English page), then below the language links in menu an new menu point
    60 appears showing the translated revisions and newest one. When clicking on that link, the differences between that revision are displayed.
    61 These can then be used to update the translation. During updating the revision in the translated page needs to be increased to the newest one and the
    62 additional links disappears.
    63 
    64 [[Image(diff.png)]]
    65 
    66 Some notes:
    67  * 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)]]
    68  * Links inside the texts should go to translated pages or to English page when not yet translated (marked with (En) or something alike)
    69  * Pages should be consistent, so when adding new stuff, update the English base page also (except for language specific things)
    70 
    71 The following are automatically generated statistics showing errors in the {{{[[}}}{{{TranslatedPages]]}}} macro or outdated and missing pages.
    72 
    73 == Status table ==
    74 
    75  * Red: There is an error with this page (see error list below)
    76  * Yellow: Page needs update
    77  * Green: Everything up-to-date
    78  * Grey: Page is missing
    79 
    80 {{{
    81 #!comment
    82 When 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.
    83 }}}
    84 [[TranslatedPages(showstatus)]]
    85 
    86 [[TranslatedPages(showproblems)]]
     77== Language specific notes ==#Languagespecificnotes
     78Please see the [wikitr:/Glossary].