-
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 load order clarification needed #6563
Comments
I agree. Also see this open PR which will probably fix this (I haven't tested this): As a temporary workaround, you can create your own translation pack with your overrides which inherits from your external language pack: http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-i18n.html#m2devgde-xlate-inheritancework |
This is also an issue for me. base "Thank you!" (normal translation) |
And then another issue emerges... I can't use app/i18n because it overrides everything else, so I tried to only work with Module and theme levels. What happens then, is that the PHP translations respect the overrides/fallbacks/order (search box), but the JS/KO rendered elements don't (minicart). So now I am forced to have a large translation in i18n... |
Resolved by #7142 |
[Arrows] Fixes for 2.4 (pr121) (2.4-develop)
Running a fresh CE 2.1.1 install with the Slendid de_DE language pack.
I was fighting a translation problem for a few hours until I found this (already closed) bug report:
https://github.com/magento/magento2/issues/4463
Even though it has been closed as "not a bug", I would need some clarification on this issue. Clearly, for me how it does work today and is documented in that case is not my expected behaviour.
As a theme developer I would like to override a few translations in order to make the customer experience smoother, buttons smaller, messages clearer etc.
So in my opinion, the theme translation should have the highest priority, not the module translation.
As it does work right now, the "huge" translation CSV (German has over 9000 lines in it) in app/i18n/splendid/de_DE is provided by an external source, so I would like to update it whenever those guys release a new version. If they encounter any incorrect or missing translations, they will fix it and provide an updated file. (especially important for new releases of Magento, as additional strings might need to be translated and are therefore added to this file from time to time).
My theme based translations are intended to override "inappropriate" translations for my specific use case.
If I understand the current Magento 2 translation priority correctly, I would have to perform my adoptions directly in the "huge" translation CSV. This taste completely wrong to me, as I should be able to override those translations somewhere.
Note: I know I can add additional translations for my module just fine, I am talking about overriding existing translations from the module file.
Any thoughts would be highly appreciated.
Ronny
The text was updated successfully, but these errors were encountered: