Changeset 2230 in josm for trunk/presets/presets.xml


Ignore:
Timestamp:
2009-10-03T13:56:26+02:00 (15 years ago)
Author:
stoecker
Message:

added translation context support also for presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/presets/presets.xml

    r2207 r2230  
    3535  text: fixed label to display
    3636  values: comma seperated list of values
     37  display_values: comma seperated list of values to be displayed instead of the
     38                  database values, order and number must be equal to values
    3739  default: default string to display
    3840  delete_if_empty: true/false
     
    5355
    5456See also http://josm.openstreetmap.de/wiki/TaggingPresets.
     57
     58The fields "name", "text", "display_values" may also be localized (e.g. de.name).
     59When translations of equal words but different meanings may conflict, a translation
     60context should be specified. Use "name_conext", "text_context" or "values_context"
     61for this. The context should be a meaningful short description to help translators.
     62
     63In JOSM internally all "name", "text" and "display_values" are translated when
     64no specific translation has been given in XML file. When no "display_values"
     65are supplied, then "values" will be treated as "display_values" and translated instead.
    5566-->
    5667<annotations>
     
    13671378            <text key="name" text="Name" default="" delete_if_empty="true" />
    13681379        </item>
    1369         <item name="Station" icon="presets/aerialway_station.png" type="node,closedway">
     1380        <item name="Station" name_context="aerialway" icon="presets/aerialway_station.png" type="node,closedway">
    13701381            <link href="http://wiki.openstreetmap.org/wiki/Proposed_features/Piste_Maps" />
    1371             <label text="Edit Station" />
     1382            <label text="Edit Station" text_context="aerialway" />
    13721383            <key key="aerialway" value="station" />
    13731384            <text key="name" text="Name" default="" delete_if_empty="true" />
     
    14621473    </group> <!-- Bicycle -->
    14631474    <group name="Public Transport" icon="presets/bus.png">
    1464         <item name="Station" icon="presets/station.png" type="node,closedway">
     1475        <item name="Station" name_context="railway" icon="presets/station.png" type="node,closedway">
    14651476            <link href="http://wiki.openstreetmap.org/wiki/Tag:railway=station"
    14661477                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:railway=station" />
    1467             <label text="Edit Station" />
     1478            <label text="Edit Station" text_context="railway" />
    14681479            <space />
    14691480            <key key="railway" value="station" />
Note: See TracChangeset for help on using the changeset viewer.