diff options
| author | Alex Jordan <alex@strugee.net> | 2017-01-16 15:44:59 -0500 |
|---|---|---|
| committer | Alex Jordan <alex@strugee.net> | 2017-01-16 15:44:59 -0500 |
| commit | aa3f32b03b07897967b07b04cac5739fdd7d11fa (patch) | |
| tree | 3cbc7c10f252bfc98c31f9734da6785c35b83812 | |
| parent | 96d89cb2d526c81a6e7e38ac90faa0844b5cdbad (diff) | |
| download | php-xmpp-invitation-aa3f32b03b07897967b07b04cac5739fdd7d11fa.tar.gz | |
Make the i18n stuff actually work
They were kinda crashing the webpage before...
| -rw-r--r-- | scripts/main.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/main.js b/scripts/main.js index afcda7b..242cd54 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -82,14 +82,13 @@ // load i18n and perform translation i18n = new I18nText({path: 'lang'}); - i18n.once(I18nText.EVT_LOCALE_CHANGE, function (data) { - translate_ui(); + i18n.once(I18nText.event.LOCALE_CHANGE, function (data) { + rehash(); }); i18n.setLocale('en'); // functionality load_clients(); - rehash(); window.addEventListener("hashchange", rehash, false); } |
