Changeset 1583 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2009-05-07T20:00:43+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Lambert.java
r1415 r1583 109 109 JOptionPane.showMessageDialog(Main.parent, 110 110 tr("The projection \"{0}\" is designed for\n" 111 + "latitudes between 46.1 ° and 57°only.\n"111 + "latitudes between 46.1\u00b0 and 57\u00b0 only.\n" 112 112 + "Use another projection system if you are not using\n" 113 113 + "a French WMS server.\n" -
trunk/src/org/openstreetmap/josm/data/projection/SwissGrid.java
r1582 r1583 44 44 JOptionPane.showMessageDialog(Main.parent, 45 45 tr("The projection \"{0}\" is designed for\n" 46 + "latitudes between 45.7 ' and 47.9'\n"47 + "and longitutes between 5.7 ' and 10.6'only.\n"46 + "latitudes between 45.7\u00b0 and 47.9\u00b0\n" 47 + "and longitutes between 5.7\u00b0 and 10.6\u00b0 only.\n" 48 48 + "Use another projection system if you are not working\n" 49 49 + "on a data set of Switzerland or Liechtenstein.\n" -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
r1340 r1583 2 2 3 3 import java.awt.Color; 4 5 import javax.swing.ImageIcon; 4 6 5 7 import org.openstreetmap.josm.tools.ColorHelper; … … 170 172 else if (qName.equals("icon")) 171 173 { 172 hadIcon =inIcon = true;174 inIcon = true; 173 175 for (int count=0; count<atts.getLength(); count++) 174 176 { 175 if (atts.getQName(count).equals("src")) 176 rule.icon.icon = MapPaintStyles.getIcon(atts.getValue(count), styleName); 177 else if (atts.getQName(count).equals("annotate")) 177 if (atts.getQName(count).equals("src")) { 178 ImageIcon icon = MapPaintStyles.getIcon(atts.getValue(count), styleName); 179 hadIcon = (icon != null); 180 rule.icon.icon = icon; 181 } else if (atts.getQName(count).equals("annotate")) 178 182 rule.icon.annotate = Boolean.parseBoolean (atts.getValue(count)); 179 183 else if(atts.getQName(count).equals("priority")) -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r1169 r1583 6 6 import java.util.Comparator; 7 7 import java.util.Locale; 8 import java.util.LinkedList; 8 9 import java.util.Vector; 9 10 … … 58 59 public static final Locale[] getAvailableTranslations() { 59 60 Vector<Locale> v = new Vector<Locale>(); 61 LinkedList<String>str = new LinkedList<String>(); 60 62 Locale[] l = Locale.getAvailableLocales(); 61 63 for (int i = 0; i < l.length; i++) { 62 String cn = TR_BASE + l[i]; 64 String loc = l[i].toString(); 65 String cn = TR_BASE + loc; 63 66 try { 64 67 Class.forName(cn); 65 68 v.add(l[i]); 69 str.add(loc); 66 70 } catch (ClassNotFoundException e) { 67 71 } 68 72 } 73 /* hmm, don't know why this is necessary */ 74 try { 75 if(!str.contains("nb")) 76 v.add(new Locale("nb")); 77 } catch (Exception e) {} 78 try { 79 if(!str.contains("gl")) 80 v.add(new Locale("gl")); 81 } catch (Exception e) {} 69 82 l = new Locale[v.size()]; 70 83 l = v.toArray(l);
Note:
See TracChangeset
for help on using the changeset viewer.