Multi-language support. English by default

This commit is contained in:
Gustavo Maximiliano Cortez 2014-09-05 16:56:47 -03:00
commit 302e75228d
8 changed files with 53 additions and 5 deletions

View file

@ -79,7 +79,8 @@ angular
$idleProvider.warningDuration(20); // in seconds
$keepaliveProvider.interval(2); // in seconds
})
.run(function($rootScope, $location, $idle) {
.run(function($rootScope, $location, $idle, gettextCatalog) {
gettextCatalog.currentLanguage = config.defaultLanguage;
$idle.watch();
$rootScope.$on('$routeChangeStart', function(event, next, current) {
if (!localStorage || localStorage.length < 1) {