-
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
Javascript text not getting translated to other languages #10860
Comments
This will most likely be fixed by #10747, which should be released in one of the next Magento 2.1.x releases (probably 2.1.10?) |
@hostep Is there some quick fix for this till the time it gets resolved? |
@skashish: we use https://github.com/cweagans/composer-patches/ to apply custom build patches on top of Magento 2 source code, but it's a bit of a tricky library to work with, takes a bit time getting used to how it works... @tkotosz wrote a nice little tutorial over here about how you can use it: #10507 (comment) (we do it differently, but his way should work as well) |
I'm working on this ticket. |
I can have a look if that's ok, trying to do my part for #SQUASHTOBERFEST 🙂 |
Hi @jahvi |
@magento-engcom-team, I believe the tag I just tested this on a 2.2.0 installation, installed the Persian language pack mentioned above, changed that one line, also installed a Dutch language pack, as a reference, setup 2 extra storeviews next to the default English one, both for Persian and Dutch, setup the correct locale's. Reindexed, flushed cache, removed my local storage cache, since translations can exist in there, and then test this out. Both Persian and Dutch work perfectly fine. So I am unable to reproduce this bug, see screenshot for proof: Just wanted to make sure people aren't trying to fix bugs which aren't there anymore. The bug still exists on Magento 2.1.x, but should be resolved with #10747 in 2.1.10 probably? UPDATE: I didn't test this in production mode, but I'm assuming this won't change the outcome. |
That's strange I tested in The main problem as far as I can see is that the string doesn't exist in the |
@jahvi, yes the translation is in my
Make sure you follow step 3 of @skashish's instructions, because by default that particular string hasn't been translated in the Persian language pack as of writing. If you can still reproduce the bug, would you be so kind to write out all the performed steps in detail, so I can try to reproduce it? Thanks! UPDATE: just tested in production mode, to be absolutely sure, and still, the bug seems fixed over here. When testing production mode, make sure to specify only one locale for the |
I can confirm that this works for I installed following the same instructions but I noticed it didn't work even after adding the translated string in the Steps to reproduce
Just trying to figure out if this is still a bug. |
@jahvi: as far as I remember correctly, if two or more @magento-engcom-team, @okorshenko: I believe it has been proven now that this issue is fixed in 2.2.0 and the tags |
I understand, thanks for the clarification! |
Preconditions
Steps to reproduce
"Minimum length of this field must be equal or greater than %1 symbols. Leading and trailing spaces will be ignored.","ﺡﺩﺎﻘﻟ ﻁﻮﻟ ﺍیﻥ ﻑیﻝﺫ ﺏﺍیﺲﺗی ﻢﺳﺍﻭی ﻭ یﺍ ﺏﺯﺭگﺕﺭ ﺍﺯ %1.ﻑﺎﺼﻠﻫ ﻩﺍ ﺩﺭ ﻦﻇﺭ گﺮﻔﺘﻫ ﻦﺧﻭﺎﻫﺩ ﺵﺩ.",module,Magento_Ui
inside
vendor/mageplaza/magento-2-persian-language-pack/fa_IR.csv
Expected result
The javascript text on User registration page ( on password field ), must be translated to Persian.
Actual result
The javascript text is still seen in English.
The text was updated successfully, but these errors were encountered: