Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [localisation]

Questions related to localisation in Magento. This covers translations, currency and number formatting and in parts implementing local laws and standards.

29
votes
3answers
31k views

How to implement translations in design template package CSV's? How does echo $this->__('Text') work?

I have a design package setup like so: design/frontend/package_name/theme_name/locale/ under which I have de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
26
votes
4answers
12k views

Why do classes use a helper for translation instead of $this?

In core modules and sometimes templates, I see helper classes being used for translation: Mage::helper('someModule')->__('translate me'); Why is this preferable to: $this->__('translate me');
23
votes
4answers
48k views

How to add translations for new words in Magento?

I'm using English, Spanish and German as three store views for my site. What is the easiest way to add translations for new words? Even if I add new words with the translations it doesn't show in the ...
23
votes
4answers
19k views

how to create multilingual static block

I need to create multilingual static block. So far I have created static block with id 'delivery_returns'. I'm calling it in catalog\product\view.phtml like this: $deliveryBlock = Mage::getModel('...
21
votes
5answers
12k views

Managing Magento csv Translation Files

As time has passed, the Magento core team has added more and more default language packs to the app/locale folder. Is there a canon way to manage your own translation files such that they don't ...
18
votes
3answers
2k views

Adding a new Language?

I've looked at several pages regarding adding another language support to the Magento cart, however, there seems to be something missing. The usual is to download translation through the admin ...
16
votes
5answers
27k views

Why does my translate.csv and the translation files not work?

I'm trying out a new theme and it seems to not get the translations properly. If I search for the English phrase in my files, I can find: "You have no items to compare.","Sie haben keine Artikel ...
16
votes
4answers
5k views

Magento2 localisation Javascript

A similar question was already asked here: Magento 2 javascript text translations, but Magento updated this translation technique in the beta version. How can I add or update translations used by ...
15
votes
5answers
5k views

Displaying appropriate localisation based on Location

I'd like to configure the Magento site to be able to recognize the default language and location of the user and display the site in that language and with appropriate localization. For example: A ...
15
votes
1answer
6k views

Make magento core template use my module's translation file

In an extension I'm working on, I have a layout XML added via module's config.xml. This layout has some modifications to the frontend. Some of these blocks, however, belong to Magento core modules. ...
12
votes
3answers
1k views

Translate Maintenance mode per website in multiwebsite-multidomain setup

Translate Maintenance mode per website in multi website-multi domain setup What is the proper way of translating (localisation) Maintenance page in a multi-website and multi-domain environment? ...
12
votes
2answers
538 views

How to handle translations with translation bureaus?

I'm wondering what's the best way to realise translations with translation bureaus. Basically I see two ways of doing this: Send them the CSV files. Give them access to a Magento installation for ...
12
votes
3answers
4k views

magento 2: 'i18n:collect-phrases' command creates different csv files

php bin\magento i18n:collect-phrases -o "C:\xampp\htdocs\magento\app\design\i18n\xx_YY.csv" -m collects all phrases in the magento application and outputs a csv file with 4 columns: php bin\magento ...
11
votes
2answers
3k views

Magento 2: what does i18n mean?

When I started working with Magento 2, that was the first time I came accross this abbreviation so I have no idea what does that word/abbreviation mean ?
10
votes
1answer
1k views

how can change magento calendar?

As you know Gregorian is default calendar in Magento, but in some countries like China, Japan, India, Iran and Arabian countries there are different calendars. I searched Magento backend and I didn’t ...
9
votes
3answers
15k views

Magento 2 Translations not working

I'm trying to translate some text in the checkout page: "Provided Zip/Postal Code seems to be invalid." However, when I add the following to frontend/..theme../Magento_Checkout/i18n/en_US.csv and ...
9
votes
2answers
8k views

Can I change my default language from English to German?

Can you provide a guide for changing store language from English to German? Module i18n only has en_Us file. I have learned a user guide, but cannot understand that. Any solution for that?
8
votes
3answers
5k views

Translation doesn't work on breadcrumbs added by xml

I'm building a custom page. I add breadcrumbs like this (and it works well). <brand_brand_index translate="label"> <reference name="breadcrumbs"> <action method="...
8
votes
1answer
7k views

Change the scope of a attribute

