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 [locale]

The tag has no usage guidance.

0
votes
0answers
18 views

Backend Locale Options is missing most of the countries?

I've a magento 2.2.2, the locale is missing most of the countries in backend and converted into chinese, where is these options loaded from? How can i fix it?
0
votes
0answers
61 views

Magento 2.3 Can't change Locale Options

I am unable to change Locale options in Stores >> Configuration >> General tab Configurations. After saving the configurations it shows 'You saved the configuration.' but there is no change. Flushed ...
1
vote
1answer
86 views

How to set a fallback to English for non-existing language in Magento 2?

I have a i18n folder with 7 csv files which contain keys and translation into 7 different languages. Then I go into admin panel and in General->Locale options, I select a language which is contained ...
1
vote
1answer
87 views

Magento 2 : Change Language Code

I'm facing issues while update language code for website. <!doctype html> <html lang="en"> I want to change it with en-GB. I've already locale setup with default configurations. Any ...
0
votes
2answers
50 views

Magento 2 mongolian language

We setup the multilanguage websites. I'm trying to setup the website for Mongolian Country. In default magento missing the mongolian Locale language. How to add this language in locale.
0
votes
0answers
47 views

Same content (language) for multiple countries (store views)

I'm trying to implement an e-commerce site (using Magento 2) that has the following requirements: be available in N countries (eg http://example.com/country_code/ ) with X languages share the same ...
2
votes
0answers
35 views

Magento 2. 2 Mail template can not be translated

I am offering English and Japanese in Magento 2 project. We respond to customer's inquiries about products. I want to make the mail template of that module correspond to Japanese, but it is not ...
1
vote
0answers
88 views

How to modify lang attribute in html tag by specific locale

I want to modify this attribute by programmatically After many times research i found this class in lib magento Magento\Framework\View\Page\Config Unfortunately magento team set locale in ...
2
votes
1answer
215 views

Magento 2 Interface Locale issue with en_gb(uk)

I am using Magento 2.1.9 with Interface Locale en_gb(uk). After changing from english (us) to english(uk): I am not able to give special date for products. Not able to add cart price rules also. ...
0
votes
1answer
358 views

Magento 2.2.4 Change Country Names

I am wanting to change the names in English for countries in Magento 2.2.4. I tried looking through the database but it appears their full name is not listed there, just country codes. For my use of ...
1
vote
2answers
728 views

Resolver does not report correct locale

I have a very strange problem where the Magento\Framework\Locale\Resolver does not return the correct locale for the current store view. I have setup a store with two separate store views which have ...
0
votes
1answer
36 views

Set current language in magento 2.2.2 [closed]

I want to set the current language to the language what i want. I did URL redirect but at i am not able to set cookies for store.
2
votes
3answers
3k views

Setup:static-content:deploy issue with locale

I have enabled Production mode, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US. In pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, ...
1
vote
1answer
37 views

Magento 2.1 Translate text to given locale

I have a situation where I need to save values in couple of languages, Arabic and English at a save form, So I have two fields with the name Product Name and اسم المنتج i.e Product Name in Arabic, So ...
3
votes
2answers
45 views

Is there any way to change locale along with currency for admin in Magento2

I want to update the currency and the rates for admin based on the user for which locale is set. For eg., if the locale is French, the currency should be French, but if the user is logged in from US ...
0
votes
1answer
28 views

Magento Admin Panel turns into Text File

After I "accidently" changed the Interface Locale in my Magento Admin Panel > Account Setting, the page reloaded and became a text page. When I tried to change the Interface Locale again, the Save ...
3
votes
1answer
82 views

How to check if a string is translated or not in Magento 1

