multi language support

This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-24 02:45:10 -03:00
parent 48cdac80fb
commit a8aebfe14a
3 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ angular.module('insight',[
'ui.bootstrap', 'ui.bootstrap',
'ui.route', 'ui.route',
'monospaced.qrcode', 'monospaced.qrcode',
'gettext',
'insight.system', 'insight.system',
'insight.socket', 'insight.socket',
'insight.blocks', 'insight.blocks',

View File

@ -47,7 +47,8 @@ angular.module('insight')
$locationProvider.html5Mode(true); $locationProvider.html5Mode(true);
$locationProvider.hashPrefix('!'); $locationProvider.hashPrefix('!');
}) })
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress) { .run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress, gettextCatalog) {
gettextCatalog.currentLanguage = 'en';
$rootScope.$on('$routeChangeStart', function() { $rootScope.$on('$routeChangeStart', function() {
ngProgress.start(); ngProgress.start();
}); });

View File

@ -0,0 +1,4 @@
angular.module('insight').run(['gettextCatalog', function (gettextCatalog) {
/* jshint -W100 */
/* jshint +W100 */
}]);