The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [locale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
50 views

Magento 2 Country Name not get translated when using countryFactory

My Magento site have about 10 different websites and one for each country. I have set the correct Locale corresponding to each country (storeview). I'm getting Country Name by using countryFactory, ...
0
votes
0answers
15 views

Invalid input datetime format of value in Others locale

Preconditions (*) 1.Magento 2.3.2 2.Japen or China locale Steps to reproduce (*) 1.Create or edit product 2.Change date field for new from to anything 3.Click Save Expected result (*) Product ...
0
votes
1answer
42 views

Email template: locale lang in url

As suggest the title; what I want to do is to set url in my email template different depending on locale language. What I tried to do: config path='web/unsecure/base_url'}}{{config path='...
0
votes
0answers
21 views

Magento 2.3.2 - Setting Locale Options > Locale > Chinese (Taiwan) doesn't load product page

Running a multi website and multi store site. One of the websites has it's locale options > Locale set to Chinese (Taiwan) This causes only the product pages to load blank. The error_log shows the ...
0
votes
1answer
77 views

Magento2 order email date formatting

I'm trying to edit email template and format created date. The date in the email is written using this variable {{var order.created_at}} And I think that It is created using the following function ...
0
votes
0answers
27 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
1answer
149 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
137 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
190 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
57 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.
1
vote
0answers
88 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
39 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
145 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
261 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
516 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
1k 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
46 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
40 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
47 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
33 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
94 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
48 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
617 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
202 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
251 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
38 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
380 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 the core module, where should I put them in? e.g. app/design/frontend/mypackage/...
2
votes
3answers
867 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
382 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
261 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
700 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
11k 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
4k 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
5k 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
879 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
299 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
8
votes
5answers
13k 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
352 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
21k 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
748 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
265 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} */ ...