PHP 클래스 RainLab\Translate\Classes\EventRegistry

저자: Alexey Bobkov, Samuel Georges
상속: use trait October\Rain\Support\Traits\Singleton
파일 보기 프로젝트 열기: rainlab/translate-plugin 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

findTranslatedContentFile() 공개 메소드

Adds language suffixes to content files.
public findTranslatedContentFile ( $controller, $fileName ) : string | null
리턴 string | null

importMessagesFromTheme() 공개 메소드

Import messages defined by the theme

processFormMLFields() 보호된 메소드

Helper function to replace standard fields with multi lingual equivalents
protected processFormMLFields ( array $fields, Model $model ) : array
$fields array
$model Model
리턴 array

pruneTranslatedContentTemplates() 공개 메소드

Removes localized content files from templates collection
public pruneTranslatedContentTemplates ( October\Rain\Database\Collection $templates ) : October\Rain\Database\Collection
$templates October\Rain\Database\Collection
리턴 October\Rain\Database\Collection

registerFormFieldReplacements() 공개 메소드

public registerFormFieldReplacements ( $widget )

registerModelTranslation() 공개 메소드

Automatically replace form fields for multi lingual equivalents
public registerModelTranslation ( $widget )

registerPageUrlTranslation() 공개 메소드

public registerPageUrlTranslation ( $widget )

setMessageContext() 공개 메소드

Set the page context for translation caching.
public setMessageContext ( $page )