diff -r 3389e6c46936 -r 9b459e41e2df client/js/main.js --- a/client/js/main.js Tue Feb 26 11:09:57 2013 +0100 +++ b/client/js/main.js Tue Feb 26 17:04:24 2013 +0100 @@ -67,7 +67,7 @@ this.main_$ = Rkns.$('
') .addClass("Rk-Bin-Main") .appendTo(this.$) - .html('

' + _renkan.l10n.loading_bin + '

'); + .html('

' + _renkan.translate("Loading, please wait") + '

'); this.title_$.html(_opts.title || '(new bin)'); this.renkan.resizeBins(); @@ -112,7 +112,9 @@ this.language = _opts.language; this.static_url = _opts.static_url; this.read_only = _opts.read_only; - this.l10n = Rkns.i18n[_opts.language]; + this.translate = function(_text) { + return (Rkns.i18n[_opts.language] || Rkns.i18n[_opts.language.substr(0,2)] || {})[_text] || _text; + } if (typeof _opts.user_id !== "undefined") { this.current_user = _opts.user_id; }