[phpldapadmin] [ phpldapadmin-Bugs-2958882 ] Single quote in french translation causes error

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #2958882, was opened at 2010-02-25 19:04
Message generated for change (Tracker Item Submitted) made by lordikc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2958882&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: gilles bernard (lordikc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Single quote in french translation causes error

Initial Comment:
Hello,

I face this problem using PLA in french:
TemplateRender.php:2000
		if (isAjaxEnabled())
			return sprintf('(<a href="cmd.php?%s" title="%s %s" onclick="return ajDISPLAY(\'ADDVALUE%s\',\'%s&amp;raw=1\',\'%s\');">%s</a>)',
				$href_parm,_('Add an additional value to attribute'),$attribute->getName(false),$attribute->getName(),
				$href_parm,_('Add Value to Attribute'),_('add value'));

French translation of "Add an additional value to attribute" is "Ajouter une valeur additionnelle à l'attribut" with a quote in the middle.
This results in a wrong JS code: 
Error : missing ) after argument list
Source File : http://msic-descartes/phpldapadmin/htdocs/cmd.php?server_id=1&redirect=true
Line : 1, Colone : 181
Code :
return ajDISPLAY('ADDVALUEroleoccupant','cmd=add_value_form&server_id=1&dn=cn%3DTest%2Cou%3DRole%2Cou%3Dcsd%2Cdc%3Deads%2Cdc%3Dcom&attr=roleOccupant&raw=1','Assigner une valeur à l'attribut');

Regards,

Lordikc

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2958882&group_id=61828

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.