Esempio n. 1
0
    public void setCurrentLocale(string locale)
    {
        LocaleManager instance = LocaleManager.getInstance();

        this.temp_strArr = instance.getSupportedLocales();
        if (this.getCurrentLanguage() >= 0)
        {
            this.unloadStrings();
        }
        instance.setLocale(locale);
        this.loadStrings();
        this.clearWrapChunks();
    }
Esempio n. 2
0
    public int getCurrentLanguage()
    {
        LocaleManager instance = LocaleManager.getInstance();

        this.temp_strArr = instance.getSupportedLocales();
        this.temp_str    = instance.getLocale();
        for (int index = 0; index < this.temp_strArr.Length; ++index)
        {
            if (this.temp_str.Equals(this.temp_strArr[index]))
            {
                return(index);
            }
        }
        return(-1);
    }
Esempio n. 3
0
    public void init()
    {
        LocaleManager instance = LocaleManager.getInstance();

        instance.setStringIdBits(11);
        this.temp_strArr = instance.getSupportedLocales();
        this.temp_str2   = "strings_hdr.bin";
        for (int index = 0; index < this.temp_strArr.Length; ++index)
        {
            this.temp_str = this.temp_strArr[index];
            string[] pool = instance.loadStrings(this.temp_str2, this.temp_str);
            instance.setStringPool(0, pool, this.temp_strArr[index]);
        }
        this.addStringsFile("strings_generic.bin");
        this.loadStrings();
        this.initWraps();
        this.initStringBuffers();
        this.initFonts();
    }