Changes between Version 3 and Version 4 of Translations/Wiki
- Timestamp:
- 2018-02-11T22:07:18+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Translations/Wiki
v3 v4 1 1 [[TranslatedPages]] 2 = Page translation = 2 = Wiki translation = 3 4 The system for providing JOSM users [wiki:/Help] is based on this Wiki. 5 It deals with the exact dialog or context the user currently faces. 6 It can offer the appropriate [wiki:DevelopersGuide/HelpSystem/HelpTopicsList topic] when the user clicks [[Image(source:trunk/images/help.png,link=wiki:Help,24,valign=middle)]] or strokes `F1`. 7 Our common goal is to help the user in his own language. 3 8 4 9 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]. 5 10 6 Each English base page contains the macro {{{[[}}}{{{TranslatedPages]]}}} at the top of the page. This macro creates a small menu containing all available languages.11 Each English base page has the macro `[[TranslatedPages]]` at its top. This macro creates a small menu containing links to all translated pages with the same wikiname. 7 12 8 13 Each translated page has the same macro, but containing the revision of the base page like in following picture: … … 28 33 29 34 Example: 30 {{{[[}}}{{{TranslatedPages(revision=12,outdated=Translation is incomplete\, last part missing.]]}}} 35 `[[TranslatedPages(revision=12,outdated=Translation is incomplete\, last part missing.]]` 31 36 32 37 Outdated 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). … … 34 39 The [wiki:OutdatedPages list of outdated pages] shows all outdated pages and the related comments. 35 40 36 The following are automatically generated statistics showing errors in the {{{[[}}}{{{TranslatedPages]]}}}macro or outdated and missing pages.41 The following are automatically generated statistics showing errors in the `[[TranslatedPages]]` macro or outdated and missing pages. 37 42 38 43 === Language codes === 39 44 40 45 Language codes in JOSM follow the method used by launchpad and many other open source translations. These are: 41 * Two letter codes from ISO 639-1 in lower case (i.e. **de**)42 * Three letter codes from ISO 639-2 in lower case when there is no two letter code (i.e. **ast**)43 * Above language code followed by an underscore and upper case country code according to ISO 3166-1 (i.e. **pt_BR**)44 * Above language code followed by an at sign and lower case dialect (i.e. **ca@valencia**)45 * List of ISO-codes: https://www.loc.gov/standards/iso639-2/php/English_list.php 46 * Two letter codes from [https://www.loc.gov/standards/iso639-2/php/English_list.php ISO 639-1] in lower case, i.e. `de`. 47 * Three letter codes from [https://www.loc.gov/standards/iso639-2/php/English_list.php ISO 639-2] in lower case when there is no two letter code, i.e. `ast`. 48 * Above language code followed by an underscore and upper case country code according to ISO 3166-1, i.e. `pt_BR`. 49 * Above language code followed by an at sign and lower case dialect, i.e. `ca@valencia`. 50 46 51 47 52 The codes are slightly modified in different places: 48 * For use in Java manifest and XML file keys the "@" sign is replaced by a "-" (i.e. **ca-valencia**). 49 * For use in Wiki page titles, the first letter (also after signs) is upper case (i.e. **Pt_BR** or **Ca-Valencia**) 53 * For use in Java manifest and XML file keys the "@" sign is replaced by a "-" i.e. `ca-valencia`. 54 * For use in Wiki page titles, the first letter (also after signs) is upper case, i.e. `Pt_BR` or `Ca-Valencia`. 55 56 The translation state of the whole wiki can be seen on the [wiki:/Translations/Statistics Statistics] page. 57 {{{ 58 #!comment 59 The following statistics were moved to the link seen above this comment. 60 Language specific 50 61 51 62 === Status table === … … 56 67 * Grey: Page is missing 57 68 58 {{{59 #!comment60 69 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. 61 }}} 70 62 71 [[TranslatedPages(showstatus,skipmissing)]] 63 72 64 73 [[TranslatedPages(showproblems,silent)]] 74 }}}