Class InvariantFriendlyNameToLocalizationUpgrade
- 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
-
ObjectInvariantFriendlyNameToLocalizationUpgrade
- 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
actionModelActionThe action to localize.
targetLocalizerActionLocalizerThe target action localizer.
targetCultureStringThe 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
entityViewEntityViewThe entity view to retrieve localized strings from.
targetLocalizerEntityViewLocalizerThe localizer to store the string within.
targetCultureStringThe 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
modelModelThe model to retrieve the invariant friendly names from.
targetLocalizerDefaultLocalizerThe target localizer to store invariant friendly names to.
targetCultureStringThe 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
modelEntityModelEntityBaseThe entity holding the elements with localized properties.
targetLocalizerEntityLocalizerThe localizer the localized strings are stored to.
targetCultureStringThe 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
propertyModelPropertyThe property holding the elements with localized properties.
targetLocalizerPropertyLocalizerThe localizer the localized strings are stored to.
targetCultureStringThe 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
namedSetDefinitionNamedSetDefinitionThe named set definition to retrieve friendly names from.
targetLocalizerNamedSetDefinitionLocalizerthe target localizer to store strings within.
targetCultureStringThe 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
relationRelationThe relation holding the elements with localized properties.
targetLocalizerRelationLocalizerThe localizer the localized strings are stored to.
targetCultureStringThe 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
validationRuleValidationRuleThe validation rule holding the elements with localized properties.
targetLocalizerValidationRuleLocalizerThe localizer the localized strings are stored to.
targetCultureStringThe 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
permissionPermissionThe permission holding the elements with localized properties.
targetLocalizerPermissionLocalizerThe localizer the localized strings are stored to.
targetCultureStringThe 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
modelModelThe model to retrieve InvariantFriendlyNames from.
targetCultureStringThe target culture to save to.
Returns
- DefaultLocalizer
Returns a new localizer containing the target localizations.