id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release 10994,[PATCH] Better than separated messages for translations,Jun Omae,Dirk Stöcker,"The following code in `templates/editor-data.js` separates messages for translation. {{{ var text_modified = '${_(""Modified: "")}'; var text_defaults = '${_("" | Defaults: "")}'; var text_optionscount = '${_("" | Options count: "")}'; }}} It would be better to be the following instead. {{{ var info_format = '${javascript_quote(_(""Modified: %(mod)d | Defaults: %(def)d | Options count: %(opt)d""))}'; }}} In addition, should use `javascript_quote`. {{{ #!diff - s['${option_name}'] = '${option.stored_value.replace('\\\\', '\\\\\\\\').replace(""'"", ""\\\\'"")}'; + s['${javascript_quote(option_name)}'] = '${javascript_quote(option.stored_value)}'; }}} Full patch: [attachment:traciniadminpanel-better-i18n-r12844.diff]",defect,closed,normal,TracIniAdminPanelPlugin,normal,fixed,,,1.0