text: 
  var globalRoutes = 	[
  	'$routeProvider',
  	'$translateProvider',
  	function ($routeProvider, $translateProvider, $scope, $http) {
  
  		for( lang_count = 0; lang_count < available_languages.length; lang_count++) {
  			if( available_languages[lang_count].active ) {
  				$translateProvider.translations(
  					available_languages[lang_count].short_code ,
  					available_languages[lang_count].translations
  				);
  			}
  		}
  
  		$translateProvider.useSanitizeValueStrategy('sanitize');
  
  		preferred_language = "en-US";
  		if( localStorage && localStorage["tmp.preferred_language"] ) {
  			preferred_language = localStorage["tmp.preferred_language"];
  		} else {
  			localStorage["tmp.preferred_language"] = "en-US";
  		}
  		$translateProvider.preferredLanguage(preferred_language);
  
  		$routeProvider
  
  		// route for the home/welcome page
  		.when('/', {
  			templateUrl : 'pages/welcome.html',
  			controller  : 'welcomeController'
  		})
  
  		// route for the credits page
  		.when('/credits', {
  			templateUrl : 'pages/credits.html',
  			controller  : 'creditsController'
  		})
  
  
  		// route for the credits page
  		.when('/settings', {
  			templateUrl : 'pages/settings.html',
  			controller  : 'settingsController'
  		})
  
  		// Manage Players
  		.when('/players-manage', {
  			templateUrl : 'pages/players-manage.html',
  			controller  : 'controllerPlayersManage'
  		})
  
  		// Manage Players
  		.when('/players-deleted', {
  			templateUrl : 'pages/players-deleted.html',
  			controller  : 'controllerPlayersManage'
  		})
  
  		// Manage Tournaments
  		.when('/tournaments-manage', {
  			templateUrl : 'pages/tournaments-manage.html',
  			controller  : 'controllerTourmamentsManage'
  		})
  
  		// Run Tournaments
  		.when('/tournaments-run', {
  			templateUrl : 'pages/tournaments-run.html',
  			controller  : 'controllerTourmamentsRun'
  		})
  
  		;
  	}
  ];
  