Changes between Version 165 and Version 166 of TaggingPresets


Ignore:
Timestamp:
2020-04-12T16:27:30+02:00 (6 years ago)
Author:
skyper
Comment:

add info about translation, see #11392

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v165 v166  
    4848  * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"'''
    4949  * '''author''' - the name of the author of the preset
    50   * '''version''' - the version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit), e.g. `1.[[revision]]_[[date]]`.
     50  * '''version''' - the version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit), e.g. `version="1.[[revision]]_[[date]]"`.
    5151  * '''description''' (i18n) - description what the file contains
    5252  * '''shortdescription''' (i18n) - very short overview description i.e. the "name" of the preset
    5353  * '''link''' (i18n) - web link to further details (optional)
    5454  * '''icon''' - icon for the whole preset
    55   * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts prevents automatic translation)
    56 
    57  (i18n) means the values may also be localized (e.g. de.description).
     55  * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts will prevent automatic translation, once it is implemented (#11392))
     56
     57 (i18n) means the values may also be localized (e.g. `de.description`).
    5858\\
    5959
     
    191191  an expression (cf. search dialog) for objects of this role
    192192 regexp="true"::
    193   set to `"true"` if the key of a role is a regular expression. This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles level_0, level_1,...
     193  set to `"true"` if the key of a role is a regular expression. This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles `level_0`, `level_1`,...
    194194 preset_name="exact_name"::
    195195  The exact name of the preset to link to.
     
    208208  A delimiter-separated list of texts to be displayed below each `display_value`. (Only if it is not possible to describe the entry in 2-3 words.) Instead of a comma separated list  using `values`, `display_values` and `short_descriptions`, the following form is also supported: `<list_entry value="" display_value="" short_description="" icon="" icon_size="" />`
    209209 values_searchable="true|false"::
    210   Whether to search in `<combo>` or `<multiselect>` (display_)values when searching for presets.
     210  Whether to search in `<combo>` or `<multiselect>` `(display_)values` when searching for presets.
    211211\\
    212212
     
    248248- `{special:everything}` prints all available values, available for formatting of both primitives and waypoints.
    249249- `{special:id}` prints the ID of an osm primitive
    250 - `{special:localName}` prints the localized name, that is the value of name:lang for your language if it is available or the value of the name tag if it doesn't.
     250- `{special:localName}` prints the localized name, that is the value of `name:lang` for your language if it is available or the value of the name tag if it doesn't.
    251251\\
    252252
     
    267267The translation for the internal preset is done at [https://translations.launchpad.net/josm/trunk Launchpad] (and will probably change to another service in the future, since the Launchpad web interface often produces timeout errors, see #8645).
    268268
     269The translation of external presets on this website is, so far, only possible inline within the preset source code, see #11392.
     270
    269271== Icon handling ==
    270272See [wikitr:/Styles#Iconhandling Styles].