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
Bug Pgb Posts in French backend, ok English backend
-
- Phoca Member
- Posts: 11
- Joined: 29 Jul 2014, 11:56
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Bug Pgb Posts in French backend, ok English backend
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 29 Jul 2014, 11:56
Re: Bug Pgb Posts in French backend, ok English backend
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Bug Pgb Posts in French backend, ok English backend
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
I will try to install the language and will try to debug it
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Bug Pgb Posts in French backend, ok English backend
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 29 Jul 2014, 11:56
Re: Bug Pgb Posts in French backend, ok English backend
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Bug Pgb Posts in French backend, ok English backend
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
Thank you for the info.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 29 Jul 2014, 11:56
Re: Bug Pgb Posts in French backend, ok English backend
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Bug Pgb Posts in French backend, ok English backend
Javascript alerts in the code should be changed:
FROM:
TO:
Jan
FROM:
Code: Select all
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
Code: Select all
alert('<?php echo JText::_('JGLOBAL_VALIDATION_FORM_FAILED', true);?>');
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 11
- Joined: 29 Jul 2014, 11:56
Re: Bug Pgb Posts in French backend, ok English backend
Hi,
I searched the file containing
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
Unresolved bug
Good luck
Kings regards
I searched the file containing
Code: Select all
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
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'));?>');
Good luck
Kings regards