KEYCLOAK-2240

Internationalize admin console title
This commit is contained in:
Stian Thorgersen 2015-12-21 13:16:44 +01:00
parent 18268f686c
commit 39904548eb
3 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Keycloak Admin Console</title> <title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="${resourceUrl}/img/favicon.ico"> <link rel="shortcut icon" href="${resourceUrl}/img/favicon.ico">
<#if properties.styles?has_content> <#if properties.styles?has_content>

View file

@ -1,3 +1,5 @@
consoleTitle=Keycloak Admin Console
# Common messages # Common messages
enabled=Enabled enabled=Enabled
name=Name name=Name

View file

@ -61,7 +61,11 @@ angular.element(document).ready(function () {
module.factory('Auth', function() { module.factory('Auth', function() {
return auth; return auth;
}); });
angular.bootstrap(document, ["keycloak"]); var injector = angular.bootstrap(document, ["keycloak"]);
injector.get('$translate')('consoleTitle').then(function(consoleTitle) {
document.title=consoleTitle;
});
}, function() { }, function() {
window.location.reload(); window.location.reload();
}); });