Свойство | Type | Description | |
---|---|---|---|
_db | ILocalizationDbContext |
Méthode | Description | |
---|---|---|
CreateLanguage ( |
Create translation for a new language
|
|
Delete ( |
Delete a prompt.
|
|
GetAvailableLanguages ( ) : IEnumerable |
Get all languages that got partial or full translations.
|
|
GetPrompt ( |
Get a specific prompt
|
|
GetPrompts ( |
Get all prompts
|
|
Import ( IEnumerable |
Import prompts into the repository. Batch for inserting/updating several rows. This method is not database engine independent (it uses SqlServers MERGE INTO). You must override it to add support for other databases than SqlServer (for instance using REPLACE INTO in MySQL) |
|
Save ( |
Create or update a prompt
|
|
SqlLocalizedTypesRepository ( ILocalizationDbContext db ) : System |
Initializes a new instance of the SqlLocalizedTypesRepository class.
|
|
Update ( |
Update translation
|
Méthode | Description | |
---|---|---|
Create ( |
||
Exists ( |
||
MapEntity ( IDataRecord record ) : TypePrompt | ||
Save ( |
public CreateLanguage ( |
||
culture | Language to create | |
templateCulture | Language to use as a template | |
Résultat | void |
public Delete ( |
||
culture | Culture to delete prompt in | |
key | TypePromptKey | Prompt key |
Résultat | void |
public GetAvailableLanguages ( ) : IEnumerable |
||
Résultat | IEnumerable |
public GetPrompt ( |
||
culture | Culture to get prompt for | |
key | TypePromptKey | Key which is unique in the current language |
Résultat | TypePrompt |
public GetPrompts ( |
||
cultureInfo | Culture to get prompts for | |
defaultCulture | Culture used as template to be able to include all non-translated prompts | |
filter | Griffin.MvcContrib.Localization.SearchFilter | The filter. |
Résultat | IEnumerable |
public Import ( IEnumerable |
||
prompts | IEnumerable |
Prompts to import |
Résultat | void |
public Save ( |
||
culture | Culture that the prompt is for | |
fullTypeName | string | Type.FullName for the type being localized |
name | string | Property name and any additonal names (such as metadata name, use underscore as delimiter) |
translatedText | string | Translated text string |
Résultat | void |
public SqlLocalizedTypesRepository ( ILocalizationDbContext db ) : System | ||
db | ILocalizationDbContext | Database connection. |
Résultat | System |
public Update ( |
||
culture | Culture that the prompt is for | |
key | TypePromptKey | Unique key, in the specified language only, for the prompt to get) |
translatedText | string | Translated text string |
Résultat | void |