I did a rewrite of this class: Mage_Core_Model_Translate and I focus on this function _getTranslatedString So I changed it into this: protected function _getTranslatedString($text, $code) { $this-...
1
vote
1answer
40 views

Very slow loading upon locale change [closed]

I changed my Magento 2 store locale to Russian using the etws/magento-language-ru_ru plugin and the site loading speed significantly increased. Chrome shows that the waiting time (TTFB) is 12-15 ...
0
votes
1answer
506 views

Magento 2: How can I get de locale code?

How can i get de locale code in the current shop? For example es-ES or en-EN. I tried $this->_storeManager->getStore()->getLocaleCode();
0
votes
0answers
188 views

Basic steps to install a languge pack or locale in Magento 2

I am trying install a German language pack by following below steps. app/i18n/splendid/de_de/composer.json { "name": "splendidinternet/mage2-locale-de-de", "description": "German (Germany) ...
0
votes
1answer
2k views

Allowed Countries

We are a New Zealand based website and we offer shipping to New Zealand only. Could someone please clarify what is the option General > Country Options > Allowed Countries do? Also I only want the ...
2
votes
0answers
241 views

Indian regional language pack. Magento 1.9

How to get Indian regional language pack for Magento e.g Marathi, Hindi, Tamil, Bengali, etc. Because there are more than 20K magento developers, all across India, working on both CE and EE.
0
votes
1answer
37 views

Magento Website stuck in arabic

I have a Magento web site stuck in displaying admin pages in Arabic language. I've tried changing the language via cpanel and also via the admin pages, general etc... Can anyone tell me if I can do ...
3
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
3answers
305 views

How can magento2 support .less or css for multi language locale?

For css, i found that we can add web/i18n/en_US/mymodule.css for module If i want to add some locale specific css for core module, where should i put them in? e.g. app/design/frontend/mypackage/...
2
votes
3answers
762 views

Magento 2 set locale in CLI command module

I'm developing a command line module in magento 2 and I cannot find a way to set locale programmatically. The module takes care of creating a pdf invoice from an order and sends it via email to ...
3
votes
1answer
347 views

Why are emails being sent from the wrong store from the command line

We have a script that is sending emails via the command line. Since we are using the email templates we are loading them using the Mage::getModel('core/email_template') model and then calling ->...
2
votes
2answers
3k views

Check locale of current website Magento 2

I need to check with php if the currently displayed website is the main one in ENGLISH or it is in INDIAN or ARABIC. How can I do that? I've searched around but didn't found anything. in Magento 1 ...
2
votes
1answer
222 views

Magento 2 different languages

Magento 2 different languages for website I did exactly everything according what the guy who posted the answer said. Basically i set the default store to English then i created a new store view ...
9
votes
1answer
651 views

Override locale configuration file to customize price format

To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the ...
3
votes
2answers
10k views

Fatal error: Class 'Locale' not found magento 2.0.2 [closed]

when I run this command static-content:deploy then I got the below error "PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/...
2
votes
4answers
3k views

Programmatically set Store View locale

How do I programmatically set the locale information of a store view? I don't know how to set this value, although I can get it using: echo Mage::getStoreConfig('general/locale/code', $store_view-&...
4
votes
1answer
4k views

Get list of Locale for all stores

Is there a way to get the list of all Locale for set up stores? As you would get Locale for the current store with \Magento\Framework\App\ObjectManager::getInstance()->get('Magento\Framework\...
1
vote
2answers
4k views

How to set the locale (en_US") of Magento2 (I/F Locale) by using command line

I have installed magento 2.0.7 with CentoOS 7 / Apache 2.4.6 / PHP 7 / MariaDB 10. After applying the Japanese locale to "Interface Locale" under Account Setting (refer the link below), I get "HTTP ...
1
vote
1answer
834 views

Magento 2 Admin Pointing to Wrong Locale

I have a Magento CE 2.0.7 install on Apache with PHP7 and MySQL 5.7. There are no plugins or modified/custom code. I set the locale to en_CA on installation through the web setup wizard. I changed to ...
0
votes
2answers
2k views

My magento 2 is not working after install japanese locale file

I have a trouble with my Magento 2 - 500 page error in front and backend. Error log: 2016/05/29 21:28:00 [error] 2681#2681: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ...
0
votes
1answer
292 views

Magento Event for change of interface locale (or language locale)

Is there any event dispatched when you change the interface locale ?
2
votes
0answers
2k views

Magento 2 -How to change the format datetime with yyyy/mm/dd of DOB in customer edit

although I changed the locale of my account to Japan time. But it's display format of en_US.
2
votes
2answers
3k views

Searching for Arabic Language Pack that supports Magento 1.9.2.4

I have installed magento 1.9.2.4 and a paid theme. Now only arabic language pack needed which supports this version. So far unable to find it so please help. Thank you
7
votes
5answers
11k views

How to change currency format in Magento 2?

Currently the price shows like $2.999,00 I want the price to show like $2,999.00 for locale es_MX (spanish, Mexico) in product pages, anywhere else the currency format is correct. I've tried all ...
2
votes
1answer
314 views

How to remove interface language from magento admin panel

how to remove all language from magento admin panel from footer left drop down. (interface locale). i want to set only two language in this
7
votes
2answers
20k views

Magento 2 - How do I change the locale of admin backend?

I checked ALL the settings under stores->configuration. Is there a view mode or something else?
0
votes
2answers
612 views

Magento 2 - get wrong locale which I set in system config?

In Magento 2, I get wrong locale which I set in system config? The first, I go to admin->set config locale is Japanese. And then, I go to class "\Magento\Framework\Stdlib\DateTime\Timezone" .... ...
0
votes
0answers
251 views

Magento 2 - Why before function param is null , and then get value of param in func has value?

In Magento 2, Why before function param is null , and then get value of param in func has value? I get value before: I get value in function: And result:
3
votes
1answer
2k views

Magento 2 - Where is the value of locale in Magento system?

In Magento 2, Where is the value of locale in Magento system? Ex: from database or machine, or some place. In file: Magento\Framework\Stdlib\DateTime\Timezone /** * {@inheritdoc} */ ...
2
votes
3answers
3k views

Magento 2, how to set default locale?

In magento 2, how to set default locale? I default in admin page below: I cleared all cache by command: magento cache:flush. But, it until get locale is en_US. If the true is ja_JP.
11
votes
2answers
2k views

Magento 2 - Product price change to 0.00 in product detail page for Non-US Locale

I am facing a very strange issue after the installation of Magento 2.0.4. I have create a product with the price $12 and change the locale from Magento configuration in backend. Below is the ...
1
vote
1answer
3k views

Problems with DateTime: failed to parse time string

I'm getting very confused here. I made a module which has an adminhtml form which contains a date field. I'm adding it like this: $quotaFieldset->addField( 'quota_expiry', '...
2
votes
2answers
4k views

How to translate only the ‘storefront’ in Magento 2?

I am translating my Magento 2 website. I would like to keep English for the admin pages, but use another language for the storefront (i.e. the pages customers see). This should mean there will be ...
0
votes
2answers
108 views

How to display a same website in different language?

I have completed a website in magento1.9.2.3. Now I wish to have the same site in different languages. How to translate the whole website into different language? Do I have to translate description of ...