Beispiel #1
0
        private string CreateLocaleFolder(ELocale locale, string path)
        {
            var name     = localNameDict[locale] + folderSuffix;
            var fullName = Path.Combine(path, name);

            if (Directory.Exists(fullName))
            {
                Directory.Delete(fullName, true);
            }

            Directory.CreateDirectory(fullName);

            return(fullName);
        }
Beispiel #2
0
        public string GetValue(ELocale locale)
        {
            switch (locale)
            {
            case ELocale.en:
                return(EN);

            case ELocale.ja:
                return(JA);

            case ELocale.zh_Hans:
                return(ZH_Hans);

            case ELocale.zh_Hant:
                return(ZH_Hant);

            case ELocale.zh_HK:
                return(ZH_HK);

            default:
                return(EN);
            }
        }
 internal static string GetAchievementDisplayAttribute(string pchName, EAchievementDisplayAttribute attr, ELocale locale)
 {
     return(Android.GetJavaUserStats().CallStatic <string>("getAchievementDisplayAttribute", pchName, (int)attr, (int)locale));
 }