How to hide languages from back-end ?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
How to hide languages from back-end ?
I want to hide unnecessary languages from back-end. Also I want somehow make it to save selected language. Thanks a lot!
Re: How to hide languages from back-end ?
In the Locale -> Language panel you can enable/disable the languages you need and want to use
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: How to hide languages from back-end ?
Why after I deleted language from Locale->language it still shown at Language tab ? How to remove language from Language tab ? Also how can I set another language ? So when user log in to admin another language will be used ?
Re: How to hide languages from back-end ?
If there are still languages in the locale tab you've changed, you only disabled them - which is OK. They will not be shown in the frontend and the backend any more. You can also remove the combinations in the Locale list if you want.
The language of the user depends on (in this order):
- lang parameter in the URL
- langid in the users table
- default locale setting (./config/app.php in Laravel)
The easiest way to change it is to set the locale in your configuration.
The language of the user depends on (in this order):
- lang parameter in the URL
- langid in the users table
- default locale setting (./config/app.php in Laravel)
The easiest way to change it is to set the locale in your configuration.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: How to hide languages from back-end ?
Hmm, I have removed couple languages from Locales->LAnguages, But they still shown there:
https://prnt.sc/okc650
You see Arabic language is missing in list table but it shown on first position on lang tab where user may select the language. How can I hide or remove languages from exactly that lang tab ?
Also I have changed these configs in config/app :
To
But the language in aimeos admin is still English
https://prnt.sc/okc650
You see Arabic language is missing in list table but it shown on first position on lang tab where user may select the language. How can I hide or remove languages from exactly that lang tab ?
Also I have changed these configs in config/app :
Code: Select all
'locale' => 'en',
'fallback_locale' => 'en',
Code: Select all
'locale' => 'de',
'fallback_locale' => 'de',
Re: How to hide languages from back-end ?
The list of available translations is independent from the list of configured languages:
https://github.com/aimeos/ai-admin-jqad ... d.php#L300
You have to overwrite the page template if you want to limit that to a few particular languages.
These lines are responsible for the used language in the admin interface:
https://github.com/aimeos/aimeos-larave ... hp#L51-L56
https://github.com/aimeos/ai-admin-jqad ... d.php#L300
You have to overwrite the page template if you want to limit that to a few particular languages.
These lines are responsible for the used language in the admin interface:
https://github.com/aimeos/aimeos-larave ... hp#L51-L56
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: How to hide languages from back-end ?
Great thank you! I got it )