All Questions
493 questions
4
votes
1
answer
8k
views
Magento2: List translation strings from a module
In order to build this CSV app/code/Vendor/Module/i18n/en_US.csv, I want to get an array from my module with all the translation-ready strings from all files types (.php, .phtml, .js, .xml).
.php &...
4
votes
6
answers
16k
views
Magento 2 : How to install new language pack
I am working on a Magento-2 website which is based on German language.
How to install and use new language package for German language in Magento2.
Which package is best for German language?
Any ...
4
votes
2
answers
4k
views
Translate.csv Failed to Overwrite Module Translation
I got a problem with Magento translation in my translate.csv, because it does not work. It should be easy as all tutorials saying.
I had download the package/module translation put into
\app\locale\...
4
votes
7
answers
9k
views
Translation not working for "please specify shipping method"
We've opened our Magento store a few weeks ago. We are located in the Netherlands and only sell items on the Dutch market, so the entire site is in Dutch. Thanks to some excellent translation packs, ...
4
votes
2
answers
2k
views
Translation of product stock alert email
I have added translation in my locale folders and even loaded templates and assigned them in system config. Nothing seems to translate this email. When i look in the table product_alert_stock i also ...
4
votes
1
answer
6k
views
Magento 2: Translate input placeholder attribute string in Knockout html template
I can translate strings in Knockout html templates like this:
<!-- ko i18n: 'Email' --><!-- /ko -->
<span data-bind="i18n: 'Email'"></span>
And the translations come from pub/...
4
votes
1
answer
2k
views
How to translate within observer
I've written a module with an observer but when I try and use $this->__('something to translate') within the observer, I get the error Fatal error: Call to undefined method ...
4
votes
3
answers
6k
views
Magento - Rename Tax to GST
Throughout my Magento website, where there are products, I made it so that a customer can see the price of the products, with and without Tax.
However, how can I rename the word 'Tax' to 'GST' ...
4
votes
1
answer
10k
views
Magento multistore languages: Getting the locale language name in store selector
When looking through the multistore language selector (in our theme) we see that the dropdown is populated as follows:
foreach ($this->getStores() as $_lang) {
$select_stores[] = '<option '....
4
votes
1
answer
3k
views
Magento Multi Website, Store, Currency, Country & Locale Configuration
Just hoping if someone can point me in the right direction with this one.
Basically, I need to have a website in multiple countries with their localized content and the target countries native ...
4
votes
1
answer
1k
views
M2 - Change admin login language
does someone knows how to change magento's admin login language?
I have a language package installed (es_MX and pt_PT)
Things I've tried:
1) Changed admin user language in Account Settings > ...
4
votes
1
answer
2k
views
How to translate core Magento modules and create a CSV translation file per module?
I want to translate all core modules in Magento 2 without touching the vendor folder and without translating all modules in one CSV file as suggested in this answer
I want to translate each single ...
4
votes
1
answer
62
views
Overwrite of Fooman EmailAttachments works about 50%
I'm using Fooman's EmailAttachments extension on Magento CE 1.9.2.4 - or I try to.
This is my config.xml:
<?xml version="1.0" encoding="UTF-8"?> <config>
<modules>
<...
4
votes
1
answer
888
views
is there a way to alter translate.csv for ADMIN without altering core file?
The file I am looking at is app/design/adminhtml/default/default/locale/en_US/translate.csv
I would like to change translations in the admin back-end without editing this file (in case there is an ...
4
votes
1
answer
517
views
Translation not working for captcha module
I have activated magento admin login form captcha. I keep getting the message "Incorrect CAPTCHA" When i enter an incorrect captcha code, I want to show the german language text instead of english, ...
4
votes
1
answer
2k
views
How to override an installed language module in magento 2?
I installed this language module : https://github.com/Imaginaerum/magento2-language-fr-fr
Now, due to the Magento translation loading order :
Loading the module translations
Load theme translation ...
4
votes
2
answers
2k
views
How to translate SKU# on detail page on Magento 2
I try to translate SKU# on my Magento 2 detail page. But it doesn't work. I found this for Magento 1:
how to rename the SKU label?
And need a simular solution for Magento 2.
Thanks.
4
votes
1
answer
781
views
Add and edit words to Magento 2 language dictionary
In Magento2 - I have installed language pack from MagePlaza. Most of the words got translated, I need to edit the untranslated words. I edit in this file
app/i18n/mageplaza/da_DK.csv
and deployed ...
4
votes
2
answers
699
views
magento2, Child theme in different language
Using below command I have created the csv file for translation. I set the settings for locale in admin panel. After running upgrade and deploy command, I get 404 for all css and js files. In Pub/...
4
votes
1
answer
52
views
Any reason why I shouldn't automate localization setup with a script?
Currently working on a localization project. I would like to make it easier for the backend developer I'm working with to deploy to staging/production. Thinking about just writing a simple php script ...
4
votes
2
answers
3k
views
Magento 2 - extend core module translation i18n for a very specific area [duplicate]
Magento 2 translation problem (my locale is set to en_US):
I want to change the "Email" label on the Contact Us page to "Email Address:". However, I DO NOT WANT the "Email" label changed anywhere ...
4
votes
1
answer
967
views
Multi Store view - product name for each store
I'm using Magento 1.9.0.1
I have a store in English, I want to have the same store (same categories and products) just translated to Spanish.
I used this tutorial to achive this: Ref.
I created ...
3
votes
2
answers
6k
views
Inline translation tool is not working and i can't enable it
Can't use inline translation tool in front end of my webpage. Its working fine in backend.
I checked on the frontend if System>Config>Advanced>Developer>Translate Inline>"Enabled for Frontend" is ...
3
votes
5
answers
10k
views
Javascript translation not working properly
I've translated some text in a javascript file with translation.js, I've done it the following way:
I've defined the translator.
define([
'mage/translate',
];
After that, I translated my text.
$....
3
votes
4
answers
7k
views
Magento2 change Tax to VAT
I am trying to change Tax to say VAT across the site. I have tried to change the en_US.csv file located in i18n in my theme, but with no result. Is this changed on database level, and if so, where?
3
votes
2
answers
7k
views
How to: Translating language for multiple products/categories
My current setup is like this (new install).
main website
main website store
store view English
store view German
Using Magmi, I know how to create my category structure (on the fly) - and how ...
3
votes
4
answers
309
views
Translating an Extension
Are there any tools for generating a csv file for translations of a module? I.e. detecting calls to __() within a module and outputting the information into a csv ready to be used as a translation ...
3
votes
3
answers
2k
views
Magento PDF invoice translations
I have localized and translated my Magento 1.7 installation almost 100% with csv translations, and some inline translations, however in my PDF invoices translations are not taking effect.
Some parts ...
3
votes
1
answer
2k
views
Magento 2 : Priority of translation, proper way
I'm trying to set up a spanish-english store.
I have my dictionary that I want to reutilize for other stores. It has all translations in spanish. I install this dictionary on app/i18n/vendor/es_es/
...
3
votes
1
answer
2k
views
Custom module does not translates admin panel
I created a custom module and it does not translate grid columns or header.
Here is my config.xml
<config>
...
<frontend>
<translate>
<modules>
...
3
votes
4
answers
241
views
If statement for translatable product attribute values
I'm using this kind of statements on other places in the webshop (product detail page) but I want to use this one is on the category page:
<?php if ($_product->getAttributeText('...
3
votes
1
answer
739
views
Translating the custom text in form.phtml file
I have added some paragraph to form.phtml file and added the translation in the .../locale/nl_NL/Mage_Contacts.csv. But the custom text does not get translated in contact us page when I switch the ...
3
votes
1
answer
10k
views
Magento 2 - translating problem in JS templates
Is there a way to translate phrases defined in JS templates in Magento 2?
I have checked official translation structure overview and searched the net but can't seem to find proper solution.
For ...
3
votes
1
answer
2k
views
Remove var Translator = new Translate from <head> section
When I install my language files (nl_NL) in my Magento 1.9.2.2 install, in the head section appears a JS tag that starts with:
var Translator = new Translate({...
What follows is a whole lot of ...
3
votes
2
answers
3k
views
Custom Backorder Message
How it's possible to change the Backorder cart message???
I'd need to display something like "The product will be available to ship from the 1st of january"
Thx
3
votes
4
answers
5k
views
Magento 2 How to display custom text instead of shipping method title and carrier title
How to display only "Shipping" text instead of "Shipping(Flat Rate - Fixed)" text in Cart, Checkout and Emails.
3
votes
2
answers
150
views
Include en_US translation file in extension
When developing an extension is there an reason other than simply "Best Practice" to include a en_US or extension base language translation file?
Example
I write an extension with some text where ...
3
votes
1
answer
266
views
EcomDev PHPUnit Translation not Working with Mocked Helper
I noticed that translations are not working with the EcomDev_PHPUnit Unit Test framework if you replace a helper with a mocked helper, using mockHelper() and replaceByMock(). Shouldn't any call to the ...
3
votes
1
answer
293
views
Load layout outside magento with translation
i have to load magento in a cms and want to include the complete header. Everything works fine, but i don't get the right translation of the template. The locale setting of the store view is correct.
...
3
votes
1
answer
1k
views
FireGento_GermanSetup inline translation does not work
If I open the translation for "Incl. 7% Tax, plus Shipping Cost" it says:
Location: Span element
Scope: FireGento_GermanSetup
Shown: 19%
Original: %s%%
Translated: %s%%
Store View Specific: ...
3
votes
1
answer
745
views
How to translate title attribute in acl.xml
I have this code in acl.xml:
<resource id="Magento_Paypal::use" title="Place Order Using Billing Agreements" translate="title" sortOrder="15" />
and I already added this string in ar_SA.csv ...
3
votes
1
answer
3k
views
Magento2: override vendor language package
I've installed the Magento2 language pack (nl_NL) from Crowdin via composer. The package is located in the vendor/magento2translations folder. I want to add some custom translations which will ...
3
votes
2
answers
4k
views
how to get store information by locale code
How can get store id by locale code right now I have
$locale='en_US';
reverse of this code
Mage::getStoreConfig('general/locale/code', $storeId);
now based on this I want to get store id I could ...
3
votes
3
answers
2k
views
How to make <head><title>...</title><head> translatable in layout definition
Here I have the default contact page layout file (contact_index_index.xml):
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:...
3
votes
1
answer
122
views
Translations and hierachy of authority
We are having problems with translations on our store for our multi lingual sites.
They used to work ok but when we add modules it seems that the translations are now lost.
As an example "Add to ...
3
votes
1
answer
144
views
How to easily keep multiple Magento theme translations up-2-date?
Working with Magento Translations today I got very annoyed by the fact that I had to constantly repeat myself.
In our installation we currently have 4 languages:
en_US for English
nl_NL for Dutch
...
3
votes
2
answers
791
views
Italian translation.csv for tax not working
We have a Italian website on our Magento installation. All the translations are working from our theme's locale/it_IT/translate.csv file with the exception of "Tax","IVA". On the italian site Tax is ...
3
votes
1
answer
537
views
Translated category names
I would like to have a single category tree in my Magento store, used by different store views: English, French and German.
Is it possible to have the category data translated instead of creating ...
3
votes
2
answers
586
views
Seemingly Random Wrong Store View in Email
In a client's website, the sales emails is seemingly randomly (so far we've notice it for the order_new and the shipment_new) sent in another language that the language set for the store view the ...
3
votes
1
answer
5k
views
Magento 2: get current store view in JS
I need to get current store view code in JS component to compose i18n-compatible route to the REST API operation:
define(
["jquery", "ko", "uiComponent", "mage/translate"],
function ($, ko, ...