LocalTextLanguageAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Tells the language that the texts in the code of an assembly are written in, e.g. its display names, nested local texts and enum descriptions. Those texts are registered for the invariant language when it is the base language of the application (see BaseLanguage), and for this language otherwise. The texts of an assembly without this attribute are taken to be in the base language.
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class LocalTextLanguageAttribute : Attribute
| parameter | description |
|---|---|
| languageID | The language ID, e.g. "en". |
Public Members
| name | description |
|---|---|
| LocalTextLanguageAttribute(…) | Tells the language that the texts in the code of an assembly are written in, e.g. its display names, nested local texts and enum descriptions. Those texts are registered for the invariant language when it is the base language of the application (see BaseLanguage), and for this language otherwise. The texts of an assembly without this attribute are taken to be in the base language. |
| LanguageID { get; } | The language ID, e.g. "en". |
Examples
[assembly: LocalTextLanguage("en")]
See Also
- Source: LocalTextLanguageAttribute.cs