congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
LanguageUtils.getLocalizedCountryForLanguage
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocalizedCountryForLanguage
method
in
org.tinymediamanager.scraper.util.LanguageUtils

Best Java code snippets using org.tinymediamanager.scraper.util.LanguageUtils.getLocalizedCountryForLanguage (Showing top 5 results out of 315)

origin: org.tinymediamanager/api-scraper

/**
 * tries to get local (JVM language) COUNTRY name for given parameters/variants
 * 
 * @param countries
 *          all possible names or iso codes
 * @return localized country name, or first country param 1:1 if we cannot translate
 */
public static String getLocalizedCountry(String... countries) {
 return getLocalizedCountryForLanguage(Locale.getDefault().getLanguage(), countries);
}
origin: org.tinymediamanager/api-scraper

/**
 * tries to get localized COUNTRY name (in given language) for given parameters/variants
 * 
 * @param countries
 *          all possible names or iso codes
 * @return localized country name, or first country param 1:1 if we cannot translate
 */
public static String getLocalizedCountryForLanguage(String language, String... countries) {
 // KEY_TO_LOCALE_MAP is correct here, we want to get the language locale!!!
 return getLocalizedCountryForLanguage(KEY_TO_LOCALE_MAP.get(language.toLowerCase(Locale.ROOT)), countries);
}
origin: org.tinymediamanager.plugins/scraper-imdb

if (ImdbMetadataProvider.providerInfo.getConfig().getValueAsBool("scrapeLanguageNames")) {
 md.addCountry(
   LanguageUtils.getLocalizedCountryForLanguage(options.getLanguage().getLanguage(), countryElement.text(), matcher.group(1)));
origin: org.tinymediamanager.plugins/scraper-moviemeter

md.addCountry(LanguageUtils.getLocalizedCountryForLanguage(options.getLanguage(), country));
origin: org.tinymediamanager.plugins/scraper-tmdb

md.addCountry(LanguageUtils.getLocalizedCountryForLanguage(options.getLanguage(), country.name, country.iso_3166_1));
org.tinymediamanager.scraper.utilLanguageUtilsgetLocalizedCountryForLanguage

Javadoc

tries to get localized COUNTRY name (in given language) for given parameters/variants

Popular methods of LanguageUtils

  • getLocalizedLanguageNameFromLocalizedString
    uses our localized language mapping table, to get the localized language name in given language
  • getISO3BLanguage
    Get the ISO 639-2/B 3 letter code
  • getEnglishLanguageNameFromLocalizedString
    uses our localized language mapping table, to get the english language name
  • getIso2LanguageFromLocalizedString
    uses our localized language mapping table, to get the iso2 code
  • getIso3BLanguageFromLocalizedString
    uses our localized language mapping table, to get the iso3B code
  • getIso3LanguageFromLocalizedString
    uses our localized language mapping table, to get the iso3 code

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • String (java.lang)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now