/// <summary> /// Localized Translation (i18n) String format /// </summary> /// <param name="format"></param> /// <param name="args"></param> /// <returns></returns> /// <example>@_("Benyttes på {0} registreringer."), usedCount)</example> public string _(string format, params Object[] args) { if (format == null || args == null) { throw new ArgumentNullException((format == null) ? "format" : "args"); } return(string.Format(Internationalization.GetText(format, Internationalization.LanguageCode), args)); }
/// <summary> /// Localized Translation (i18n) /// </summary> /// <param name="en"></param> /// <returns></returns> /// <example>@_("Country")</example> public string _(string en) { return(Internationalization.GetText(en, Internationalization.LanguageCode)); }
private static string GetMessageFromResource(string resourceId) { return(Internationalization.GetText(resourceId, Internationalization.LanguageCode)); }