Changeset 32330 in osm for applications


Ignore:
Timestamp:
2016-06-19T22:20:02+02:00 (8 years ago)
Author:
stoecker
Message:

fix #josm13004 - i18n error

Location:
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/IncompleteMembersDownloadDialog.java

    r32282 r32330  
    2929                selectedOption = Integer.MIN_VALUE;
    3030
    31                 message = tr("The relation (id=" + id
    32                                 + ") has incomplete members.\nThey need to be downloaded to proceed with validation of this relation.\nDo you want to download incomplete members?");
     31                message = tr("The relation (id={0}) has incomplete members.\n"+
     32                    "They need to be downloaded to proceed with validation of this relation.\nDo you want to download incomplete members?", id);
    3333                checkbox = new JCheckBox(tr("Remember my choice and do not ask me again in this session"));
    3434                options = new String[2];
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/ProceedDialog.java

    r32282 r32330  
    22
    33import static org.openstreetmap.josm.tools.I18n.tr;
     4import static org.openstreetmap.josm.tools.I18n.trn;
    45
    56import java.awt.Component;
     
    3839                panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
    3940
    40                 JLabel label1 = new JLabel(tr("PT_Assistant plugin found that this relation (id=" + id + ") has errors:"));
     41                JLabel label1 = new JLabel(tr("PT_Assistant plugin found that this relation (id={0}) has errors:", id));
    4142                panel.add(label1);
    4243                label1.setAlignmentX(Component.LEFT_ALIGNMENT);
    4344
    4445                if (numberOfDirectionErrors != 0) {
    45                         JLabel label2 = new JLabel("     " + numberOfDirectionErrors + tr(" direction errors"));
     46                        JLabel label2 = new JLabel("     " + tr("{0} direction error", "{0} direction errors", numberOfDirectionErrors, numberOfDirectionErrors));
    4647                        panel.add(label2);
    4748                        label2.setAlignmentX(Component.LEFT_ALIGNMENT);
     
    4950
    5051                if (numberOfRoadTypeErrors != 0) {
    51                         JLabel label3 = new JLabel("     " + numberOfRoadTypeErrors + tr(" road type errors"));
     52                        JLabel label3 = new JLabel("     " + tr("{0} road type error", "{0} road type errors", numberOfRoadTypeErrors, numberOfRoadTypeErrors));
    5253                        panel.add(label3);
    5354                        label3.setAlignmentX(Component.LEFT_ALIGNMENT);
Note: See TracChangeset for help on using the changeset viewer.