[josm-dev] i18n: Howto change "Zoom menu entries"
    Sven Anders 
    sven at anders-hamburg.de
       
    Fri Dec  7 08:53:43 GMT 2007
    
    
  
Hi,
In: trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
You will find the following lines:
   53          public AutoScaleAction(String mode) {
    54                  super(tr("Zoom to {0}", 
mode), "dialogs/autoscale/"+mode, tr("Zoom the view to {0}.", tr(mode)), 
AutoScaleAct
ion.getModeShortcut(mode), 0, true);
    55                  String modeHelp = 
Character.toUpperCase(mode.charAt(0))+mode.substring(1);
    56                  putValue("help", "Action/AutoScale/"+modeHelp);
    57                  this.mode = mode;
    58          }
This works not for the German language, because I want to translate as 
folowing:
Zoom to data -> Zu den Daten zoomen
Zoom to layer -> Zur Ebene zoomen
Zoom to selection -> Zur Auswahl zoomen
Zoom to Conflict -> Zum Konflikt zoomen
I also do not like this that the Key Shurtcut is defined in dis class but the 
Mode is given in a constuctor. Should we have 5 Classes?  One Baseclass and a 
Class for data, layer, selection und conflict zooming?
Best Regards
Sven
    
    
More information about the josm-dev
mailing list