Changes between Version 6 and Version 7 of Translations/Wiki
- Timestamp:
- 2018-05-28T10:30:39+02:00 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Translations/Wiki
v6 v7 1 1 [[TranslatedPages]] 2 = Wiki translation =2 = Wiki Translation = 3 3 4 The system for providing JOSM users [wiki:/Help] is based on this Wiki. 5 It deals with the exact dialog orcontextthe 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`.4 The system for providing JOSM users [wikitr:/Help] is based on this Wiki. 5 It deals with the exact context under the mouse pointer. 6 It can offer the appropriate [wikitr:/DevelopersGuide/HelpSystem/HelpTopicsList topic] when the user clicks [[Image(source:trunk/images/help.svg,link=wikitr:Help,24,valign=middle)]] or strokes `F1`. 7 7 Our common goal is to help the user in his own language. 8 8 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].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 TracLanguages. 10 10 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 samewikiname. [[BR(Thedot between the brackets [·[ is needed to hinder the TranslatedPages Macro from reading the Macro like string here)]]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 page name. [[BR(The macro needs to be written false to avoid it from runing here)]] 12 12 13 Each translated page has the same macro, but containing the revision of the base page like in following picture: 13 This macro is also used on each translated page. 14 Additionally it contains the revision of the base page as parameter. 15 See the following example: 14 16 15 17 [[Image(revision.png)]] … … 24 26 Some notes: 25 27 * All links to wiki pages should use the `wikitr:` as realm. This realm delivers an URL to a translated page if available. If the target is not yet translated, then a URL to the English base page is delivered, combined with a marker. \\ 26 `[wikitr:/ StylesTranslatedStyle Titel]` will always lead the reader to a valid page.27 * Images from the English base page can easily be on translated pages. To address them, use the pagename as realm and place a colon in front of the filename: `[[Image( Styles:Mappaint_deprecated.png)]]`[[Image(Styles:Mappaint_deprecated.png)]]28 `[wikitr:/Translations/Wiki Translated Wiki Translation]` will always lead the reader to a valid page. 29 * Images from the English base page can easily be on translated pages. To address them, use the page name as realm and place a colon in front of the filename: `[[Image(Translations/Wiki:diff.png)]]` 28 30 * It is nice if screenshots are offered in the native language although the English version is also accepted and less work. 29 * Pages should be consistent, so when adding new stuff ,update the English base page also (except for language specific things)31 * Pages should be consistent, so when adding new stuff on a translated page, please update the English base page also (except for language specific things). 30 32 31 33 See the [WikiMacros#TranslatedPages-macro macro description] for more information about this macro. 32 34 33 Pages 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. 35 Pages can be marked as incomplete or old with adding the `outdated` parameter to the translation macro. 36 A message describing the incompleteness and what to do is the value of this parameter. 37 The parameter name must be separated with a comma from other parameters. 38 The parameter value is separated with an equal sign from the name. 39 Commas inside the value must be escaped with a backslash. 34 40 35 41 Example: … … 38 44 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). 39 45 40 The [wiki:OutdatedPages list of outdated pages] shows all outdated pages and the related comments. 41 42 The following are automatically generated statistics showing errors in the `[·[TranslatedPages]]` macro or outdated and missing pages.[[BR(The dot between the brackets [·[ is needed to hinder the TranslatedPages Macro from reading the Macro like string here)]] 46 The [wikitr:/OutdatedPages list of outdated pages] shows all outdated pages and the related comments. 47 Its translated variants shows this information only for the target language and for the English base pages. 43 48 44 49 === Language codes === … … 50 55 * Above language code followed by an at sign and lower case dialect, i.e. `ca@valencia`. 51 56 52 53 57 The codes are slightly modified in different places: 54 58 * For use in Java manifest and XML file keys the "@" sign is replaced by a "-" i.e. `ca-valencia`. 55 59 * For use in Wiki page titles, the first letter (also after signs) is upper case, i.e. `Pt_BR` or `Ca-Valencia`. 56 60 57 The translation state of the whole wiki can be seen on the [wiki:/Translations/Statistics Statistics] page. 58 {{{ 59 #!comment 60 The following statistics were moved to the link seen above this comment. 61 Language specific 62 63 === Status table === 64 65 * Red: There is an error with this page (see error list below) 66 * Yellow: Page needs update 67 * Green: Everything up-to-date 68 * Grey: Page is missing 69 70 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. 71 72 [[TranslatedPages(showstatus,skipmissing)]] 73 74 [[TranslatedPages(showproblems,silent)]] 75 }}} 61 The translation state of the whole wiki can be seen on the [wikitr:/Translations/Statistics Statistics] page.
