프로퍼티 | 타입 | 설명 | |
---|---|---|---|
BasePath | string | ||
DefaultWorkingLanguage | string | ||
DefaultWorkingLanguageLCID | int | ||
HideAllLocalizedText | bool | ||
Localizations | Localization>.Dictionary |
메소드 | 설명 | |
---|---|---|
GetBestLanguage ( |
Spins through the language preferences in the supplied HttpRequest, returning the first complete or partial match on a loaded language.
|
|
GetMessage ( string msgID, string languageCode = null, int lcid = null ) : |
Gets a translated message version of the supplied text message.
|
|
LCID ( string cultureName ) : int |
|
메소드 | 설명 | |
---|---|---|
GetText ( string msgID, string languageCode = null, int lcid = null, bool plural = false ) : string |
Gets a translated version of the supplied text message.
|
|
I18NComplete ( ) : System.Collections.Generic |
Static constructor of I18NComplete
|
|
OnGetting_ ( string defaultResult, |
Throws the Getting_ global event @Alias Translates the given text applying string.Format(text, arguments) to the current culture language. The text and argument values will be HTML Encoded when used in ASP.NET MVC
|
|
OnGetting__ ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting__ global event @Alias Translates the given html applying string.Format(html, arguments.Select(a => HttpUtility.HtmlEncode(a))) to the current culture language. The html will be kept as it is, while arguments will be automatically HTML Encoded
|
|
OnGetting___ ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting___ global event @Alias Translates the given html applying string.Format(html, arguments.Select(a => escapeArgumentFunc(a))) to the current culture language. For each argument the escape func will be called before applying the format
|
|
OnGetting___ ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting___ global event @Alias Translates the given html applying string.Format(html, htmlArguments) to the current culture language. Warning! Neither the html nor the htmlArguments will be encoded whatsoever
|
|
OnGetting___q ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting___q global event Quotes the text as the xgettext cannot correctly extract values from attributes Translates the given html applying '"'+HttpUtility.HtmlAttributeEncode(string.Format(html, htmlArguments))+'"' to the current culture language. Warning! Neither the html nor the htmlArguments will be encoded whatsoever Usage: <div title=@___q("< class='tip'>There are {0} {1} in cart.</div>", 3, "<b>Items</b>")>... -- Note the missing quotes!
|
|
OnGetting___s ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting___s global event @Alias Translates the given singular or plural text/html applying string.Format(count == 1 ? singular : plural, arguments.Select(a => escapeArgumentFunc(a))) to the current culture language. For each argument the escape func will be called before applying the format
|
|
OnGetting___s ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting___s global event @Alias Translates the given singular or plural HTML applying string.Format(html, arguments) to the current culture language. Warning! Neither the html nor the htmlArguments will be encoded whatsoever
|
|
OnGetting__q ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting__q global event Quotes the text as the xgettext cannot correctly extract values from attributes Translates the given html applying '"'+HttpUtility.HtmlAttributeEncode(string.Format(html, arguments.Select(a => HttpUtility.HtmlEncode(a))))+'"' to the current culture language. The html will be kept as it is, while arguments will be automatically HTML Encoded Usage: <input type="submit" value=@__q("Save") /> -- Note the missing quotes!
|
|
OnGetting__s ( System.Web.Mvc.MvcHtmlString defaultResult, |
Throws the Getting__s global event @Alias Translates the given singular or plural HTML applying string.Format(html, arguments.Select(a => HttpUtility.HtmlEncode(a))) to the current culture language. The singular/plural HTML will be kept as it is, while arguments will be automatically HTML Encoded
|
|
OnGetting_s ( string defaultResult, |
Throws the Getting_s global event @Alias Translates the given singular or plural text applying string.Format(text, arguments) to the current culture language. The singular/plural text and argument values will be HTML Encoded when used in ASP.NET MVC
|
public static GetBestLanguage ( |
||
request | ||
fallback | string | |
리턴 | string |
public static GetMessage ( string msgID, string languageCode = null, int lcid = null ) : |
||
msgID | string | Text to be translated |
languageCode | string | Language to translate into |
lcid | int | Specify the Culture LCID for faster access if you know it |
리턴 |