magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

Lot of translations not working #5305

Closed jsakars closed 8 years ago

jsakars commented 8 years ago

Steps to reproduce

  1. Install Magento 2.0.7
  2. Add Russian translation pack in app/i18n/<vendor>/ru_ru/ which has all the files (composer.json, language.xml, registration.php and ru_RU.csv)
  3. Configure several store views e.g. English and Russian and set corresponding locales for each.

    Expected result

  4. Translations appear in all places

    Actual result

  5. There are lot of places were translations do not show up - default English text is shown

See http://screencast.com/t/xI8C1E8RUxny for example - "My Account" is translated and it does show up correctly in most places except breadcrumb.

Here is the incomplete list of places where translations does not work:

jsakars commented 8 years ago

Turns out to get translations working You need to deploy static content all over. Otherwise translations in Knockout templates won't work. With all that there are still translations that do not work:

hostep commented 8 years ago

Informational: as an alternative for flushing the knockout templates cache, you can also remove the files in:

It works a bit faster then doing the whole static deploy dance. Although you'll still have to sit and wait for a minute or so until everything gets regenerated when you refresh your page in the browser.

jsakars commented 8 years ago

@hostep I believe that does not apply for production environment though

hostep commented 8 years ago

Yes that's correct, only for local development mode. Sorry, I should have made that more clear.

sevos1984 commented 8 years ago

Is this still actual?

jsakars commented 8 years ago

@sevos1984 haven't had time to check it on latest 2.0.* version yet

sevos1984 commented 8 years ago

This should be fixed in latest develop branch commit https://github.com/magento/magento2/commit/14028aad37ee7435d89eb3b647e6d03ecd8e2e13. Patch will be soon delivered into 2.0 branch.

Ctucker9233 commented 8 years ago

@sevos is this commit safe to merge into a 2.1.1 production site, or is a patch planned? Thanks.

sevos commented 8 years ago

@sevos1984

Michael89s commented 7 years ago

Hello, my first post here.

This issue still occurs on 2.1.4. Any chances for a patch?

Thanks, Michael

vigoss-ru commented 7 years ago

You can install language package follow the instructions in here : https://github.com/splendidinternet/Magento2_German_LocalePack_de_DE

pixiemediaweb commented 5 years ago

We've noticed another issue with translations which have double spaces in the strings, for example;

"This is a line of text. This is the next line","translated version of text. Translated version of next line"

This works fine in developer mode, but in production strings with double spaces dont work. Remove the double spaces from templates and the corresponding translation string in your csv.

JMLucas96 commented 3 years ago

Same issue on backend in magento 2.1.8, any fix?

sawwd commented 1 year ago

Same issue on backend in magento 2.1.8, any fix?

Some are stored in the local storage of the browser, lol. Clear your browser storage and these might work.