diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-07 21:23:42 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2012-11-07 21:23:42 +0100 |
commit | 6402d63723f6a2f0f1c58a9eef0d9cf8ba82491d (patch) | |
tree | e73cce0d2ac138c5888d6005503ababce7b190cb /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils | |
parent | 5363713f1940731c9d9432bb603b282bdc16b924 (diff) | |
download | pdf-over-6402d63723f6a2f0f1c58a9eef0d9cf8ba82491d.tar.gz pdf-over-6402d63723f6a2f0f1c58a9eef0d9cf8ba82491d.tar.bz2 pdf-over-6402d63723f6a2f0f1c58a9eef0d9cf8ba82491d.zip |
Use localized strings for lang selection
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java index fccbedc8..cdd5b5cc 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/LocaleSerializer.java @@ -22,7 +22,6 @@ import java.util.Locale; * */ public class LocaleSerializer { - /** * Parse a locale from a string * @param localeString the string @@ -34,24 +33,23 @@ public class LocaleSerializer { return null; } - Locale targetLocal = null; + Locale targetLocale = null; Locale[] locale = Locale.getAvailableLocales(); for(int i = 0; i < locale.length; i++) { if(locale[i].toString().equals(localeString)) { - targetLocal = locale[i]; + targetLocale = locale[i]; break; } } - return targetLocal; + return targetLocale; } - + /** - * creates a parseable string for a locale + * creates a parsable string for a locale * @param locale the locale - * @return the parseable string + * @return the parsable string */ - public static String getParseableString(Locale locale) { + public static String getParsableString(Locale locale) { return locale.toString(); } - } |