A extension created a extra tab in my category menu. With this code: $setup->addAttribute('catalog_category', 'menutopdescription1', array( 'group' => 'General', 'input' ...
8
votes
4answers
6k views

How to know which translation csv file(s) are used in the current phtml file

Is there a method to know which translation CSV file(s) are used in the current phtml template file?
8
votes
2answers
642 views

Translating custom strings into theme knockout templates

I know that this issue has been dealt with several times in this forum Magento2 localisation Javascript Magento 2 - translating problem in JS templates Magento2 translating Javascript (KO) template ...
7
votes
3answers
6k views

Inline translate Chrome Bug?

Maybe it's just me, but in Chrome browser inline translate does not work. The red boxes are shown and if I hover the mouse the book icon appears but if I click it nothing happens. I had the same ...
7
votes
2answers
5k views

How does translation scope work in Magento 2?

In Magento 1 different modules could provide different translations for the same string and the various __() methods in helpers and blocks always passed a module scope to the translator model, to ...
7
votes
5answers
8k views

How to add a new language - Magento 2.0.1

I am trying to create a new store view for the Tamil Language, but the language does not get listed while choosing the language from admin. short description of what I have done 1) I have ...
7
votes
2answers
2k views

Magento 2 javascript text translations

[EDIT] This is outdated. The translation is not done anymore as described below [/EDIT] In Magento 1 the translatable texts needed in javascript were added in the jstranslate.xml file in the etc ...
6
votes
2answers
7k views

Magento 2: Change Text On Checkout Page

I'm using Magento 2 CE Version 2.1.2 I would like to change Shipping Address to Shipping/Billing Address. I have already below, but it's not working for me. Magento 2: Sorry, no quotes are ...
6
votes
6answers
5k views

Title tag in layout is not translated

I don't know if this a bug, but title tag in layout is not translated. For example, <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="...
6
votes
4answers
4k views

Update customer gender translations

I would like to translate the gender options for a customer. At first I thought that I could simply use a translation file for this, but looking into the template app/design/frontend/base/default/...
6
votes
2answers
3k views

Translation function with multiple variables doesn't work

I have a problem using translate function. This works: $this->__("You can contact %s by calling %s.", $name, $phone); But this doesn't: $this->__("You can contact %1$s by calling %2$s.", $...
6
votes
4answers
1k views

Magento 2 - translating problem with JS strings

I'm trying to translate my website content. Everything worked fine expect the validation messages which come from mage/validation.js, and the minicart content translation is not showing on the ...
6
votes
1answer
1k views

“Interface Locale” admin language problem

In my admin page, the "Interface Locale" dropdown is not working. I already switched the default language to German, but is still shows English. The same with Chinese. How can I solve this problem?
5
votes
2answers
11k views

How to override translate csv files in magento2

Suppose, I want to translate Shop By to Shop in my custom theme using translation file en_US.csv What is the method or procedure to achieve it in Magento2?
5
votes
4answers
4k views

How to debug vsprintf() “Too few arguments” error in my log files?

I keep seeing the following report in my system.log file: 2015-10-20T12:34:07+00:00 DEBUG (7): Array ( [type] => 2 [message] => vsprintf(): Too few arguments [file] => app\code\...
5
votes
4answers
321 views

What is the proper way to add theme-specific translations of new strings?

We are creating a new template and have some new text which are not yet defined anywhere. If they would be defined before we would add some "Mage_TheModule::Foo";"Fuh" to the translate.csv in the ...
5
votes
1answer
3k views

Magento 1: Use of <![CDATA in the system configuration XML

I've noticed that some comments in the native Magento 1 system.xml files are enclosed by <![CDATA[ / ]]> tags and some are not. For example in app/code/core/Mage/Captcha/etc/system.xml we have: ...
5
votes
2answers
3k views

What is the best way to translate Magento?

I am trying to have my Magento work in french. Should I use a module for this or id there another better way? This is the module I am looking at: http://www.magentocommerce.com/magento-connect/...
5
votes
1answer
206 views

Translations of layout handle label

During the creation of a layout handle you specify a node <label> which is some text to describe the layout handle. For example the layout handle catalog_category_default has the following ...
5
votes
3answers
4k views

translation of Mr. and Mrs. prefix options

So I have to set a translation for the Mr. and Mrs. prefix options in the one-page checkout form, where a customer fills his name, address, etc. All the translations so far I have done through the ....
5
votes
1answer
304 views

Pirate Language Pack

I'm looking for a Magento language pack, like Facebook's Pirate Language option, that is humorous. My Google-fu is failing me. Pirate is preferable. Update A pirate language pack been created and ...
5
votes
1answer
97 views

Magento 2 : How to concat a string variable to option value in knockout template which already bind to i18n string?

I've knockout template which contains the following line: <option value='industrial' data-bind="i18n: 'Industrial'"></option> anyone knows how to add variable to 'Industrial' eg. <...
4
votes
4answers
6k views

“Special Price” is not translated

I am using the latest Magento DE version (1.9.0.1) and while everything else works fine (like "Regular price") "Special price" is not translated. I've tried changing the "Mage_Catalog.csv" in the "...
4
votes
7answers
8k 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
2answers
12k 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
2answers
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
1answer
1k 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
3answers
5k 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
1answer
9k 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
1answer
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
1answer
3k views

How are Order States/Statuses translated?

Suppose I have a website with English and German store views. I only see a single global mapping of states to statuses at /admin/sales_order_status, so it's not clear how I would have an order state ...
4
votes
2answers
2k 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 ...