Symfony - change default language

Questions around the Aimeos bundle for the Symfony framework
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Symfony - change default language

Post by Seds » 30 Jun 2018, 08:19

hi,

i saw that we can change default language on TYPO3
what's about Symfony?

thanx

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Symfony - change default language

Post by aimeos » 30 Jun 2018, 19:23

The default language is determined by the entry with position 0 in the locale panel if it's not overwritten by the host application.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Re: Symfony - change default language

Post by Seds » 02 Jul 2018, 16:50

OK but is it possible to change default language on /admin instead of changing language each time we connect?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Symfony - change default language

Post by aimeos » 03 Jul 2018, 10:27

Yes, if you change the language ID for the user in the customer panel
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Re: Symfony - change default language

Post by Seds » 03 Jul 2018, 17:10

ok I've changed it, but it's still in english
I logout et relogin but default language on admin doesn't change
**

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Symfony - change default language

Post by aimeos » 06 Jul 2018, 13:43

Sorry, that feature wasn't implemented for Symfony but is now in dev-master and will be part of the 2018.07 release next week :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Re: Symfony - change default language

Post by Seds » 13 Jul 2018, 17:25

ok upgraded. but default language in /admin is still in english.
**

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Symfony - change default language

Post by aimeos » 14 Jul 2018, 12:29

Works perfectly in a test setup if the language of the user is set to a different value and login via /admin is used.

What happens:
- On login, language ID of the user is retrieved
- language ID is added to the URL as "?langid=fr" for example
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Re: Symfony - change default language

Post by Seds » 17 Jul 2018, 21:06

ok
it works
thanks
**

Seds
Posts: 34
Joined: 26 Jun 2018, 17:42

Re: Symfony - change default language

Post by Seds » 25 Aug 2018, 19:57

i dont' understand when i put in production all sites client and admin are in english while aimeos sites in local are in french
config and datebase ok

please
**

Post Reply