Localize "an error occurred" in r.ui.Form.

This commit is contained in:
Max Goodman
2012-08-16 16:43:52 -07:00
parent 5b4f1632cc
commit b4d90db3b0
2 changed files with 2 additions and 1 deletions

View File

@@ -188,6 +188,7 @@ Note: there are a couple of places outside of your subreddit where someone can c
go = _("go"),
view_subreddit_traffic = _("view subreddit traffic"),
an_error_occurred = _("an error occurred"),
)
class StringHandler(object):

View File

@@ -141,6 +141,6 @@ r.ui.Form.prototype = $.extend(new r.ui.Base(), {
},
_handleNetError: function(result, err, xhr) {
this.showStatus('an error occurred (' + xhr.status + ')', true)
this.showStatus(r.strings.an_error_occurred + ' (' + xhr.status + ')', true)
}
})