magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Translation Custom Variables #78

Open raymond62 opened 6 years ago

raymond62 commented 6 years ago

CustomVar is in my opinion not as efficient as it could be.

Preconditions

Latest Magento 2.3., PHP 7.0, MySql 5.6

Steps to reproduce

Go to "System -> Custom Variables" and create new

Expected result

"Variable Code" should only be editable in "All Store View"
"Variable Name" should be editable for each "Store View" and also usable as translation.
e.g.:
Variable Code: company_owner
Variable Name: Owner (en store), Eigentumer (de Store), Eigenaar (nl Store)
Variable Value: My Name
{{CustomVarName code="company_owner"}}: {{CustomVar code="company_owner"}}

Actual result

"Variable Code" is editable in all Store views and change the default value
"Variable Name" is editable in all Store views and change the default value
Usable is only {{CustomVar code="company_owner"}} and i have to use {{trans "Owner"}} additionally

In suggested way i only have to edit one form (System -> Custom Variables). Now i additionally have to make translations on other places.