Esempio n. 1
0
 private void AssignLanguageForGroupBox(GroupBox groupBox)
 {
     if (languageManager.ContainsKey(languageManager.LanguageUsed, groupBox.Name))
     {
         groupBox.Header = languageManager[languageManager.LanguageUsed, groupBox.Name];
         log.Message($"GroupBox '{groupBox.Name}' lang was found, it now displays, '{groupBox.Header}'.");
     }
     else
     {
         log.Message($"No lang entry found for '{groupBox.Name}'.");
     }
 }
Esempio n. 2
0
        private static bool CheckKey(string key)
        {
            if (string.IsNullOrEmpty(key))
            {
                return(true);
            }
            LanguageManager lm = LanguageManager.Instance;

            if (!lm.HasLoadedLanguage)
            {
                if (!lm.IsLoading)
                {
                    lm.LoadLanguage(null, null);
                }
                return(true);
            }
            return(lm.ContainsKey(key));
        }