Changes between Version 50 and Version 80 of Translations
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Translations
v50 v80 2 2 3 3 = Translations = 4 Translation 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. 4 5 5 [[PageOutline(2- 4,,inline)]]6 [[PageOutline(2-10,Table of Contents)]] 6 7 7 == [wiki:StartupPage]translation==8 The state of the translation over time is shown on [wikitr:/Translations/Statistics]. 8 9 9 The translation of JOSM start messages can be changed at the page of [wiki:StartupPageSource]. 10 11 == Wiki and Online help == 12 A 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 14 Some [#Languagespecificnotes English specific notes] are on the bottom of this page. 15 16 A 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 18 Note: 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 21 The translation of [wikitr:/StartupPage JOSM start messages] can be changed at [wiki:StartupPageSource]. 10 22 11 23 This page has a special format: 12 24 * Each line "en:" starts a new translatable line. 13 * Each line with another languagetranslates the previous English line.25 * Each line with another [TracLanguages language abbreviation] translates the previous English line. 14 26 * Each line without specifics is taken as is. 15 27 * Lines starting with "#" are ignored. 16 28 17 NOTE: There aren't always empty lines between the different sets. Be careful not to mix translations or forget some! 29 NOTE: 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. 18 30 19 When changing English text please keep in mind that translations also need to be adapted. If you are not able to do 20 so, then add an "x" in front of the language, so the translation is still available, but disabled. 31 When 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. 21 32 22 Please sort the entries by the language abbreviation! 33 The previewed or saved page shows multiple sections sorted by language. 34 Lines marked with **EN** show untranslated lines. 35 Lines marked with **X** have been marked as draft line. 36 Lines 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"). 23 37 24 When you press preview or submit new revision, then the page has multiple sections containing the individual languages. 25 Lines marked with '''EN''' show untranslated lines, lines marked with '''X''' show lines, which have been removed due to changed texts. 38 The 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. 26 39 27 The table below shows translation status:28 * Yellow: Translations need update29 * Green: Everything up-to-date30 * The numbers are:31 * first: number of untranslated lines32 * second: number of outdated translations33 40 34 [[MOTD(status|StartupPageSource)]] 41 == Software ==#Software 42 Translation 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. 35 43 36 == [wiki:VersionHistory] translation == 44 The 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). 37 45 38 The translation of older JOSM start messages can be changed at the page of [wiki:VersionHistorySource] for the current year, or for the past years, from 2008 on upto last year, on the page for the year (e.g. [wiki:VersionHistorySource/2011]). 39 40 The format is the same as above. 41 42 [[VersionHistoryIndex(status)]] 43 44 == Software translation == 45 46 Translation of the program texts is done at [https://translations.launchpad.net/josm/trunk/ Launchpad]. 47 48 The templates at Launchpad are updated each night together with the new latest build. Translations are imported before each new release (or more often when needed). 49 50 The Java translation has some specialities which must be remembered when translating: 51 * The ' sign is a special character. It must be escaped by another ', so !'' means a single quote in resulting display. 52 * 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). 46 The 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). 53 49 * This character is U+2019 named RIGHT SINGLE QUOTATION MARK 54 * Under Linux this character is available with <ALT-GR>+<SHIFT>+<N> 55 * Under Windows the character is available by pressing <ALT>and typing0146on keypad56 * Don't use the message formating brackets {}, or when, then escape each with single quotes like'{' or '}'.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 `'}'`. 57 53 58 54 All 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: 59 55 * [source:josm/trunk/src/org/openstreetmap/josm main JOSM source] or [source:josm/trunk complete JOSM source] 60 * [ osm:source:applications/editors/josm/plugins JOSM plugins]56 * [source:osm/applications/editors/josm/plugins JOSM plugins] 61 57 * sources starting with **trans_** are converted from data files 62 58 * trans_maps.java: [/maps our list of background imagery] 63 59 * trans_plugins.java: [/plugin description texts of plugins] 64 * trans_presets.java: [source:josm/trunk/data/defaultpresets.xml internal preset] 65 * trans_surveyor.java: [ osm:source:applications/editors/josm/plugins/surveyor/resources/surveyor.xml surveyor plugin setup file]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] 66 62 67 Changes made in Launchpad will be imported into JOSM for all languages which are already in JOSM. Usually the JOSM team updates the text data once or twice just before the release of a new tested version (which is usually at the end of every month, see [/roadmap]). 68 69 New languages will be added to JOSM when there are at least 2000 translated strings. Please start with main user interface to reach best results. 63 New 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. 70 64 71 65 A short description how to add new language support for test purposes, when 2000 strings limit is not yet reached: 72 66 * Create the language files and store them in the plugin file (or JOSM core): 73 * Language files are stored in directory "data" of JOSM and named with the lowercase language code with extension '''.lang'''.67 * Language files are stored in directory "data" of JOSM and named with the lowercase language code with extension **.lang**. 74 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. 75 * 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.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. 76 70 * Add the new language in init() function of [source:trunk/src/org/openstreetmap/josm/tools/I18n.java I18n.java]: 77 71 * A proper code for the plural mode of the language needs to specified. 78 * A description of the plural calculations can be found in the '''.po'''file downloaded from Launchpad.79 * If none of the existing modes matches the language, a ddnew one needs to be added in the PluralMode enumeration and in pluralEval() function.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. 80 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 81 75 82 Current JOSM translation status active in the software (only JOSM core and server, no plugins) is shown in following table.83 76 84 ||=JOSM core=|| ||=JOSM server data=|| 85 || [[JOSMTranslation(||||=language=||=normal strings=||=plural number=||=plural strings=||=complete plural sets=||||=total=||)]] || || [[JOSMTranslation(||||=language=||=normal strings=||=plural number=||=plural strings=||=complete plural sets=||||=total=||,typedata)]] || 86 87 {{{ 88 #!comment 89 NOTE: 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. 90 }}} 91 92 == JOSM online help == 93 94 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. 95 See next section how translation works. 96 97 == Page translation == 98 99 See [[Translations/Wiki]] for detailed information and statistics about translations of JOSM wiki pages. 100 101 == Language specific translation notes == 102 103 Each language has specific rules how the terms and texts of JOSM and OpenStreetMap needs to be translated. 104 105 {{{ 106 #!comment 107 NOTE to translators: Add translation notes, and every language specific information in the translated pages. See e.g. German page for examples. 108 }}} 77 == Language specific notes ==#Languagespecificnotes 78 Please see the [wikitr:/Glossary].