Esempio n. 1
0
 public string getLangString(int stringId, int languageIndex)
 {
     this.temp_strArr = LocaleManager.getInstance().getSupportedLocales();
     this.temp_str    = this.temp_strArr[languageIndex];
     this.temp_str2   = LocaleManager.getString(stringId, this.temp_str);
     return(this.temp_str2);
 }
Esempio n. 2
0
 public void setCurrentLanguage(int index)
 {
     if (index == this.getCurrentLanguage())
     {
         return;
     }
     this.temp_strArr = LocaleManager.getInstance().getSupportedLocales();
     this.temp_str    = this.temp_strArr[index];
     this.setCurrentLocale(this.temp_str);
 }
Esempio n. 3
0
    private void loadStrings()
    {
        LocaleManager instance = LocaleManager.getInstance();
        int           num      = this.m_stringsFilenames.size();

        for (int index = 0; index < num; ++index)
        {
            this.temp_str    = (string)this.m_stringsFilenames.elementAt(index);
            this.temp_strArr = instance.loadStrings(this.temp_str);
            instance.setStringPool(1 + index, this.temp_strArr);
        }
    }
Esempio n. 4
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. 5
0
 public static void PromptForUpdate()
 {
     JavaLibGame.GSC.Enabled = false;
     if (XNAConnect.guideVisible || Guide.IsVisible)
     {
         return;
     }
     XNAConnect.guideVisible = true;
     Guide.BeginShowMessageBox(LocaleManager.getInstance().getString(1881), LocaleManager.getInstance().getString(1882), (IEnumerable <string>) new List <string>()
     {
         LocaleManager.getInstance().getString(32),
         LocaleManager.getInstance().getString(31)
     }, 1, MessageBoxIcon.Alert, new AsyncCallback(XNAConnect.MessageBoxFinished), (object)null);
 }
Esempio n. 6
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. 7
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();
    }
Esempio n. 8
0
 public void trackOptionLanguage()
 {
     EASpywareManager.getInstance().logEvent(225, LocaleManager.getInstance().getLocale());
 }
Esempio n. 9
0
 public int getLanguageCount()
 {
     return(LocaleManager.getInstance().getSupportedLocales().Length);
 }
Esempio n. 10
0
 public string getString(int stringid)
 {
     return(stringid < -2 ? this.m_dynamicStrings[stringid - -12] : LocaleManager.getInstance().getString(stringid));
 }
Esempio n. 11
0
 public void appendCurrencyToBuffer(double number)
 {
     this.temp_str = LocaleManager.getInstance().formatCurrency(number);
     this.m_tempStringBuffer.append(this.temp_str);
 }
Esempio n. 12
0
 public string getCurrentLocale()
 {
     return(LocaleManager.getInstance().getLocale());
 }