Codota Logo
LanguageUtils.getISO3BLanguage
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.tinymediamanager/api-scraper

/**
 * Get the ISO 639-2/B 3 letter code
 * 
 * @param language
 *          the 2 letter ISO code to get the 3 letter code for
 * @return the 3 letter code
 * @since 2.0
 */
public static String getISO3BLanguage(String language) {
 return getISO3BLanguage(Locale.forLanguageTag(language));
}
origin: org.tinymediamanager/api-scraper

/**
 * uses our localized language mapping table, to get the iso3B code
 *
 * @param text
 *          the language (as string) to get the iso3B code for
 * @return 3 chars or empty string
 * @since 2.0
 */
public static String getIso3BLanguageFromLocalizedString(String text) {
 Locale l = KEY_TO_LOCALE_MAP.get(text.toLowerCase(Locale.ROOT));
 if (l != null) {
  return getISO3BLanguage(l);
 }
 return "";
}
origin: org.tinymediamanager.plugins/scraper-opensubtitles

/**
 * opensubtitles need sometimes not ISO 639.2B - this method maps the exceptions
 *
 * @param locale
 *          the language top be converted
 * @return the string accepted by opensubtitles
 */
private String getLanguageCode(Locale locale) {
 // default ISO 639.2B
 String languageCode = LanguageUtils.getISO3BLanguage(locale.getLanguage());
 // and now the exceptions
 // greek: gre -> ell
 if ("gre".equals(languageCode)) {
  languageCode = "ell";
 }
 return languageCode;
}
origin: org.tinymediamanager/api-scraper

langArray.put(LanguageUtils.getISO3BLanguage(base), base);
org.tinymediamanager.scraper.utilLanguageUtilsgetISO3BLanguage

Javadoc

Get the ISO 639-2/B 3 letter code

Popular methods of LanguageUtils

  • getLocalizedCountryForLanguage
    tries to get localized COUNTRY name (in given language) for given parameters/variants
  • getLocalizedLanguageNameFromLocalizedString
    uses our localized language mapping table, to get the localized language name in given language
  • 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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • Kernel (java.awt.image)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now