[jsword-svn] r1731 - trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Sat Dec 29 10:46:00 MST 2007


Author: dmsmith
Date: 2007-12-29 10:45:59 -0700 (Sat, 29 Dec 2007)
New Revision: 1731

Modified:
   trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Translations.java
Log:
more changes for Chinese translation

Modified: trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Translations.java
===================================================================
--- trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Translations.java	2007-12-29 17:09:25 UTC (rev 1730)
+++ trunk/bibledesktop/src/main/java/org/crosswire/bibledesktop/desktop/Translations.java	2007-12-29 17:45:59 UTC (rev 1731)
@@ -98,6 +98,11 @@
      */
     public Locale getCurrentLocale()
     {
+        if (translation.indexOf('_') != -1)
+        {
+            String[] locale = StringUtil.split(translation, '_');
+            return new Locale(locale[0], locale[1]);
+        }
         return new Locale(translation);
     }
 




More information about the jsword-svn mailing list