admin translation on frontend - magento

Is it possible in Magento to translate messages meant to be displayed in the admin in the admin locale language from a frontend controller (instead of in the frontend locale language)? The Magento translator seems quite hardcoded to only allow one set of translations at a time.
It's a bit random to have order status messages be translated to the frontend users locale language instead of to the admin default locale language. Although, the translation system for status messages isn't very dynamic anyway, with status message texts not being able to be translated dynamically when switching admin locale language.

Related

Magento 2 Auto Language Redirect For Country

I want to make automatic routing for my web site using Magento 2 according to the country. How can I do it?
You can use Auto Switch Language and Currency - Magento 2 ® Extensions for this. With the help of this Magento 2 auto switch language and currency extension, the eCommerce store owner can run the online store business all over the world.
This auto switch language plugin automatically sets the language and currency according to the customer’s geographical location. It switches the language on the basis of the customer’s IP address. The e-merchant can also select a default language for every country. The Magento 2 auto switch language plugin offers a user-friendly interface.

Translation Not Working from Magento Admin

I have a situation where in the actions I trigger from Admin website do not translate my content. I have custom modules in magento and one of them is responsible for sending out emails. The email contents are to be translate according to the locale of the store. While everything works fine when done automatically. But when I trigger this sending of emails from the admin panel the translations aren't working.
For example, my code uses the magento magic method,
__("Text to be translated")
and when the corresponding text is translated in my website. But when I trigger an action from the admin, the same content is not translated.
My translate.csv is currently located in,
app
design
frontend
MyModule
default
locale
country
translate.csv
Any help will be appreciated.

How to change language from default to other language afer login for com_users login menu?

I am using com_users component for login in multi-language Joomla (2.5) site having english as default language and danish as 2nd language. For that I am using language switcher module
It provides login form in both languages danish and English.
The Whole Site Works properly in bothe languages
But After filling the name and password in danish language the site is change to English language.
Go to the specific module for Danish language which displays the login from and look for the option: Login Redirection Page.
Change from Default to the desired localized page.

The backend with a language and frontend with another language

I have my site with Magento, and I want to keep management (backend) in the German language, and in my frontend that language must be Spanish.
Can I do that? How?
The locale for the frontend is set at
System -> Configuration -> General -> Locale Options
While the locale for the backend can be changed from the Interface Locale drop down at the bottom of every admin console page.

Translate error and validation messages in Magento

I have a store with in 3 languages: French, English (default) and German
How to translate the error messages and validation like:
There is already an account with this
email address. If you are sure that it
is your email address, click here to
get your password and access your
account.
Are there any ready translations?
The easiest way is to use inline translations. To enable it, go to configuration > developer > inline translation. Don't forget to restrict translating tasks to your ip on the same developer tab. Then you can simply translate almost anything by simply clicking on it.
Search the message in:-
/app/locale/en_US/Mage_Customer.csv
Here, en_US is the locale code for US English. It is fr_FR for French and so on for other languages.
You can change it there.

Resources