Example #1
0
 /// <summary>
 /// Help selecting the active language translation
 /// </summary>
 /// <param name="htmlHelper"></param>
 /// <param name="en">Default text identifier</param>
 /// <param name="da"></param>
 /// <returns></returns>
 public static string DisplayUserLanguage(this HtmlHelper htmlHelper, string en, string da = "")
 {
     if (Internationalization.LanguageCode == "da")
     {
         return(da);
     }
     return(Internationalization.GetText(en, Internationalization.LanguageCode));
 }
Example #2
0
 private string _(string resourceId)
 {
     return(Internationalization.GetText(resourceId, Internationalization.LanguageCode));
 }