eu.monnetproject.l10n.LocalizationLexicon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kap.core Show documentation
Show all versions of kap.core Show documentation
com.github.monnetproject.kap.core OSGi Bundle from the Monnet Project's kap.project project.
The newest version!
package eu.monnetproject.l10n;
import java.net.URI;
import java.util.List;
import eu.monnetproject.lang.Language;
/**
* A lexicon that is adapted for localization of a given application
*/
public interface LocalizationLexicon {
/** Get the default form for a concept
* @param sense The URI identifying the concept
* @param language The target language
* @return A priority-ordered list of string
*/
List form(URI sense, Language language);
/**
* Get a (longer) description for a concept
* @param sense The URI identifying the concept
* @param language The target language
* @return A priority-ordered list of string
*/
List description(URI sense, Language language);
/**
* Resolve a particular keyed localization string
* @param key The representation of the key
* @param language The target language
* @return The best result
*/
String get(String key, Language language);
/**
* Resolve a particular keyed localization string with parameters
* @param key The representation of the key
* @param arguments The list of arguments
* @param language The target language
* @return The best result
*/
String get(String key, List © 2015 - 2025 Weber Informatics LLC | Privacy Policy