Revision: 5384
http://sourceforge.net/p/jump-pilot/code/5384
Author: edso
Date: 2017-03-18 15:47:07 +0000 (Sat, 18 Mar 2017)
Log Message:
-----------
readd license
refine static I18N usage
Modified Paths:
--------------
plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
Modified:
plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
===================================================================
---
plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
2017-03-18 15:30:40 UTC (rev 5383)
+++
plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/language/I18NPlug.java
2017-03-18 15:47:07 UTC (rev 5384)
@@ -1,7 +1,26 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * For more information, contact:
+ *
+ * [email protected]
+ * http://sourceforge.net/projects/jump-pilot
+ */
package org.openjump.advancedtools.language;
import java.io.File;
-
import com.vividsolutions.jump.I18N;
/**
@@ -10,14 +29,13 @@
*
*/
public class I18NPlug {
- private static I18N i18n = I18N.getInstance(new
File("org/openjump/advancedtools/language/cadtoolbox"));
+ private static File path = new
File("org/openjump/advancedtools/language/cadtoolbox");
public static String getI18N(String key) {
- return i18n.getText(key);
+ return getMessage(key);
}
- public static String getMessage(String label, Object[] objects) {
- return i18n.getMessage(label, objects);
+ public static String getMessage(String label, final Object... objects) {
+ return I18N.getMessage(path, label, objects);
}
-
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel