diff --git a/resources/static/shared/gettext.js b/resources/static/shared/gettext.js index 411c168ff5c24ca49b01e8e41b7f616d79851931..eebbc703d4980b7933913cf459b9e685f865001b 100644 --- a/resources/static/shared/gettext.js +++ b/resources/static/shared/gettext.js @@ -5,7 +5,13 @@ function Gettext(params) { return { gettext: function (msgid) { - return msgid; + if (json_locale_data && json_locale_data["client"]) { + var dict = json_locale_data["client"]; + if (dict[msgid]) { + return dict[msgid]; + } + } + return msgid; }, strargs: function (fmt, args) { return fmt;