Add translation to user management page
Updated TableToolbar component to handle label translation
outside of the component which is more consistent with bootstrap
table component patterns.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: Ic2e75e327f6a6067905c541f9a3ea55c5d103f4b
diff --git a/src/locales/en.json b/src/locales/en.json
index c94e194..44a57ba 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -14,6 +14,8 @@
},
"form": {
"fieldRequired": "Field required",
+ "invalidFormat": "Invalid format",
+ "lengthMustBeBetween": "Length must be between %{min} – %{max} characters",
"mustBeAtLeast": "Must be at least %{value}",
"selectAnOption": "Select an option",
"valueMustBeBetween": "Value must be between %{min} – %{max}"
@@ -53,13 +55,43 @@
},
"pageLocalUserManagement": {
"accountPolicySettings": "Account policy settings",
+ "addUser": "Add user",
+ "deleteUser": "Delete user",
+ "editUser": "Edit user",
+ "viewPrivilegeRoleDescriptions": "View privilege role descriptions",
"modal": {
+ "accountStatus": "Account status",
"automaticAfterTimeout": "Automatic after timeout",
+ "cannotStartWithANumber": "Cannot start with a number",
+ "confirmUserPassword": "Confirm user password",
+ "deleteConfirmMessage": "Are you sure you want to delete user '%{user}'? This action cannot be undone.",
"manual": "Manual",
"maxFailedLoginAttempts": "Max failed login attempts",
+ "noSpecialCharactersExceptUnderscore": "No special characters except underscore",
+ "passwordMustBeBetween": "Password must be between %{min} – %{max} characters",
+ "passwordsDoNotMatch": "Passwords do not match",
+ "privilege": "Privilege",
"timeoutDurationSeconds": "Timeout duration (seconds)",
+ "username": "Username",
+ "userPassword": "User password",
"userUnlockMethod": "User unlock method"
},
+ "table": {
+ "privilege": "Privilege",
+ "status": "Status",
+ "username": "Username"
+ },
+ "tableRoles": {
+ "configureComponentsManagedByThisService": "Configure components managed by this service",
+ "configureManagerResources": "Configure manager resources",
+ "configureUsersAndTheirAccounts": "Configure users and their accounts",
+ "ipmiAccessPoint": "IPMI access point",
+ "logInToTheServiceAndReadResources": "Log in to the service and read resources",
+ "redfishAccessPoint": "Redfish access point",
+ "sshAccessPoint": "SSH access point",
+ "updatePasswordForCurrentUserAccount": "Update password for current user account",
+ "webUiAccessPoint": "WebUI access point"
+ },
"toast": {
"errorDeleteUsers": "Error deleting %{count} user. | Error deleting %{count} users.",
"errorDisableUsers": "Error disabling %{count} user. | Error disabling %{count} users.",