Table of Contents

Class InvariantFriendlyNameToLocalizationUpgrade

Namespace
TimeCockpit.Data.Localization.Default
Assembly
TimeCockpit.Data.dll

Helper class for upgrading the inariant friendly name from the existing data model to a given culture in the localizer.

public class InvariantFriendlyNameToLocalizationUpgrade
Inheritance
Object
InvariantFriendlyNameToLocalizationUpgrade
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

InvariantFriendlyNameToLocalizationUpgrade()

public InvariantFriendlyNameToLocalizationUpgrade()

Methods

RetrieveLocalization(ModelAction, ActionLocalizer, String)

Retrieves the InvariantFriendlyNames and other localized strings from the action and stores them in the target localier using the targetCulture as a key.

public static void RetrieveLocalization(ModelAction action, ActionLocalizer targetLocalizer, string targetCulture)

Parameters

action ModelAction

The action to localize.

targetLocalizer ActionLocalizer

The target action localizer.

targetCulture String

The target culture to store as.

RetrieveLocalization(EntityView, EntityViewLocalizer, String)

Retrieves the InvariantFriendlyNames and other localized strings from the entity view and stores them in the target localizer using the targetCulture.

public static void RetrieveLocalization(EntityView entityView, EntityViewLocalizer targetLocalizer, string targetCulture)

Parameters

entityView EntityView

The entity view to retrieve localized strings from.

targetLocalizer EntityViewLocalizer

The localizer to store the string within.

targetCulture String

The target culture used as an index to the localizer.

RetrieveLocalization(Model, DefaultLocalizer, String)

Retrieves the invariant friendly names from the model and stores them in the target localizer using the given target culture.

public static void RetrieveLocalization(Model model, DefaultLocalizer targetLocalizer, string targetCulture)

Parameters

model Model

The model to retrieve the invariant friendly names from.

targetLocalizer DefaultLocalizer

The target localizer to store invariant friendly names to.

targetCulture String

The target culture to store invariant frienldy names under.

RetrieveLocalization(ModelEntityBase, EntityLocalizer, String)

Retrieves the InvariantFriendlyNames from the entity and stores them in the target localizer using the given targetCulture.

public static void RetrieveLocalization(ModelEntityBase modelEntity, EntityLocalizer targetLocalizer, string targetCulture)

Parameters

modelEntity ModelEntityBase

The entity holding the elements with localized properties.

targetLocalizer EntityLocalizer

The localizer the localized strings are stored to.

targetCulture String

The target culture wherein which the strings are saved.

RetrieveLocalization(ModelProperty, PropertyLocalizer, String)

Retrieves the InvariantFriendlyNames from the property and stores them in the target localizer using the given targetCulture.

public static void RetrieveLocalization(ModelProperty property, PropertyLocalizer targetLocalizer, string targetCulture)

Parameters

property ModelProperty

The property holding the elements with localized properties.

targetLocalizer PropertyLocalizer

The localizer the localized strings are stored to.

targetCulture String

The target culture wherein which the strings are saved.

RetrieveLocalization(NamedSetDefinition, NamedSetDefinitionLocalizer, String)

Retrieves the InvariantFriendlyNames and other localized strings from the named set definition.

public static void RetrieveLocalization(NamedSetDefinition namedSetDefinition, NamedSetDefinitionLocalizer targetLocalizer, string targetCulture)

Parameters

namedSetDefinition NamedSetDefinition

The named set definition to retrieve friendly names from.

targetLocalizer NamedSetDefinitionLocalizer

the target localizer to store strings within.

targetCulture String

The target culture to use.

RetrieveLocalization(Relation, RelationLocalizer, String)

Retrieves the InvariantFriendlyNames from the relation and stores them in the target localizer using the given targetCulture.

public static void RetrieveLocalization(Relation relation, RelationLocalizer targetLocalizer, string targetCulture)

Parameters

relation Relation

The relation holding the elements with localized properties.

targetLocalizer RelationLocalizer

The localizer the localized strings are stored to.

targetCulture String

The target culture wherein which the strings are saved.

RetrieveLocalization(ValidationRule, ValidationRuleLocalizer, String)

Retrieves the InvariantFriendlyNames and Messages from the validationRule and stores them in the target localizer using the given targetCulture.

public static void RetrieveLocalization(ValidationRule validationRule, ValidationRuleLocalizer targetLocalizer, string targetCulture)

Parameters

validationRule ValidationRule

The validation rule holding the elements with localized properties.

targetLocalizer ValidationRuleLocalizer

The localizer the localized strings are stored to.

targetCulture String

The target culture wherein which the strings are saved.

RetrieveLocalization(Permission, PermissionLocalizer, String)

Retrieves the InvariantFriendlyNames from the permission and stores them in the target localizer using the given targetCulture.

public static void RetrieveLocalization(Permission permission, PermissionLocalizer targetLocalizer, string targetCulture)

Parameters

permission Permission

The permission holding the elements with localized properties.

targetLocalizer PermissionLocalizer

The localizer the localized strings are stored to.

targetCulture String

The target culture wherein which the strings are saved.

RetrieveLocalizationFromModel(Model, String)

Copies the invariant friendly name from the model to the localizer.

public static DefaultLocalizer RetrieveLocalizationFromModel(Model model, string targetCulture)

Parameters

model Model

The model to retrieve InvariantFriendlyNames from.

targetCulture String

The target culture to save to.

Returns

DefaultLocalizer

Returns a new localizer containing the target localizations.