Esempio n. 1
0
 static StackObject *AssignFromStack_Locale_2(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
     EB.Language @Locale = (EB.Language) typeof(EB.Language).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
     ((EB.Sparx.Config)o).Locale = @Locale;
     return(ptr_of_this_method);
 }
Esempio n. 2
0
 private void OnClickEN(GameObject go)
 {
     if (global::UserData.Locale == EB.Language.English)
     {
         return;
     }
     m_Language = EB.Language.English;
     SetMessageDialog();
 }
Esempio n. 3
0
 private void OnClickCN(GameObject go)
 {
     if (global::UserData.Locale == EB.Language.ChineseSimplified)
     {
         return;
     }
     m_Language = EB.Language.ChineseSimplified;
     SetMessageDialog();
 }
Esempio n. 4
0
    public static Dictionary <string, string> LoadAllFromResources(EB.Language locale, string[] locFiles)
    {
        var l    = EB.Localizer.GetSparxLanguageCode(locale);
        var dict = new Dictionary <string, string>();
        var file = new EB.LocFile(dict);

        foreach (string name in locFiles)
        {
            file.Read(File.ReadAllText(Path.Combine(Path.GetDirectoryName(LocSourceFolder), l + "/" + name + ".txt")));
        }

        return(dict);
    }
Esempio n. 5
0
        static StackObject *set_Locale_10(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Language @value = (EB.Language) typeof(EB.Language).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            global::UserData.Locale = value;

            return(__ret);
        }
Esempio n. 6
0
        static StackObject *LoadCurrentLanguageBase_10(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Language @locale = (EB.Language) typeof(EB.Language).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            EB.Localizer.LoadCurrentLanguageBase(@locale);

            return(__ret);
        }
Esempio n. 7
0
        static StackObject *GetNameSparxLanguageCode_8(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Language @locale = (EB.Language) typeof(EB.Language).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = EB.Localizer.GetNameSparxLanguageCode(@locale);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Esempio n. 8
0
        static StackObject *get_Item_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            EB.Language @key = (EB.Language) typeof(EB.Language).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Collections.Generic.Dictionary <EB.Language, System.String> instance_of_this_method = (System.Collections.Generic.Dictionary <EB.Language, System.String>) typeof(System.Collections.Generic.Dictionary <EB.Language, System.String>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method[key];

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }