net.sourceforge.rssowl.util.i18n
Class LanguageDetector

java.lang.Object
  extended bynet.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

Field Summary
private static Hashtable countryMap
          Hashtable with ISO countrycodes
 
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
 

Field Detail

countryMap

private static Hashtable countryMap
Hashtable with ISO countrycodes

Constructor Detail

LanguageDetector

private LanguageDetector()
This utility class constructor is hidden

Method Detail

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

SourceForge.net Logo