From: <ha...@us...> - 2007-08-29 04:05:34
|
Revision: 8149 http://jmol.svn.sourceforge.net/jmol/?rev=8149&view=rev Author: hansonr Date: 2007-08-28 21:05:26 -0700 (Tue, 28 Aug 2007) Log Message: ----------- 11.3.12 -- bug fix for set language fr without quotes Modified Paths: -------------- trunk/Jmol/src/org/jmol/i18n/GT.java trunk/Jmol/src/org/jmol/viewer/Eval.java trunk/Jmol/src/org/jmol/viewer/Jmol.properties Modified: trunk/Jmol/src/org/jmol/i18n/GT.java =================================================================== --- trunk/Jmol/src/org/jmol/i18n/GT.java 2007-08-28 20:59:15 UTC (rev 8148) +++ trunk/Jmol/src/org/jmol/i18n/GT.java 2007-08-29 04:05:26 UTC (rev 8149) @@ -147,6 +147,8 @@ translationResources = null; translationResourcesCount = 0; getTextWrapper = this; + if (langCode != null && langCode.length() == 0) + langCode="none"; if (langCode != null) language = langCode; if ("none".equals(language)) Modified: trunk/Jmol/src/org/jmol/viewer/Eval.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-08-28 20:59:15 UTC (rev 8148) +++ trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-08-29 04:05:26 UTC (rev 8149) @@ -5977,6 +5977,11 @@ viewer.setBackgroundModel(statement[2].intValue); return; } + if (key.equalsIgnoreCase("language")) { + checkLength3(); + setStringProperty(key, parameterAsString(2)); + return; + } if (Parser.isOneOf(key.toLowerCase(), "spinx;spiny;spinz;spinfps")) { checkLength3(); setSpin(key.substring(4), (int) floatParameter(2)); Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2007-08-28 20:59:15 UTC (rev 8148) +++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2007-08-29 04:05:26 UTC (rev 8149) @@ -1,6 +1,7 @@ version=11.3.12 # bug fix: zoomTo 100% +# bug fix: set language fr needs quotes but should not # new feature: APPLICATION: File|Export...|Export to Web Page This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |