]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/conify/global/admin.js
add translation support to the, um, translation widget; add example es-us translation
[Evergreen.git] / Open-ILS / web / conify / global / admin.js
1 var djConfig = { parseOnLoad : true };
2
3 if (location.href.match(/^.*conify\/(.+)\/global.*$/, "$1")) {
4         var _url_locale = location.href.replace(/^.*conify\/(.+)\/global.*$/, "$1").toLowerCase().replace(/_/,'-','g');
5
6         if (_url_locale) djConfig.locale = _url_locale;
7
8 } else {
9         var _url_locale = '<!--#echo var="locale"-->';
10         if (_url_locale != '(none)') djConfig.locale = _url_locale;
11 }