arter/amos-translation

There is no license information available for the latest version (1.0.35) of this package.

AMOS Translation

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

๐Ÿ‘ art-er

Package info

repo.aster.it/elitedivision/amos-translation

Homepage

Issues

Forum

Wiki

Type:component

pkg:composer/arter/amos-translation

Statistics

Installs: 601

Dependents: 0

Suggesters: 0

1.0.35 2022-05-04 16:00 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License a26c8a6b1f2ba91db8c7d83e31e4943c6aaa9508

translationyii2amos

This package is auto-updated.

Last update: 2024-06-16 20:29:26 UTC


README

Translation management.

Button clean translatemanager cache

Insert in config/component-amos

 'view' => [
 'class' => 'arter\amos\core\components\AmosView',
 'theme' => [
 'pathMap' => [
 '@vendor/lajax/yii2-translate-manager/views/language/' => '@vendor/arter/amos-translation/src/views/translatemanager/'
 ],
 ],
 ],

Configurable properties

*defaultTranslationLanguage - string
Default language to translate if the record translate is not present

'translation' => [
 'class' => 'arter\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