/// <summary> /// Init the translated text. /// </summary> /// <param name="sc">A key / common pair.</param> public void InitTranslatedText(StringCommon sc) { InitTranslatedText(sc.key, sc.common); }
/// <summary> /// Finds the text of the current language by using a specific key. /// Exemple: For the key "SCREEN2_TITLE" and the current lang "fr" it will return "REGLES DU JEU." /// For the key "SCREEN2_TITLE" and the current lang "en" it will return "GAME RULES." /// </summary> /// <param name="sc">A key / common pair.</param> /// <returns>The text translated to a specific language.</returns> public string GetText(StringCommon sc) { return(GetText(sc.key, sc.common)); }