|
From: <de...@us...> - 2013-02-15 14:51:21
|
Revision: 8275
http://fudaa.svn.sourceforge.net/fudaa/?rev=8275&view=rev
Author: deniger
Date: 2013-02-15 14:51:11 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
cas ?\195?\160 g?\195?\169rer si titre du calque est null.
Modified Paths:
--------------
trunk/framework/ctulu-common/src/main/java/org/fudaa/ctulu/MessageFormatHelper.java
Modified: trunk/framework/ctulu-common/src/main/java/org/fudaa/ctulu/MessageFormatHelper.java
===================================================================
--- trunk/framework/ctulu-common/src/main/java/org/fudaa/ctulu/MessageFormatHelper.java 2013-02-14 22:28:35 UTC (rev 8274)
+++ trunk/framework/ctulu-common/src/main/java/org/fudaa/ctulu/MessageFormatHelper.java 2013-02-15 14:51:11 UTC (rev 8275)
@@ -1,6 +1,5 @@
/**
- * Licence GPL
- * Copyright Genesis
+ * Licence GPL Copyright Genesis
*/
package org.fudaa.ctulu;
@@ -19,15 +18,18 @@
* @return la chaine traduite
*/
public static String getS(ResourceBundle bundle, final String s, Object... args) {
- try {
- String res = bundle.getString(s);
- if (!CtuluLibArray.isEmpty(args)) { return new MessageFormat(res).format(args); }
- return res;
- } catch (Exception e) {
-
- }
- return s;
-
+// System.err.println("getS "+s+" args= "+args);
+ if (bundle.containsKey(s)) {
+ try {
+ String res = bundle.getString(s);
+ if (!CtuluLibArray.isEmpty(args)) {
+ return new MessageFormat(res).format(args);
+ }
+ return res;
+ } catch (Exception e) {
+ }
+ }
+ return s;
+
}
-
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|