Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1339 - trunk/src/org/tigris/gef/base

gef
Discussion topic

Back to topic list

svn commit: r1339 - trunk/src/org/tigris/gef/base

Author mvw
Full name Michiel van der Wulp
Date 2011-08-29 07:00:30 PDT
Message Author: mvw
Date: 2011-08-29 07:00:30-0700
New Revision: 1339

Modified:
   trunk/src/org/tigris​/gef/base/BaseResour​ceBundle.properties
   trunk/src/org/tigris​/gef/base/CmdCreateN​ode.java
   trunk/src/org/tigris​/gef/base/CreateNode​Action.java

Log:
Fix for issue 361:Missing i18n for "Click to place".

Modified: trunk/src/org/tigris​/gef/base/BaseResour​ceBundle.properties
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/base/BaseResour​ceBundle.properties?​view=diff&pathre​v=1339&r1=1338​&r2=1339
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/base/BaseResour​ceBundle.properties (original)
+++ trunk/src/org/tigris​/gef/base/BaseResour​ceBundle.properties 2011-08-29 07:00:30-0700
@@ -83,6 +83,7 @@
 UndoMnemonic=U
 Redo=Redo
 RedoMnemonic=R
+ClickToPlace=Click to place a
 
 Nudge=Nudge
 Reorder=Reorder

Modified: trunk/src/org/tigris​/gef/base/CmdCreateN​ode.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/base/CmdCreateN​ode.java?view=diff​&pathrev=1339&​r1=1338&r2=1339
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/base/CmdCreateN​ode.java (original)
+++ trunk/src/org/tigris​/gef/base/CmdCreateN​ode.java 2011-08-29 07:00:30-0700
@@ -1,4 +1,4 @@
-// Copyright (c) 1996-99 The Regents of the University of California. All
+// Copyright (c) 1996-2011 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -35,10 +35,14 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.l​ogging.LogFactory;
+
 import org.tigris.gef.graph​.GraphFactory;
 import org.tigris.gef.graph​.GraphModel;
 import org.tigris.gef.graph​.GraphNodeHooks;
 import org.tigris.gef.graph​.MutableGraphModel;
+import org.tigris.gef.graph​.presentation.NetNod​e;
+import org.tigris.gef.prese​ntation.FigNode;
+import org.tigris.gef.util.Localizer;
 
 /**
  * This Cmd is executed it makes the new objects as per its arguments, and then
@@ -119,7 +123,7 @@
         String instructions = null;
         Object actionName = getValue(javax.swing​.Action.NAME);
         if (actionName != null) {
- instructions = "Click to place " + actionName.toString();
+ instructions = Localizer.localize("GefBase", "ClickToPlace") + " " + actionName.toString();
         }
         Mode placeMode = new ModePlace(this, instructions);
 

Modified: trunk/src/org/tigris​/gef/base/CreateNode​Action.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/base/CreateNode​Action.java?view=dif​f&pathrev=1339​&r1=1338&r2=13​39
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/base/CreateNode​Action.java (original)
+++ trunk/src/org/tigris​/gef/base/CreateNode​Action.java 2011-08-29 07:00:30-0700
@@ -1,4 +1,4 @@
-// Copyright (c) 1996-06 The Regents of the University of California. All
+// Copyright (c) 1996-2011 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -35,6 +35,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.l​ogging.LogFactory;
+
 import org.tigris.gef.graph​.GraphFactory;
 import org.tigris.gef.graph​.GraphModel;
 import org.tigris.gef.graph​.GraphNodeHooks;
@@ -42,6 +43,7 @@
 import org.tigris.gef.graph​.presentation.NetNod​e;
 import org.tigris.gef.prese​ntation.FigNode;
 import org.tigris.gef.undo.​UndoableAction;
+import org.tigris.gef.util.Localizer;
 
 /**
  * this Action is executed it makes the new objects as per its arguments, and
@@ -137,7 +139,7 @@
         String instructions = null;
         Object actionName = getValue(javax.swing​.Action.NAME);
         if (actionName != null) {
- instructions = "Click to place " + actionName.toString();
+ instructions = Localizer.localize("GefBase", "ClickToPlace") + " " + actionName.toString();
         }
         Mode placeMode = createMode(instructions);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1339 - trunk/src/org/tigris/gef/base mvw Michiel van der Wulp 2011-08-29 07:00:30 PDT
Messages per page: