private void SetTranslatedText(object ui, string text, TranslationInfo info) { info?.SetTranslatedText(text); if (_isInTranslatedMode) { SetText(ui, text, true, info); } }
private void SetTranslatedText(object ui, string translatedText, TranslationKeys key, TranslationInfo info) { var untemplatedTranslatedText = key.Untemplate(translatedText); info?.SetTranslatedText(untemplatedTranslatedText); if (_isInTranslatedMode) { SetText(ui, untemplatedTranslatedText, true, info); } }