protected void Translate()
 {
     var translator = new Translator(Settings.Translation);
     translator.TranslateControl(this);
     _translated = true;
 }
Esempio n. 2
0
 public static Translation GetTranslation(string translationName)
 {
     if (string.IsNullOrEmpty(translationName))
     {
         Translator._translation = null;
     }
     else if (!translationName.Equals(Translator._name))
     {
         Translator._translation = TranslationSerializer.Deserialize(Path.Combine(Translator.GetTranslationDir(), translationName + ".xml"));
     }
     Translator._name = translationName;
     return(Translator._translation);
 }