Exemplo n.º 1
0
        public static void AddLocale(string localeKey, string scriptName, Assembly scriptAssembly) {
            lock(_locker) {
                if(_customLocales == null)
                    _customLocales = new Dictionary<string, LocaleScriptInfo>();

                _customLocales[localeKey] = new LocaleScriptInfo(localeKey, scriptName, scriptAssembly);
            }
        }
Exemplo n.º 2
0
        public static void AddLocale(string localeKey, string scriptName, Assembly scriptAssembly)
        {
            lock(_locker) {
                if(_customLocales == null)
                    _customLocales = new Dictionary<string, LocaleScriptInfo>();

                _customLocales[localeKey] = new LocaleScriptInfo(localeKey, scriptName, scriptAssembly);
            }
        }