Translation

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Translation

Post by BlewSquare » 06 Dec 2019, 18:07

Hello everyone , i'm making an e-commerce website and i need your help :D

So i want to translate something but i don't know how , here is the code :

<div class="articleitem stock-actual"
data-prodid="<?= $enc->attr( $this->detailProductItem->getId() ); ?>"
data-prodcode="<?= $enc->attr( $this->detailProductItem->getCode() ); ?>">

</div>


This code is from ai-client-html/client/html/templates/catalog/detail/body-standard.php . The thing i want to translate is the '
' data-prodcode ' ( It return the status about stock so ' unavaible' , ' available ' or ' few product left ' ) . How can i translate it to french ?

Thanks for answering , Blew :)

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

Re: Translation

Post by aimeos » 07 Dec 2019, 10:15

Translation is done in this template:
https://github.com/aimeos/ai-client-htm ... hp#L48-L55

There are already translations for french available according to our translation tool (you need to create a free account and login):
https://www.transifex.com/aimeos/aimeos ... t%3Astock-

Do you want to overwrite that translations? What platform are you using? Laravel, Symfony, TYPO3, etc.?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Re: Translation

Post by BlewSquare » 07 Dec 2019, 12:04

Hey back and thank you for answering that fats ^^

So i'm using the laravel package and i dropped the screenshot in the attachments .
I don't know why it's not translating it ...
Attachments
Capture d’écran 2019-12-07 à 13.03.37.png
Capture d’écran 2019-12-07 à 13.03.37.png (10.98 KiB) Viewed 195 times

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

Re: Translation

Post by aimeos » 07 Dec 2019, 12:11

Can you post the output of "composer show"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Re: Translation

Post by BlewSquare » 07 Dec 2019, 17:08

Sure , i dropped it in the attachments
Attachments
Capture d’écran 2019-12-07 à 18.07.05.png
Third
Capture d’écran 2019-12-07 à 18.07.05.png (109.46 KiB) Viewed 191 times
Capture d’écran 2019-12-07 à 18.06.51.png
Second
Capture d’écran 2019-12-07 à 18.06.51.png (215.86 KiB) Viewed 191 times
Capture d’écran 2019-12-07 à 18.06.36.png
First
Capture d’écran 2019-12-07 à 18.06.36.png (207.92 KiB) Viewed 191 times

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

Re: Translation

Post by aimeos » 08 Dec 2019, 10:19

Is the "./ext/ai-client-html/client/i18n/fr" file there (it's a binary file) and does it contain "produit en stock"?
If yes, check if the locale setting in your Symfony application is "fr".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Re: Translation

Post by BlewSquare » 08 Dec 2019, 11:29

Well , i set the FR is position 0 in locale and it works now

Thanks a lot for answering you're helping me a lot ^^

Post Reply