Bug Pgb Posts in French backend, ok English backend

Phoca Guestbook - creating guestbooks in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug Pgb Posts in French backend, ok English backend

Post by Jan »

Hi, did you change it to:
alert('<?php echo JText::_('JGLOBAL_VALIDATION_FORM_FAILED', true);?>');

I have changed it and it is working Ok (the problem is apostrophe, which is protected by the true argument)

administrator\components\com_phocaguestbook\views\phocaguestbook\tmpl\edit.php

Jan
If you find Phoca extensions useful, please support the project
vezid
Phoca Member
Phoca Member
Posts: 11
Joined: 29 Jul 2014, 11:56

Re: Bug Pgb Posts in French backend, ok English backend

Post by vezid »

HI,

I wondered why backoffice in English everything is ok, not OK in French. The only change is the language file.
I compared the English and French file, to my surprise I discovered a multitude of errors. OH !!!!!!!!!

To do this copy your 2 files in an Excel column, you sort and you compare visually.

I expect you publish a corrected file as the current file is totally unusable.

The order of the lines in English and French files are different, so very hard to see if there are missing lines in the French file.

The file fr-FR.com_phocaguestbook.ini have several defaults
Replace by in the French version
COM_PHOCAGUESTBOOK_FIELD_LOGGING_FAILED_DESC="Dans la négative, seuls les éléments publiés (ou examinés) sont enregistrés. only published (or reviewed) items are saved. Attention: si vous choisissez "oui", beaucoup d'entrées seront enregistrées!!" Replace by COM_PHOCAGUESTBOOK_FIELD_LOGGING_FAILED_DESC="Dans la négative, seuls les éléments publiés (ou examinés) sont enregistrés. Attention: si vous choisissez oui, beaucoup d'entrées seront enregistrées!!"

COM_PHOCAGUESTBOOK_ORDERDIR_ASC="ACS" Replace by COM_PHOCAGUESTBOOK_ORDERDIR_ASC="ASC"

Double lines in the French version

COM_PHOCAGUESTBOOK_DELETE="Supprimer"
COM_PHOCAGUESTBOOK_EASYCALC_CAPTCHA="easyCalc"
COM_PHOCAGUESTBOOK_FIELD_SELECT_GUESTBOOK_DESC="Sélectionnez le livre d'or"
COM_PHOCAGUESTBOOK_NOT_CHECKED="Non vérifié"
COM_PHOCAGUESTBOOK_PG_NEW_POST_WAITING="Nouveau message Phoca Guestbook ajouté [En attente de contrôle]"
COM_PHOCAGUESTBOOK_RANDOM="Au hasard"

Continued on next message
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug Pgb Posts in French backend, ok English backend

Post by Jan »

If you find Phoca extensions useful, please support the project
vezid
Phoca Member
Phoca Member
Posts: 11
Joined: 29 Jul 2014, 11:56

Re: Bug Pgb Posts in French backend, ok English backend

Post by vezid »

Hi,
I performed the update of the languages files in French.
fr-FR.com_phocaguestbook.ini and fr-FR.com_phocaguestbook.sys.ini
I thought the bug could come from these files.
Unfortunately the bug persists.

I modified the file
administrator \ components \ com_phocaguestbook \ views \ phocaguestbook \ tmpl \ edit.php
as you stated earlier


I always get the same block with the same error with Firebug.
With SuperUser/ back end languageFrench/PhocaguestBook/Posts/
Buttons (Save, Save & Close, Save & News, Close) are not operational and block the system,

With Firebug here is the error in French administator
TypeError: b is null
...ElementById("adminForm"));"undefined"!==typeof a&&(b.task.value=a);if("function"...

This error comes from the absence of the variable b detected in the file core.js
In media/system/js/core.js the instruction is Joomla.submit.form=function(a,b)

Did you perform the test under the same conditions?
localhost,
Xampp 1.8.2 (php : 5.4.27), Msql 5.5.36,
Joomla 3.3.3
Phocaguestbook 3.0.2
fr-FR.com_phocaguestbook-j3
Editeur JCE ou Tiny MCE

Recorded posts are with users public.
I hope you find the solution.

Kings regards
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug Pgb Posts in French backend, ok English backend

Post by Jan »

Hi, as written above:
viewtopic.php?f=2&t=26420&p=99332#p99244

the problem should be solved by:

Code: Select all

alert('<?php echo JText::_('JGLOBAL_VALIDATION_FORM_FAILED', true);?>');
I have changed it and get it working OK with french translation, the only one problem was apostrophe, which is save when using JText true

Jan
If you find Phoca extensions useful, please support the project
vezid
Phoca Member
Phoca Member
Posts: 11
Joined: 29 Jul 2014, 11:56

Re: Bug Pgb Posts in French backend, ok English backend

Post by vezid »

Hi,
There is no need to repeat myself several times the same correction as I told you in the post above that viewtopic.php?f=2&t=26420&start=10#p99332 I had applied. Please reread the
You did not answer me what configuration you performed the tests.

Since I just found out that another anomaly exists before the anomaly already reported.

In Joomla 3.3.3 demo, backend, super user, Langage French
Not possible to create one post although the selection guestbook is done
SyntaxError: missing ) after argument list
alert('Formulaire invalide - Aucun livre d'or n'a été sélectionné');
"Guestbook was not selected"


The creation of posts in backend is not possible with super user, Langage French
The creation of posts in frontend is ok
The modification of posts in backend is not possible with super user, Langage French

I hope one solution.

Kings regards
Post Reply