Example #1
0
    // Use this for initialization
    void Awake()
    {
        string filePath = (Application.dataPath + "/").Replace("/", "\\");
        string fileName = "Translation.xml";

        Debug.Log(filePath + fileName);
        translation = new SimpleTranslation(filePath, fileName, "english");
        //translation = new SimpleTranslation(filePath, fileName);

        Debug.Log(translation.GetLanguages()[0]);

        translation.SetLanguage(language.ToString());
    }
Example #2
0
 public void SetLanguage(ENUMS.LANGUAGES language)
 {
     this.language = language;
     translation.SetLanguage(this.language.ToString());
 }