All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harium.etyl.i18n.DefaultDictionary Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package com.harium.etyl.i18n;

import java.util.HashMap;
import java.util.Map;

public class DefaultDictionary {

    private static Dictionary dictionary;

    public static final String MESSAGE_FULLSCREEN = "fullscreen";

    public static Dictionary getInstance() {
        if (dictionary == null) {
            dictionary = new Dictionary();
            dictionary.setDefaultLanguage(Language.ENGLISH_US);

            populateVocabulary(dictionary);
        }
        return dictionary;
    }

    private static void populateVocabulary(Dictionary dictionary) {
        Map usVocabulary = new HashMap();
        usVocabulary.put(MESSAGE_FULLSCREEN, "Press ESC to exit fullscreen.");

        Map brVocabulary = new HashMap();
        brVocabulary.put(MESSAGE_FULLSCREEN, "Pressione ESC para sair da tela cheia.");

        dictionary.sentences.put(Language.ENGLISH_US, usVocabulary);
        dictionary.sentences.put(Language.PORTUGUESE_BRAZIL, brVocabulary);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy