Package com.graphhopper.util
Class TranslationMap
java.lang.Object
com.graphhopper.util.TranslationMap
A class which manages the translations in-memory. See here for more information:
./docs/core/translations.md
- Author:
- Peter Karich
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Translation tr) static int
countOccurence
(String phrase, String splitter) doImport()
This loads the translation files from classpath.This loads the translation files from the specified folder.Returns the Translation object for the specified locale and returns null if not found.getWithFallBack
(Locale locale) Returns the Translation object for the specified locale and falls back to English if the locale was not found.toString()
-
Constructor Details
-
TranslationMap
public TranslationMap()
-
-
Method Details
-
countOccurence
-
doImport
This loads the translation files from the specified folder. -
doImport
This loads the translation files from classpath. -
add
-
getWithFallBack
Returns the Translation object for the specified locale and falls back to English if the locale was not found. -
get
Returns the Translation object for the specified locale and returns null if not found. -
toString
-