Page 1 of 2
Bug Pgb Posts in French backend, ok English backend
Posted: 29 Jul 2014, 12:08
by vezid
Hello,
On local site with Joomla demonstration and on the other site Joomla
With Joomla 3.2.4, Phocaguestbook 3.0.2, fr-FR.com_phocaguestbook-j3
With SuperUser/ back end languageEnglish/PhocaguestBook/Posts/
Buttons (Save, Save & Close, Save & News, Close) are OK
With SuperUser/ back end languageFrench/PhocaguestBook/Posts/
Buttons (Save, Save & Close, Save & News, Close) are not operational, bug, no error message.
In the French translation missing [3.0.0 Stable] and [3.0.1].
The message "The user checking out does not match the user who checked out the item." is display only in GB,
The message "L'utilisateur qui valide ne correspond pas à l'utilsiateur/trice qui a invalidé l'élément".is not display in FR,
See en-GB.lib_joomla.ini et JLIB_APPLICATION_ERROR_CHECKIN_USER_MISMATCH
Kind regards
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 30 Jul 2014, 15:37
by Jan
Hi,
buttons not operational - when you click on them, do you get any javascript error (e.g. when firebug enabled - see:
https://www.phoca.cz/documents/16-joomla ... -conflicts )
btw - can you update the translation and send me it, will be great.
Thank you, Jan
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 01 Aug 2014, 23:35
by vezid
Hi,
Here is the translation of the missing lines in the file fr-FR.com_phocaguestbook.ini
;[3.0.1]
COM_PHOCAGUESTBOOK_FIELD_LOAD_BOOTSTRAP_LABEL="Bootstrap"
COM_PHOCAGUESTBOOK_FIELD_LOAD_BOOTSTRAP_DESC="Boostrap pour Phoca Guestbook ne se charge pas dans le modèle (utiliser des modèles non bootstrap)"
COM_PHOCAGUESTBOOK_RANDOM="aléatoire "
;[3.0.0 Stable]
COM_PHOCAGUESTBOOK_CONFIG_HEAD_IPCHECK_DESC="Paramètres de sécurité valables pour contrôle IP"
COM_PHOCAGUESTBOOK_EASYCALC_CAPTCHA="easyCalc"
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_SUCCESS_PUBLISH_ITEM="Article publié"
On demo Joomla
With Firebug here is the error in French administator
TypeError: b is null
...ElementById("adminForm"));"undefined"!==typeof a&&(b.task.value=a);if("function"...
core.js (ligne 4, col. 202)
http://localj315.demo/media/system/js/core.js
It is the same error on all buttons
in English administrator it is OK, There is no problem.
I don't know the Javascript
Kind regards
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 02 Aug 2014, 23:21
by Jan
Hi, thank you for the translation. Unfortunately I don't have any idea, if language files can somehow change the javascript - if e.g. some other javascript is loaded and such then breaks the javascript.
I will try to install the language and will try to debug it
Jan
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 03 Aug 2014, 13:48
by Jan
Hi,
hmm, tested now, I thought there can be some string with e.g. apostrophe which can break the javascript but didn't find anything, for me everything is OK with the french language, see image:
Jan
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 04 Aug 2014, 11:03
by vezid
HI,
In localhost with Joomla demo
In Front End I create a message with an unidentified user profile (public)
In Backend I change the same message with a profile Superuser
With SuperUser/ back end languageEnglish/PhocaguestBook/Posts/
Buttons (Save, Save & Close, Save & News, Close) are OK
With SuperUser/ back end languageFrench/PhocaguestBook/Posts/
Buttons (Save, Save & Close, Save & News, Close) are not operationals,
With Firebug here is the error in French administator
TypeError: b is null
...ElementById("adminForm"));"undefined"!==typeof a&&(b.task.value=a);if("function"...
core.js (ligne 4, col. 202)
http://localj315.demo/media/system/js/core.js
Kings regards
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 06 Aug 2014, 20:54
by Jan
Hi, I found it, thank you for the info, seems like there were some changes in Joomla! escape function so I will change the code in next version - it is apostrophe problem.
Thank you for the info.
Jan
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 11 Aug 2014, 09:32
by vezid
Hi,
Glad you find the solution.
Can you give me the correction to be applied prior to the release of the new version or else when you publish the new version ?
Thank you
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 11 Aug 2014, 21:54
by Jan
Javascript alerts in the code should be changed:
FROM:
Code: Select all
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
TO:
Code: Select all
alert('<?php echo JText::_('JGLOBAL_VALIDATION_FORM_FAILED', true);?>');
Jan
Re: Bug Pgb Posts in French backend, ok English backend
Posted: 12 Aug 2014, 09:53
by vezid
Hi,
I searched the file containing
Code: Select all
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
I modified the file \administrator\components\com_phocaguestbook\views\phocaguestbook\tmpl\edit.php
as mentioned previously
Is this the right file?
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 operationals,
With Firebug here is the error in French administator
TypeError: b is null
...ElementById("adminForm"));"undefined"!==typeof a&&(b.task.value=a);if("function"...
I looked at the files view Cedric Klein Template Creator
It uses the original instruction
Code: Select all
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
Unresolved bug
Good luck
Kings regards