GUAC-1120: Fix incorrect translation string names.

This commit is contained in:
Michael Jumper
2015-03-12 16:00:03 -07:00
parent 9da1026241
commit 91dfa04a52

View File

@@ -59,7 +59,7 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
* showStatus which closes the currently-shown status dialog. * showStatus which closes the currently-shown status dialog.
*/ */
var ACKNOWLEDGE_ACTION = { var ACKNOWLEDGE_ACTION = {
name : "HOME.ACTION_ACKNOWLEDGE", name : "USER_MENU.ACTION_ACKNOWLEDGE",
// Handle action // Handle action
callback : function acknowledgeCallback() { callback : function acknowledgeCallback() {
$scope.showStatus(false); $scope.showStatus(false);
@@ -236,8 +236,8 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
if ($scope.newPasswordMatch !== $scope.newPassword) { if ($scope.newPasswordMatch !== $scope.newPassword) {
$scope.showStatus({ $scope.showStatus({
className : 'error', className : 'error',
title : 'HOME.DIALOG_HEADER_ERROR', title : 'USER_MENU.DIALOG_HEADER_ERROR',
text : 'HOME.ERROR_PASSWORD_MISMATCH', text : 'USER_MENU.ERROR_PASSWORD_MISMATCH',
actions : [ ACKNOWLEDGE_ACTION ] actions : [ ACKNOWLEDGE_ACTION ]
}); });
return; return;
@@ -247,8 +247,8 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
if (!$scope.newPassword) { if (!$scope.newPassword) {
$scope.showStatus({ $scope.showStatus({
className : 'error', className : 'error',
title : 'HOME.DIALOG_HEADER_ERROR', title : 'USER_MENU.DIALOG_HEADER_ERROR',
text : 'HOME.ERROR_PASSWORD_BLANK', text : 'USER_MENU.ERROR_PASSWORD_BLANK',
actions : [ ACKNOWLEDGE_ACTION ] actions : [ ACKNOWLEDGE_ACTION ]
}); });
return; return;
@@ -263,7 +263,7 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
// Indicate that the password has been changed // Indicate that the password has been changed
$scope.showStatus({ $scope.showStatus({
text : 'HOME.PASSWORD_CHANGED', text : 'USER_MENU.PASSWORD_CHANGED',
actions : [ ACKNOWLEDGE_ACTION ] actions : [ ACKNOWLEDGE_ACTION ]
}); });
}) })
@@ -272,7 +272,7 @@ angular.module('userMenu').directive('guacUserMenu', [function guacUserMenu() {
.error(function passwordUpdateFailed(error) { .error(function passwordUpdateFailed(error) {
$scope.showStatus({ $scope.showStatus({
className : 'error', className : 'error',
title : 'HOME.DIALOG_HEADER_ERROR', title : 'USER_MENU.DIALOG_HEADER_ERROR',
'text' : error.message, 'text' : error.message,
actions : [ ACKNOWLEDGE_ACTION ] actions : [ ACKNOWLEDGE_ACTION ]
}); });