From 0d5cc14acc90a065c5063f6ff7b79eabc1487032 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 7 Feb 2012 12:30:30 -0800 Subject: [PATCH] cloudstack 3.0 new UI - localization - add template action. --- client/WEB-INF/classes/resources/messages.properties | 11 ++++++++--- .../WEB-INF/classes/resources/messages_es.properties | 11 ++++++++--- .../WEB-INF/classes/resources/messages_ja.properties | 11 ++++++++--- .../classes/resources/messages_zh_CN.properties | 11 ++++++++--- ui/index.jsp | 9 +++++++++ ui/scripts/templates.js | 8 ++++---- 6 files changed, 45 insertions(+), 16 deletions(-) diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index aa7d2fe4841..7a7b5f65bc4 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -1,9 +1,13 @@ -#New - Add all new parameters here. +#cloudstack 3.0 (begin) ******************************************************************************************** +create.template.confirm=Please confirm that you want to create a template +create.template.success=New template is being created +create.template.notification=Creating new template +create.template.complete=Template has been created successfully +#cloudstack 3.0 (end) ********************************************************************************************** - -#Labels +#cloudstack 2.2.Y (begin) ****************************************************************************************** label.action.migrate.router=Migrate Router label.action.migrate.router.processing=Migrating Router.... message.migrate.router.confirm=Please confirm the host you wish to migrate the router to: @@ -859,3 +863,4 @@ error.menu.select=Unable to perform action due to no items being selected. error.mgmt.server.inaccessible=The Management Server is unaccessible. Please try again later. error.session.expired=Your session has expired. error.unresolved.internet.name=Your internet name cannot be resolved. +#cloudstack 2.2.Y (end) ******************************************************************************************** \ No newline at end of file diff --git a/client/WEB-INF/classes/resources/messages_es.properties b/client/WEB-INF/classes/resources/messages_es.properties index 5c85b30b47e..226e6f3d8df 100644 --- a/client/WEB-INF/classes/resources/messages_es.properties +++ b/client/WEB-INF/classes/resources/messages_es.properties @@ -1,9 +1,13 @@ -#New - Add all new parameters here. +#cloudstack 3.0 (begin) ******************************************************************************************** +create.template.confirm = Por favor, confirme que desea crear una plantilla +create.template.success = Nueva plantilla se está creando +create.template.notification = Crear nueva plantilla +create.template.complete plantilla = se ha creado correctamente +#cloudstack 3.0 (end) ********************************************************************************************** - -#Labels +#cloudstack 2.2.Y (begin) ****************************************************************************************** label.action.migrate.router=migrar Router label.action.migrate.router.processing=Migración router .... message.migrate.router.confirm=Por favor, confirme el huésped que desea migrar el router: @@ -859,3 +863,4 @@ error.menu.select = No se puede realizar la acción debido a que no los artícul error.mgmt.server.inaccessible = El Servidor de Gestión es inaccesible. Por favor, inténtelo de nuevo más tarde. error.session.expired = Su sesión ha caducado. error.unresolved.internet.name = El nombre de Internet no se puede resolver. +#cloudstack 2.2.Y (end) ******************************************************************************************** \ No newline at end of file diff --git a/client/WEB-INF/classes/resources/messages_ja.properties b/client/WEB-INF/classes/resources/messages_ja.properties index 8dca7e00644..71dcc24d4b2 100644 --- a/client/WEB-INF/classes/resources/messages_ja.properties +++ b/client/WEB-INF/classes/resources/messages_ja.properties @@ -1,9 +1,13 @@ -#New - Add all new parameters here. +#cloudstack 3.0 (begin) ******************************************************************************************** +create.template.confirm=は、テンプレートを作成することを確認してください +create.template.success=新しいテンプレートが作成されている +create.template.notification=新しいテンプレートを作成する +create.template.complete=テンプレートは正常に作成された +#cloudstack 3.0 (end) ********************************************************************************************** - -#Labels +#cloudstack 2.2.Y (begin) ****************************************************************************************** label.action.migrate.router=ルータを移行する label.action.migrate.router.processing=ルータの移行.... message.migrate.router.confirm=あなたがするようにルータを移行したいホストを確認してください。 @@ -858,3 +862,4 @@ error.menu.select=アイテムが選択されていないためアクション error.mgmt.server.inaccessible=Management Serverにアクセスできません。後で、もう一度やり直してください error.session.expired=セッション有効期限が切れています error.unresolved.internet.name=名前解決に失敗しました +#cloudstack 2.2.Y (end) ******************************************************************************************** \ No newline at end of file diff --git a/client/WEB-INF/classes/resources/messages_zh_CN.properties b/client/WEB-INF/classes/resources/messages_zh_CN.properties index 8bfac32f54a..6c223d0c1c0 100644 --- a/client/WEB-INF/classes/resources/messages_zh_CN.properties +++ b/client/WEB-INF/classes/resources/messages_zh_CN.properties @@ -1,9 +1,13 @@ -#New - Add all new parameters here. +#cloudstack 3.0 (begin) ******************************************************************************************** +create.template.confirm=请确认您要创建一个模板 +create.template.success=正在创建新模板 +create.template.notification=创建新模板 +create.template.complete=模板已成功创建 +#cloudstack 3.0 (end) ********************************************************************************************** - -#Labels +#cloudstack 2.2.Y (begin) ****************************************************************************************** label.action.migrate.router=遷移路由器 label.action.migrate.router.processing=遷移路由器.... message.migrate.router.confirm=請確認要遷移路由器主機: @@ -858,3 +862,4 @@ error.menu.select=无法执行动作,因为没有选项被选中。 error.mgmt.server.inaccessible=管理服务器无法访问。请稍后再试。 error.session.expired=您的会话已过期。 error.unresolved.internet.name=您的网际网路名称无法得到解析。 +#cloudstack 2.2.Y (end) ******************************************************************************************** \ No newline at end of file diff --git a/ui/index.jsp b/ui/index.jsp index 99b73f66e07..0157f052bc6 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -1577,3 +1577,12 @@ --> + + \ No newline at end of file diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index ebf40bffc9f..78599461e35 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -31,16 +31,16 @@ messages: { confirm: function(args) { - return 'Are you sure you want to create a template?'; + return dictionary["create.template.confirm"]; }, success: function(args) { - return 'Your new template is being created.'; + return dictionary["create.template.success"]; }, notification: function(args) { - return 'Creating new template'; + return dictionary["create.template.notification"]; }, complete: function(args) { - return 'Template has been created successfully!'; + return dictionary["create.template.complete"]; } },