Changes between Version 3 and Version 4 of DevelopersGuide/StyleGuide
- Timestamp:
- 2009-05-29T21:39:28+02:00 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/StyleGuide
v3 v4 7 7 * don't use multiple consecutive empty lines 8 8 9 === Configuring Eclipse === =9 === Configuring Eclipse === 10 10 [[Image(ss1.png)]] 11 11 12 [[Image(ss2.png)]] 13 14 [[Image(ss3.png)]] 12 15 13 16 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 }}} 14 29 15 30 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
