How to translate pages /register and /login
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!
How to translate pages /register and /login
How to translate words on pages /register and /login?
Re: How to translate pages /register and /login
You can use the standard Laravel translation facility within the Blade templates. Please consult the Laravel documentation for details.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: How to translate pages /register and /login
I made this how it need to be from Laravel side but how I can connect {locale} from Aimeos and {locale} from Laravel for situations when someone need to register or login with another than english language, the language which was chosen on laravel site for example de
Re: How to translate pages /register and /login
The {locale} URL placeholder is used for both, Laravel and Aimeos. You have to enable this for Aimeos URLs like described in the article about adding the language/currency selector:
https://aimeos.org/docs/Laravel/Add_loc ... tor#Routes
https://aimeos.org/docs/Laravel/Add_loc ... tor#Routes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: How to translate pages /register and /login
All made by instruction and when I write in config/shop.php and enter index page (/list):
it returned to me:
Sorry, the page you are looking for could not be found.
And if without 'prefix' keys it pass but no relevant local redirections too:
What I made wrong?
Code: Select all
'account' => ['prefix' => '{locale}', 'middleware' => ['web', 'auth']],
'default' => ['prefix' => '{locale}', 'middleware' => ['web']],
'confirm' => ['prefix' => '{locale}'],
'update' => ['prefix' => '{locale}'],
Sorry, the page you are looking for could not be found.
And if without 'prefix' keys it pass but no relevant local redirections too:
Code: Select all
'account' => ['{locale}', 'middleware' => ['web', 'auth']],
'default' => ['{locale}', 'middleware' => ['web']],
'confirm' => ['{locale}'],
'update' => ['{locale}'],
Re: How to translate pages /register and /login
When you add the "{locale}" prefix, the new URL is e.g. "/en/list" and not "/list"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: How to translate pages /register and /login
Got it, thank you
Can I make {locale} depend on browser language if browser language of user is one of purposed on the site?

Re: How to translate pages /register and /login
You can create a route for "/" that extracts the prefered locale from the $_SERVER super global and redirect then to /en/list or /de/list for example.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
