-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation issue or translation feature request #1561
Comments
This is one feature Magento 1 provided, but as far as I know it was dropped for Magento 2. |
See if this helps: http://devdocs.magento.com/guides/v2.0/architecture/behavior/xlate.html, "Module and theme [language] packages. Included in the i18n directory of a module or theme, the Magento application auto-discovers these packages." http://devdocs.magento.com/guides/v2.0/architecture/behavior/xlate.html#m2devgde-xlate-languagepack |
Thank you for your interest in my post. I have read this documentations more than once. I haven't digged the code very deeply, but what I see is not encouraging. I just hope that I've missed something. Let's look at the same example with the phrase "Name", excluding the impact of theme translation and let's look only at translation of the phrase in the admin.
Checking. Translation is ok.
Nothing changed. Old translation used. I need to know: have I missed something or it works as intended? How to translate phrase differently for different contexts? |
Alternatively, you can give an ability to make translations namespace specific. Translator should search this phrase at first in "mage/customer/dashboard", after that - in "mage/customer", then in "mage". If there aren't any - it should take the global phrase translation. |
We are working on improving it (or restoring lost functionality). It will allow per module translations which should solve most of the use cases |
@nja78 a fix for this issue has been merged a while back, so we are closing this issue for now. Please open a new issue if you are still experiencing problems. |
Translation function does not use necessary phrase translation from dictionary or it is not possible to translate the same phrase differently in different modules.
I try to translate Magento2 to Russian language. Have issue with some phrase translations. For example:
Name => Имя (Meant: Your Name or First Name + Last Name or User Name. ) (used in Contact Us form or on many forms from 3rd party developers)
Name => Название (Meant: Product Name, Store Name, Group Name etc. - inanimate) (used in Product edit form, Store edit form etc)
Of course i can modify core files or theme templates, but i do not think that it is good idea. Language pack should not modify any core files or templates.
To provide my language pack i cannot use "Translate Inline" to translate such phrases.
But i think there is problem with translation function. Dictionary contains information about extension or theme where this phrase is used.
I have tried to separate phrase to two lines for different modules, but no luck.
The text was updated successfully, but these errors were encountered: