Changeset 6771 in josm


Ignore:
Timestamp:
2014-01-29T21:09:04+01:00 (8 years ago)
Author:
simon04
Message:

see #9611 - Improve i18n in download object dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java

    r6674 r6771  
    2929import java.awt.event.WindowEvent;
    3030import java.awt.event.WindowListener;
     31import java.util.Arrays;
    3132import java.util.Collection;
    3233import java.util.Collections;
     
    8788        tfId.setPreferredSize(new Dimension(400, tfId.getPreferredSize().height));
    8889
    89         HtmlPanel help = new HtmlPanel(tr("Object IDs can be separated by comma or space.<br/>"
    90                 + " Examples: <b><ul><li>1 2 5</li><li>1,2,5</li></ul><br/></b>"
    91                 + " In mixed mode, specify objects like this: <b>w123, n110, w12, r15</b><br/>"));
     90        HtmlPanel help = new HtmlPanel(/* I18n: {0} and {1} contains example strings not meant for translation. {2}=n, {3}=w, {4}=r. */
     91                tr("Object IDs can be separated by comma or space.<br/>"
     92                        + "Examples: {0}<br/>"
     93                        + "In mixed mode, specify objects like this: {1}<br/>"
     94                        + "({2} stands for <i>node</i>, {3} for <i>way</i>, and {4} for <i>relation</i>)",
     95                        "<b>" + Utils.joinAsHtmlUnorderedList(Arrays.asList("1 2 5", "1,2,5")) + "</b>",
     96                        "<b>w123, n110, w12, r15</b>",
     97                        "<b>n</b>", "<b>w</b>", "<b>r</b>"
     98                ));
    9299        help.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
    93100
Note: See TracChangeset for help on using the changeset viewer.