net.sourceforge.rssowl.util.i18n
Class LanguageDetector
java.lang.Object
net.sourceforge.rssowl.util.i18n.LanguageDetector
- public class LanguageDetector
- extends Object
Class to parse a language from a Locale that is supported by RSSOwl. This is
usefull if the locale of a user holds a dialect of a language that is
supported.
- Version:
- 1.1.3
- Author:
- Benjamin Pasero
Constructor Summary |
private |
LanguageDetector()
This utility class constructor is hidden |
Method Summary |
static String |
parseLanguage(Locale locale)
Try parse a language from the given locale that is supported in RSSOwl.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
countryMap
private static Hashtable countryMap
- Hashtable with ISO countrycodes
LanguageDetector
private LanguageDetector()
- This utility class constructor is hidden
parseLanguage
public static String parseLanguage(Locale locale)
- Try parse a language from the given locale that is supported in RSSOwl.
Otherwise return default language english.
- Parameters:
locale
- Selected locale
- Returns:
- String The language to use
RSSOwl - RSS / RDF / Atom Newsreader