Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
processFormMLFields ( array $fields, Model $model ) : array | Helper function to replace standard fields with multi lingual equivalents |
public findTranslatedContentFile ( $controller, $fileName ) : string | null | ||
return | string | null |
public importMessagesFromTheme ( ) |
protected processFormMLFields ( array $fields, Model $model ) : array | ||
$fields | array | |
$model | Model | |
return | array |
public pruneTranslatedContentTemplates ( October\Rain\Database\Collection $templates ) : October\Rain\Database\Collection | ||
$templates | October\Rain\Database\Collection | |
return | October\Rain\Database\Collection |
public registerModelTranslation ( $widget ) |
public setMessageContext ( $page ) |