Метод | Описание | |
---|---|---|
findTranslatedContentFile ( $controller, $fileName ) : string | null | Adds language suffixes to content files. | |
importMessagesFromTheme ( ) | Import messages defined by the theme | |
pruneTranslatedContentTemplates ( October\Rain\Database\Collection $templates ) : October\Rain\Database\Collection | Removes localized content files from templates collection | |
registerFormFieldReplacements ( $widget ) | ||
registerModelTranslation ( $widget ) | Automatically replace form fields for multi lingual equivalents | |
registerPageUrlTranslation ( $widget ) | ||
setMessageContext ( $page ) | Set the page context for translation caching. |
Метод | Описание | |
---|---|---|
processFormMLFields ( array $fields, Model $model ) : array | Helper function to replace standard fields with multi lingual equivalents |
public findTranslatedContentFile ( $controller, $fileName ) : string | null | ||
Результат | string | null |
public importMessagesFromTheme ( ) |
protected processFormMLFields ( array $fields, Model $model ) : array | ||
$fields | array | |
$model | Model | |
Результат | array |
public pruneTranslatedContentTemplates ( October\Rain\Database\Collection $templates ) : October\Rain\Database\Collection | ||
$templates | October\Rain\Database\Collection | |
Результат | October\Rain\Database\Collection |
public registerModelTranslation ( $widget ) |
public setMessageContext ( $page ) |