Changeset 3433 in josm for trunk/src/org
- Timestamp:
- 2010-08-13T23:17:39+02:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r3378 r3433 361 361 UIManager.put("OptionPane.noIcon", UIManager.get("OptionPane.cancelIcon")); 362 362 363 I18n. fixJFileChooser();363 I18n.translateJavaInternalMessages(); 364 364 365 365 // init default coordinate format -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r3418 r3433 29 29 30 30 /* Localization keys for file chooser (and color chooser). */ 31 private static final String[] j FileChooserLocalizationKeys = new String[] {32 /* windows laf */31 private static final String[] javaInternalMessageKeys = new String[] { 32 /* JFileChooser windows laf */ 33 33 "FileChooser.detailsViewActionLabelText", 34 34 "FileChooser.detailsViewButtonAccessibleName", … … 56 56 "FileChooser.viewMenuLabelText", 57 57 58 /* gtk laf */58 /* JFileChooser gtk laf */ 59 59 "FileChooser.acceptAllFileFilterText", 60 60 "FileChooser.cancelButtonText", … … 78 78 "FileChooser.saveDialogTitleText", 79 79 80 /* motif laf */80 /* JFileChooser motif laf */ 81 81 //"FileChooser.cancelButtonText", 82 82 //"FileChooser.cancelButtonToolTipText", … … 97 97 "FileChooser.updateButtonToolTipText", 98 98 99 /* color chooser */99 /* gtk color chooser */ 100 100 "GTKColorChooserPanel.blueText", 101 101 "GTKColorChooserPanel.colorNameText", … … 105 105 "GTKColorChooserPanel.redText", 106 106 "GTKColorChooserPanel.saturationText", 107 "GTKColorChooserPanel.valueText" 107 "GTKColorChooserPanel.valueText", 108 109 /* JOptionPane */ 110 "OptionPane.okButtonText", 111 "OptionPane.yesButtonText", 112 "OptionPane.noButtonText", 113 "OptionPane.cancelButtonText" 108 114 }; 109 115 private static HashMap<String, String> strings = null; … … 460 466 * by Java, but not for others (e.g. ru, uk). 461 467 */ 462 public static void fixJFileChooser() {468 public static void translateJavaInternalMessages() { 463 469 Locale l = Locale.getDefault(); 464 470 465 471 JFileChooser.setDefaultLocale(l); 466 472 JColorChooser.setDefaultLocale(l); 467 for (String key : j FileChooserLocalizationKeys) {473 for (String key : javaInternalMessageKeys) { 468 474 String us = UIManager.getString(key, Locale.US); 469 475 String loc = UIManager.getString(key, l);
Note:
See TracChangeset
for help on using the changeset viewer.