Changes between Version 6 and Version 7 of DevelopersGuide/StyleGuide


Ignore:
Timestamp:
2009-05-29T21:46:58+02:00 (16 years ago)
Author:
stoecker
Comment:

Typos

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/StyleGuide

    v6 v7  
    2323   import import static org.openstreetmap.josm.tools.I18n.tr;
    2424
    25    threw new Exception(tr("error message always in tr"));
     25   threw new Exception(tr("error message always in tr()"));
    2626
    27    new JLable(tr("Lable always in  tr"));
     27   new JLabel(tr("Label always in tr()"));
    2828
    29    // etc. 
     29   // etc.
    3030   }}}
    3131
    3232
    3333 * never assemble localized messages with {{{+}}}. Use format
    34    placeholders instead. 
     34   placeholders instead.
    3535
    3636   '''DONT'''
    37    {{{new JLable(tr("My Label " + labelId));}}}
     37   {{{new JLabel(tr("My Label " + labelId));}}}
    3838
    3939
    4040   '''DO'''
    41    {{{new JLable(tr("My Label {0}",labelId));}}}
     41   {{{new JLabel(tr("My Label {0}",labelId));}}}
    4242   
    43 
     43   Only exception: {{{+}}} can be used to break long lines of non-variable texts.