mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Localize "an error occurred" in r.ui.Form.
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user