open20 / amos-translation
AMOS Translation
Requires
- php: >=5.5.0
- lajax/yii2-translate-manager: 1.*
- open20/amos-core: >=1.9.50
- open20/amos-dashboard: >=1.8.15
- open20/amos-workflow: *
- dev-master
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.29
- dev-releases/1.5.2
- dev-releases/1.5.1
- dev-releases/1.5.0
- dev-releases/1.4.0
- dev-releases/1.3.0
- dev-releases/1.2.0
- dev-releases/1.1.0
- dev-releases/1.0.35
- dev-releases/1.0.34
- dev-releases/1.0.33
- dev-releases/1.0.32
This package is auto-updated.
Last update: 2024-10-24 19:22:04 UTC
README
Translation management.
Button clean translatemanager cache
Insert in config/component-amos
'view' => [ 'class' => 'open20\amos\core\components\AmosView', 'theme' => [ 'pathMap' => [ '@vendor/lajax/yii2-translate-manager/views/language/' => '@vendor/open20/amos-translation/src/views/translatemanager/' ], ], ],
Configurable properties
*defaultTranslationLanguage - string
Default language to translate if the record translate is not present
'translation' => [ 'class' => 'open20\amos\translation\AmosTranslation', 'defaultTranslationLanguage' => 'en-GB', ],
*secureCookie - boolean
Added configuration to enable to send cookie without security
*enableCookieFor2LevelDomain - boolean
Added configuration to set cookie for the second level domain
*byPassPermissionInlineTranslation - boolean If the value is true it disable all the permission on the record translation
*enableLabelTranslationField - boolean, default = false If set to true it enables the display of the translatable fields in the forms
*templateTranslationField - string, default = '{translation}' Template of translation field in the form, near the label
*templateTranslationAltField - string, default = '{altTranslation}' Template of translation alt field in the form, near the $templateTranslationField
*translationLabelField - string, default = 'strtoupper(substr(\Yii::$app->language, 0, 2));' This string will be parsed by the "eval()" function instead of $tempalteTransaltionField, by default {translation}
*translationLabelAltField - string, default = '\Yii::t("amostranslation", "Testo traducibile, la visualizzazione attuale รจ in");' This string will be parsed by the "eval()" function instead of $templateTranslationAltField, by default {altTranslation}
*labelTranslationField - string, default = ' ( - {translation})' This string is the html code that will be used in the labels to represent a translatable field