TRANSLATE IN FRENCH

Phoca Cart - complex e-commerce extension
cb03
Phoca Member
Phoca Member
Posts: 43
Joined: 08 Oct 2017, 14:31

TRANSLATE IN FRENCH

Post by cb03 »

Hi, I am trying to translate en-GB.com_phocacart.ini but when I upload the file it doesn't work.

Is there any way to find the problem quickly ?

The file is there : https://drive.google.com/open?id=16Ce16 ... p9GUZqp_iG

Thank you
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: TRANSLATE IN FRENCH

Post by Benno »

Hi,
1.) You have to rename your file
from:
en-GB.com_phocacart.ini
to:
fr-FR.com_phocacart.ini

2.) You have to delete the spaces before and after = within all strings. Example:
from:
COM_PHOCACART_FIELD_DISPLAY_FILE_PLAY_LABEL = "Afficher le fichier à lire"
to:
COM_PHOCACART_FIELD_DISPLAY_FILE_PLAY_LABEL="Afficher le fichier à lire"
(Can be done easily e.g. with help of Notepad++ (Search and replace feature))

3.) You need to copy your fr-FR.com_phocacart.ini file to:
/language/fr-FR/
administrator/language/fr-FR/

4.) You also need to translate en-GB.com_phocacart.sys.ini
and rename it to fr-FR.com_phocacart.sys.ini

5.) French (fr-FR) need to be installed and set as your Joomla! default language

6.) Last but not least, you should clear all caches. (Joomla! & your browser)

Kind regards,
Benno
cb03
Phoca Member
Phoca Member
Posts: 43
Joined: 08 Oct 2017, 14:31

Re: TRANSLATE IN FRENCH

Post by cb03 »

I just tried to do your n°2 advice but the file still doesn't work

https://drive.google.com/open?id=1ierOa ... 09YTsQhojt
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: TRANSLATE IN FRENCH

Post by Benno »

Hi,
I have debugged your file and now it works:
Image
PM me your email address, so I can send you the file.
If you also translate the second language file (fr-FR.com_phocacart.sys.ini), it would be nice if you share it with the community here. :)

Kind regards,
Benno
cb03
Phoca Member
Phoca Member
Posts: 43
Joined: 08 Oct 2017, 14:31

Re: TRANSLATE IN FRENCH

Post by cb03 »

thank you :) yes I will share it but first I have to check it.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: TRANSLATE IN FRENCH

Post by Benno »

You got mail!

Kind regards,
Benno
Post Reply