How to translate into French

Phoca Cart - complex e-commerce extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to translate into French

Post by Jan »

Hi, can you please paste a screenshot of what do you exactly mean?
Thank you, Jan
If you find Phoca extensions useful, please support the project

Tags:
app-n-web
Phoca Member
Phoca Member
Posts: 24
Joined: 10 Sep 2018, 04:57

Re: How to translate into French

Post by app-n-web »

Hi Jan,

I joined the screenshot for this issue to the login information for the Paypal one.

Have a nice day.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to translate into French

Post by Jan »

Hi, try to see javascript error console:
https://www.phoca.cz/documents/16-jooml ... -conflicts

if there is no javascript error which can cause the problems there :idea:

Jan
If you find Phoca extensions useful, please support the project
app-n-web
Phoca Member
Phoca Member
Posts: 24
Joined: 10 Sep 2018, 04:57

Re: How to translate into French

Post by app-n-web »

Hi Jan,

I had a look at this and you are right, it'a a string about thumbnail loading (COM_PHOCACART_CHECKING_IMAGE_THUMBNAIL_PLEASE_WAIT) in a Javascript function of product edit view (/administrator/index.php?option=com_phocacart&view=phocacartitem&layout=edit&id=xxx) that's causing the problem because of a ' in the middle of it in french. Unfortunately we have many ' in the french language so probably it won't be the only one in that case :(
User avatar
fairyjo
Phoca Member
Phoca Member
Posts: 11
Joined: 03 Nov 2009, 12:39
Location: Switzerland
Contact:

Re: How to translate into French

Post by fairyjo »

Well, it seems that day I decide to take time to install the French package, we have a problem.
Is it worth trying or will it mess up my website?
I am running Joomla 3.8.13 and updated Phoca Cart just yesterday :oops:
Thanks, Joanie
app-n-web
Phoca Member
Phoca Member
Posts: 24
Joined: 10 Sep 2018, 04:57

Re: How to translate into French

Post by app-n-web »

Hi Joanie,

Well it will not really mess up your whole website and you can uninstall it easily if needed but actually there is a least one place where a ' in the french translation cause troubles with a function so maybe it's better to wait for Jan's feedback or if you want to test it before change the translation for COM_PHOCACART_CHECKING_IMAGE_THUMBNAIL_PLEASE_WAIT to remove the '.

Have a nice day.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to translate into French

Post by Jan »

Hi, the translation file is only text file (INI format) so in case, there is some syntax mistake (e.g. missing ", etc.) then the only one problem on the site is not translated content but this error does not influence the function of the component.

Jan
If you find Phoca extensions useful, please support the project
app-n-web
Phoca Member
Phoca Member
Posts: 24
Joined: 10 Sep 2018, 04:57

Re: How to translate into French

Post by app-n-web »

Hi Jan,

In fact the problem is not a missing " but a single quote (') in the french translation of some strings used in a javascript function related to product images thumbnails.

Probably you use single quotes in your function and that's why it generates errors. We can probably go through by escaping it (\') in the translation but I did not find the time to check it.

Have a nice day.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to translate into French

Post by Jan »

Hi, the translation is: COM_PHOCACART_SOMETHING="Some'thing" and the ' should be Ok even in JS as this should be automatically escabed there :idea: :idea:

Jan
If you find Phoca extensions useful, please support the project
app-n-web
Phoca Member
Phoca Member
Posts: 24
Joined: 10 Sep 2018, 04:57

Re: How to translate into French

Post by app-n-web »

Sorry for the late answer Jan, too much to do and days are too short :(

One of the concerned string is COM_PHOCACART_CHECKING_IMAGE_THUMBNAIL_PLEASE_WAIT but it's not the only one and even if it seems strange to you it causes a javascript issue except if removing the ' in the translation as you can see in this screenshot :

Image

And by the way I get another small glitch in the backend and this one even with no language pack installed. The multiple select lists slip under the fields below because of the fixed height of the container in your bootstrap grid CSS : #adminForm .chzn-container { height: 42px !important;}

Here is the screenshot :

Image

Of course, it's not a very important issue but it's still a bit annoying for users so if it can be corrected in next version, it would be great :wink:

Have a nice day !
Post Reply