Internationalization for JS

This commit is contained in:
David Baumgold
2013-05-16 09:55:55 -04:00
parent 9cbfee9894
commit a0a71c0df2
4 changed files with 19 additions and 10 deletions

View File

@@ -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) {