Changes between Version 3 and Version 4 of DevelopersGuide/StyleGuide


Ignore:
Timestamp:
2009-05-29T21:39:28+02:00 (17 years ago)
Author:
Gubaer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/StyleGuide

    v3 v4  
    77 * don't use multiple consecutive empty lines
    88
    9 === Configuring Eclipse ====
     9=== Configuring Eclipse ===
    1010[[Image(ss1.png)]]
    1111
     12[[Image(ss2.png)]]
     13
     14[[Image(ss3.png)]]
    1215
    1316
     17== Internationalization ==
     18
     19 * make sure you use use {{{tr(...)}}} for all localized strings
     20   {{{
     21   import import static org.openstreetmap.josm.tools.I18n.tr;
     22
     23   threw new Exception(tr("error message always in tr"));
     24
     25   new JLable(tr("Lable always in  tr"));
     26
     27   // etc.
     28   }}}
    1429
    1530
     31 * never assemble localized messages with {{{+}}}. Use format
     32   placeholders instead.
     33
     34   '''DONT'''
     35   {{{new JLable(tr("My Label " + labelId));}}}
     36
     37
     38   '''DO'''
     39   {{{new JLable(tr("My Label {0}",labelId));}}}
     40   
     41