Changeset 694
- Timestamp:
- 12/09/2011 12:06:29 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/WordPress/plugin/transposh/js/transposh.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/js/transposh.js
r693 r694 20 20 var 21 21 // this is the size of strings to queue, we don't want too much there 22 BATCH_SIZE = 512,22 BATCH_SIZE = 1024, 23 23 // number of phrases that might be translated 24 24 possibly_translateable, … … 301 301 if (auto_translated_phrases[to_trans] !== 1) { 302 302 auto_translated_phrases[to_trans] = 1; 303 if (batchlength + to_trans.length > BATCH_SIZE) {303 if (batchlength + encodeURIComponent(to_trans).length > BATCH_SIZE) { 304 304 do_mass_invoke(batchtokens, batchtrans); 305 305 batchlength = 0; … … 307 307 batchtokens = []; 308 308 } 309 batchlength += to_trans.length;309 batchlength += encodeURIComponent(to_trans).length; 310 310 batchtokens.push(token); 311 311 batchtrans.push(to_trans);
Note: See TracChangeset
for help on using the changeset viewer.
