diff options
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(); } - } |