Internationalization for JS
This commit is contained in:
@@ -4,7 +4,7 @@ CMS.Models.Section = Backbone.Model.extend({
|
||||
},
|
||||
validate: function(attrs, options) {
|
||||
if (!attrs.name) {
|
||||
return "You must specify a name";
|
||||
return gettext("You must specify a name");
|
||||
}
|
||||
},
|
||||
url: "/save_item",
|
||||
@@ -25,7 +25,7 @@ CMS.Models.Section = Backbone.Model.extend({
|
||||
if(!this.msg) {
|
||||
this.msg = new CMS.Models.SystemFeedback({
|
||||
type: "saving",
|
||||
title: "Saving…"
|
||||
title: gettext("Saving…")
|
||||
});
|
||||
}
|
||||
if(!this.msgView) {
|
||||
|
||||
Reference in New Issue
Block a user