Revision c83e29ac
Added by Lukas Zapletal about 10 years ago
app/assets/javascripts/i18n.js | ||
---|---|---|
// Add normal gettext aliases with gettext_i18n_rails_js to enable extraction
|
||
// when SETTINGS[:mark_translated] is enabled, wrap all strings
|
||
if (typeof(I18N_MARK) != 'undefined' && I18N_MARK) {
|
||
window.__ = function() { return 'X' + i18n.gettext.apply(i18n, arguments) + 'X' };
|
||
window.n__ = function() { return 'X' + i18n.ngettext.apply(i18n, arguments) + 'X' };
|
||
window.__ = function() { return '\u00BB' + i18n.gettext.apply(i18n, arguments) + '\u00AB' };
|
||
window.n__ = function() { return '\u00BB' + i18n.ngettext.apply(i18n, arguments) + '\u00AB' };
|
||
}
|
||
});
|
Also available in: Unified diff
fixes #1966 - improved UI errors for proxy