congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Translation.getLanguage
Code IndexAdd Tabnine to your IDE (free)

How to use
getLanguage
method
in
com.graphhopper.util.Translation

Best Java code snippets using com.graphhopper.util.Translation.getLanguage (Showing top 4 results out of 315)

origin: graphhopper/graphhopper

public void add(Translation tr) {
  Locale locale = tr.getLocale();
  translations.put(locale.toString(), tr);
  if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage()))
    translations.put(tr.getLanguage(), tr);
  // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609
  // Hebrew
  if ("iw".equals(locale.getLanguage()))
    translations.put("he", tr);
  // Indonesia
  if ("in".equals(locale.getLanguage()))
    translations.put("id", tr);
}
origin: com.rgi-corp/graphhopper

public void add(Translation tr) {
  Locale locale = tr.getLocale();
  translations.put(locale.toString(), tr);
  if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage()))
    translations.put(tr.getLanguage(), tr);
  // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609
  // Hebrew
  if ("iw".equals(locale.getLanguage()))
    translations.put("he", tr);
  // Indonesia
  if ("in".equals(locale.getLanguage()))
    translations.put("id", tr);
}
origin: com.graphhopper/graphhopper-core

public void add(Translation tr) {
  Locale locale = tr.getLocale();
  translations.put(locale.toString(), tr);
  if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage()))
    translations.put(tr.getLanguage(), tr);
  // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609
  // Hebrew
  if ("iw".equals(locale.getLanguage()))
    translations.put("he", tr);
  // Indonesia
  if ("in".equals(locale.getLanguage()))
    translations.put("id", tr);
}
origin: com.graphhopper/graphhopper

public void add( Translation tr )
{
  Locale locale = tr.getLocale();
  translations.put(locale.toString(), tr);
  if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage()))
    translations.put(tr.getLanguage(), tr);
  // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609
  // Hebrew
  if ("iw".equals(locale.getLanguage()))
    translations.put("he", tr);
  // Indonesia
  if ("in".equals(locale.getLanguage()))
    translations.put("id", tr);
}
com.graphhopper.utilTranslationgetLanguage

Popular methods of Translation

  • tr
  • asMap
  • getLocale

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BoxLayout (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Plugins for Android Studio
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