Changeset 677


Ignore:
Timestamp:
11/26/2011 09:51:41 PM (6 months ago)
Author:
ofer
Message:

MS Translate wants " and \ escaped by \

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/js/transposh.js

    r674 r677  
    203203            var q = "["; 
    204204            $(batchtrans).each(function (i) { 
    205                 q += '"' + encodeURIComponent(batchtrans[i]) + '",'; 
     205                q += '"' + encodeURIComponent(batchtrans[i].replace(/[\\"]/g, '\\$&')) + '",'; 
    206206            }); 
    207207            q = q.slice(0, -1) + ']'; 
Note: See TracChangeset for help on using the changeset viewer.