[ 
https://issues.apache.org/jira/browse/VCL-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701468#comment-14701468
 ] 

Josh Thompson commented on VCL-888:
-----------------------------------

Having a function in javascript named i() isn't going to work since functions 
and variables are more closely related than in php. So, the translation 
function will need to have another name, which might as well be _(). However, 
that will require finding all the places in the php code that return javascript 
calling the translation function. :(

> Web UI fails to handle translations containing single quotes
> ------------------------------------------------------------
>
>                 Key: VCL-888
>                 URL: https://issues.apache.org/jira/browse/VCL-888
>             Project: VCL
>          Issue Type: Bug
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>             Fix For: 2.5
>
>
> There are parts of the code where a string is sent in single quotes as 
> javascript in response to an AJAX call. If the string is translated into 
> something that contains single quotes, javascript throws an error. The 
> translated string needs to have single quotes escaped.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to