예제 #1
0
 /// <summary>
 /// Init the translated text.
 /// </summary>
 /// <param name="sc">A key / common pair.</param>
 public void InitTranslatedText(StringCommon sc)
 {
     InitTranslatedText(sc.key, sc.common);
 }
예제 #2
0
 /// <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));
 }