-
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
i18n:collect-phrases -m can't find many important magento phrases #2630
Comments
the same here.. we have translated everything from collected phrases to slovak language (https://connect20.aveo-trade.cz/cat:BuyPackage/details=1/extension=atconnect%2Fmagento2-language-sk_sk ) live preview is here: http://mag2-test.aveo-trade.cz/ and quite many phrases are not translated.. |
Hi, i did not look it up yet properly, but it seems that also some of the translated texts are not put to the production.. For example "PDF Invoices" translated as "PDF Faktúry" (module,Magento_Sales) is shown in the administration as "PDF Invoices". But many texts does not even collect.. for example from \vendor\magento\module-ui\view\base\web\templates\grid\actions.html it does not collect text "Select Items" |
any update on this issue? |
i suggest someone should set this issue the highest priority because if M2 is not translated correctly to any language it is completly useless in every language besides English.. I dont understand how this could be released as official! :( |
We are working on a fix. Ticket: MAGETWO-47439 |
Related issue - please use MAGETWO-43958 to test. cc @mazhalai |
It could be a hard-to-fix issue, currently i18n:collect-phrases only extract phrases from given token with the i18n format __('phrase') for php/phtml files, and translate="true" for xml files. |
After installing the language pack did you run the following commands? php bin/magento setup:static-content:deploy I also run the above commands in a nightly cron here is my "how to" so far: http://www.vanderboon.net/wiki/Install_Test_Magento_2_Translation I am running into a new problem.... Static text are show in the correct language, by dynamic are not. Will open new issue for this. |
looks like it works but i can't translate now header step names in checkout: can yo check this? |
Is there a way to get in what module a certain string should be located? I located for instance the "Review & Payments" text in the source code, but I can't get it translated. I tried the following codes in my csv... but nothing is working "Review & Payments","Controle en betalen",module,Magento_Payment Any idea's? |
Hi, we have translated whole magento2 already to three languages: DE, TR, SK we release it as composer package, and i believe there should be no special need for this code to run:
Our packages are the zip file with for example this content: {
"name": "atconnect/magento-two-language-de-de",
"description": "Magento 2.0.0: de_DE",
"version": "2.0.0.2-stable",
"license": [
"proprietary"
],
"type": "magento2-language",
"autoload": {
"files": [
"registration.php"
]
}
} magento-two-language-de-de\language.xml <?xml version="1.0"?>
<!--
/**
* @copyright Copyright (c) AveoTrade
Licence: https://connect20.aveo-trade.cz/cat:Agreement
*/
-->
<language xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/Language/package.xsd">
<code>de_DE</code>
<vendor>atconnect</vendor>
<package>magento-two-language-de-de</package>
</language> magento-two-language-de-de\registration.php <?php
/**
* Copyright © 2015 AveoTrade
*/
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::LANGUAGE,
'atconnect_magento-two-language-de-de',
__DIR__
); magento-two-language-de-de\de_DE.csv
You can see demo here: http://mag2-test3.aveo-trade.cz In Slovak language we have already ported to version 2.0.1, but still many things are missing.. |
Also it would be cool if there was some tool to export the product names, descriptions, cms pages and so on for the translation. We would like to provide for example translation services for eshops, so that they have localised content, but right now i dont know how to export these texts, and import them using composer... |
- fixed public GitHub issue #2630
…tant magento phrases #2630 - added support of $t("some text") - added support of xml attributes translation
…tant magento phrases #2630 - added translate attributes to menu and ACL configurations
…tant magento phrases #2630 - Added tests.
…tant magento phrases #2630 - Updated regex that picks up php phrases.
…tant magento phrases #2630 - Revised regex.
@kkkonrad, thank you for reporting the issue. We have added support of javascript translations and improved coverage for menu and ACL configuration. (please, see related commits) Please, let us know if we resolved your initial use-case and we can close this issue. |
@jrm93 Which version are you using? It is still broken in 2.0.4, Almost all issues have been resolved in latest developent version. |
@thomvanderboon These is at least 1 phrase (maybe more) that still not gets written to the .csv. One example is "All Customers" in the Customers menu as shown in my example. I generate the file with the following command:
When i then user grep like this All Customers string is not found.
Did i do something wrong or is it just a bug in the system. |
@jrm93 What version of Magento 2 are you running? |
@thomvanderboon i am using version 2.0.4. |
@jrm93 This issue has not been fixed in the 2.0.4 and will be fixed in one of the upcoming releases. The issue has been fixed in the development branch, which has less stable code than the latest official release. |
@thomvanderboon thanks for the information. Will clone development branch tomorrow to finish the rest of the translations. |
@thomvanderboon Do you know when this fixes will be included in 2.0 branch? In 2.0.6 there are still strings that can't be translated. |
@Krapulat No, I don't know....Send e-mail to magento? ;) |
2.0.6 does not contain these fixes yet :( |
Does anyone has an update on this please? |
@michiz05000 @teokolo could you please provide a list of phrases which are still not translatable? Please check them on 2.1 branch before reporting. |
Hello @kkkonrad, this issue has been fixed in the 2.1.0 Release, that's why I'm closing it. If you any questions or additional information regarding the issue feel free to reopen it or create a new one. |
@KrystynaKabannyk I've upgraded to 2.1.0 and some strings in the checkout page can't be translated. |
For example, the strings in Checkout like "Shipping", "Review & Payments", "Order Summary", "You can create an account after checkout." and many others can't be translated. Thanks. |
Still not translatable in Magento 2.1. "Shipping" works. Has it to do with the "&"? |
@gesell "Review and Payments" IS translatable in my Magento 2.1 store |
Hi @Igarridoj Thanks for your reply. How did you manage it? In my case it simply ignores this part of my CSV file (/app/design/frontend/Magento/luma/i18n/de_DE.csv) |
@gesell The row in my .csv file contains: |
I think this has to be reopened as the checkout page is still not translatable (version 2.1.1) |
I can't get "Review & Payments" to be translated by using de_DE.csv in a custom themes i18n folder... Think so 2 |
Unbelievable that this is possible... I'm desperately looking for a solution...anybody? |
This should be escalated to the magento2 top management team now in my perspective. It looks like the m2 developers and m2 GitHub team are not handling bugreports properly since 1.5 years now. There are hundreds of open bugs here never fixed. This one is also present in 2.1.7. If you read on GitHub more and more people/developer/user are getting really more and more angry because the @magento-team does not fix important bugs for moths and years. I think the only way is to escalate this to the top management team as no promises from magento2 team made here are kept. |
It's embarrassing that this is still an issue. |
Hi @BenSpace48, I see that @magento-engcom-team has closed this issue about a year ago. Could you please clarify the scenario in which you still experience a bug? |
There are issues currently open for this problem so despite it being closed it still isn't fixed fully, I'm referring to the fact that these issues have been around since 2015 and are still causing problems. It feels like Translations have always been broken when it comes to html and JS translations. See #8508 (comment) and #11175 I find UI Components easier to work with than translations 😱 |
@BenSpace48 I understand that this is frustrating, unfortunately the only way to get these issues fixed is to report specific cases when translation does not work. As far as I can see, the tickets you referred in previous comment have been triaged by @magento-engcom-team and will be fixed according to their priorities. |
Specific case
33 <!-- ko if: (getCartLineItemsCount() === 1) -->
34 <span translate="'Item in Cart'"/>
35 <!--/ko--> Using i18n:collect-phrases -m, the phrase does not appear in results (while being present in its original translation file: vendor/magento/module-checkout/i18n/en_US.csv). |
looks like it can't find:
Order Summary
Review & Payments
Go to Wish List
View and edit cart
You can create an account after checkout
and other checkout phrases so frontend translation is imposible
The text was updated successfully, but these errors were encountered: