C# Class Serenity.Localization.NestedLocalTextRegistration

Contains helper methods for registration of local texts in nested static classes. Nested static contains LocalText objects with actual translations as keys. This class locates them (with NestedLocalTextsAttribute at outermost class), determines keys by path from outermost to nested class name, replaces existing LocalText instance with a InitializedLocalText instance containing this generated key and initial translation, and registers this translation in ILocalTextRegistry provider.
Afficher le fichier Open project: volkanceylan/Serenity

Méthodes publiques

Méthode Description
AddNestedTexts ( this registry, IEnumerable assemblies = null ) : void

Adds translations from static nested local text classes marked with NestedLocalTextAttribute.

Initialize ( IEnumerable assemblies, ILocalTextRegistry registry = null ) : void

Private Methods

Méthode Description
Initialize ( ILocalTextRegistry registry, Type type, string languageID, string prefix ) : void

Method Details

AddNestedTexts() public static méthode

Adds translations from static nested local text classes marked with NestedLocalTextAttribute.
public static AddNestedTexts ( this registry, IEnumerable assemblies = null ) : void
registry this
assemblies IEnumerable
Résultat void

Initialize() public static méthode

public static Initialize ( IEnumerable assemblies, ILocalTextRegistry registry = null ) : void
assemblies IEnumerable
registry ILocalTextRegistry
Résultat void