header title in shop pages

Help for integrating the Laravel package
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!
WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

header title in shop pages

Post by WGSF » 07 Oct 2023, 14:31

laravel 10, aimeos 2022.10, php 8.2

vendor/aimeos/ai-client-html/templates/client/html/catalog/lists/header.php contains title for the pages
<title><?= $enc->html( $this->translate( 'client', 'Found products' ) ) ?> | <?= $enc->html( $this->get( 'contextSiteLabel', 'Aimeos' ) ) ?></title>
- 'Found products' is not translated in French language

I tried to override header.php in the following way :
I created an extension and install it in my pakages directory with a new header.php file :
'Packages/myextension/templates/client/html/catalog/lists/header.php
My header.php file contains the following title :
<title><?= $enc->html( $this->translate( 'client', 'Shop' ) ) ?> | <?= $enc->html( $this->get( 'contextSiteLabel', 'Aimeos' ) ) ?></title>
But it seems that header.php is not overrided and I still get 'Found Products'.

I can't see what can be wrong...
Thanks for your answer

WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

Re: header title in shop pages

Post by WGSF » 07 Oct 2023, 17:52

aimeos 2023.10

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

Re: header title in shop pages

Post by aimeos » 09 Oct 2023, 17:50

Due to a bug, some strings have been missing for translation and that's the reason why you are not able to translate that string. If you could translate the missing strings to French, we could add them to the next minor release:
https://app.transifex.com/aimeos/aimeos-core/client/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

Re: header title in shop pages

Post by WGSF » 10 Nov 2023, 11:46

Due to a bug, some strings have been missing for translation and that's the reason why you are not able to translate that string. If you could translate the missing strings to French, we could add them to the next minor release:
https://app.transifex.com/aimeos/aimeos-core/client/
OK, I helped with that.

It remains one point :

in shop/checkout/summary?locale=fr page
In the Invoice adresse
Title 'ms' can't be translated in 'Mme'

WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

Re: header title in shop pages

Post by WGSF » 10 Nov 2023, 17:43

Also in shop/checkout/summary?locale=fr
Salutation (titre in fr) select options are Mr ou ms.
It should be Mr or Mme when locale=fr.
It seems that app.transifex.com can't solve that point ?
Many thanks

WGSF
Posts: 22
Joined: 04 Apr 2023, 11:12

Re: header title in shop pages

Post by WGSF » 12 Nov 2023, 09:43

Found it in transifex.
Solved

Post Reply