Modify ↓
Opened 12 years ago
Closed 12 years ago
#10994 closed defect (fixed)
[PATCH] Better than separated messages for translations
Reported by: | Jun Omae | Owned by: | Dirk Stöcker |
---|---|---|---|
Priority: | normal | Component: | TracIniAdminPanelPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
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
.
- s['${option_name}'] = '${option.stored_value.replace('\\\\', '\\\\\\\\').replace("'", "\\\\'")}'; + s['${javascript_quote(option_name)}'] = '${javascript_quote(option.stored_value)}';
Full patch: traciniadminpanel-better-i18n-r12844.diff
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | traciniadminpanel-better-i18n-r12844.diff added |
---|
comment:1 Changed 12 years ago by
Trac Release: | 0.12 → 1.0 |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The help in the following should be not separated to three messages.
inieditorpanel/templates/admin_tracini.html
>