From e723e85bbdacc49f85804db6162a236c90c98cf6 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Thu, 29 Jun 2017 15:20:37 -0400 Subject: [PATCH] Marked strings for translation in the inventories-hosts directory --- .../src/inventories-hosts/hosts/host.list.js | 14 +- .../hosts/hosts.partial.html | 10 +- .../groups/hosts-related-groups.list.js | 116 +++++---- .../groups/hosts-related-groups.partial.html | 8 +- .../adhoc/adhoc-credential.route.js | 4 +- .../inventories/adhoc/adhoc.form.js | 35 ++- .../host-summary-popover.directive.js | 12 +- .../list/inventory-list.controller.js | 24 +- .../source-summary-popover.directive.js | 12 +- .../completed-jobs/completed-jobs.list.js | 2 +- .../factories/get-hosts-status-msg.factory.js | 10 +- .../inventories/related/groups/groups.form.js | 10 +- .../inventories/related/groups/groups.list.js | 194 +++++++------- .../groups/list/groups-list.partial.html | 28 +- ...up-nested-groups-disassociate.partial.html | 8 +- .../nested-groups/group-nested-groups.form.js | 10 +- .../nested-groups/group-nested-groups.list.js | 215 ++++++++------- .../group-nested-groups.route.js | 3 +- ...oup-nested-hosts-disassociate.partial.html | 8 +- .../nested-hosts/group-nested-hosts.form.js | 1 - .../nested-hosts/group-nested-hosts.list.js | 30 +-- .../hosts/list/host-list.controller.js | 6 +- .../relatedGroupsLabelsList.directive.js | 5 +- .../relatedGroupsLabelsList.partial.html | 4 +- .../related/hosts/related-host.form.js | 2 - .../related/hosts/related-host.list.js | 35 +-- ...st-nested-groups-disassociate.partial.html | 8 +- .../nested-groups/host-nested-groups.list.js | 191 +++++++------- .../nested-groups/host-nested-groups.route.js | 3 +- .../factories/get-sync-status-msg.factory.js | 26 +- .../sources/list/sources-list.controller.js | 10 +- .../sources/list/sources-list.partial.html | 30 +-- .../related/sources/sources.form.js | 67 +++-- .../related/sources/sources.list.js | 245 +++++++++--------- .../host-filter-modal.partial.html | 6 +- .../smart-inventory/smart-inventory.form.js | 2 +- .../ansible-facts/ansible-facts.partial.html | 2 +- .../associate-groups.partial.html | 6 +- .../associate-hosts.partial.html | 6 +- .../factories/set-enabled-msg.factory.js | 9 +- .../shared/factories/set-status.factory.js | 21 +- 41 files changed, 707 insertions(+), 731 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/hosts/host.list.js b/awx/ui/client/src/inventories-hosts/hosts/host.list.js index 865d3eb108..747294c31c 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/host.list.js +++ b/awx/ui/client/src/inventories-hosts/hosts/host.list.js @@ -79,17 +79,15 @@ export default ['i18n', function(i18n) { columnClass: 'col-lg-6 col-md-4 col-sm-4 col-xs-5 text-right', edit: { - //label: 'Edit', ngClick: "editHost(host.id)", icon: 'icon-edit', - awToolTip: 'Edit host', + awToolTip: i18n._('Edit host'), dataPlacement: 'top', ngShow: 'host.summary_fields.user_capabilities.edit' }, view: { - //label: 'Edit', ngClick: "editHost(host.id)", - awToolTip: 'View host', + awToolTip: i18n._('View host'), dataPlacement: 'top', ngShow: '!host.summary_fields.user_capabilities.edit' } @@ -98,18 +96,18 @@ export default ['i18n', function(i18n) { actions: { refresh: { mode: 'all', - awToolTip: "Refresh the page", + awToolTip: i18n._("Refresh the page"), ngClick: "refreshGroups()", ngShow: "socketStatus == 'error'", actionClass: 'btn List-buttonDefault', - buttonContent: 'REFRESH' + buttonContent: i18n._('REFRESH') }, smart_inventory: { mode: 'all', ngClick: "smartInventory()", - awToolTip: "Create a new Smart Inventory from search results.", + awToolTip: i18n._("Create a new Smart Inventory from search results."), actionClass: 'btn List-buttonDefault', - buttonContent: 'SMART INVENTORY', + buttonContent: i18n._('SMART INVENTORY'), ngShow: 'canAdd && (hosts.length > 0 || !(searchTags | isEmpty))', dataPlacement: "top", ngDisabled: '!enableSmartInventoryButton' diff --git a/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html b/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html index 1f11db98bb..cedb83b6bd 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html +++ b/awx/ui/client/src/inventories-hosts/hosts/hosts.partial.html @@ -33,9 +33,9 @@
-
No records matched your search.
+
No records matched your search.
-
PLEASE ADD ITEMS TO THIS LIST
+
PLEASE ADD ITEMS TO THIS LIST
@@ -44,15 +44,15 @@ - +
ActionsActions
- - + +
diff --git a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.list.js b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.list.js index 103eeca93f..cbfc11a083 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.list.js +++ b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.list.js @@ -4,66 +4,68 @@ * All Rights Reserved *************************************************/ -export default { - name: 'groups', - iterator: 'group', - editTitle: '{{ host.name }}', - well: true, - wellOverride: true, - index: false, - hover: true, - trackBy: 'group.id', - basePath: 'api/v2/hosts/{{$stateParams.host_id}}/groups/', +export default ['i18n', function(i18n) { + return { + name: 'groups', + iterator: 'group', + editTitle: '{{ host.name }}', + well: true, + wellOverride: true, + index: false, + hover: true, + trackBy: 'group.id', + basePath: 'api/v2/hosts/{{$stateParams.host_id}}/groups/', - fields: { - failed_hosts: { - label: '', - nosort: true, - mode: 'all', - iconOnly: true, - awToolTip: "{{ group.hosts_status_tip }}", - dataPlacement: "top", - icon: "{{ 'fa icon-job-' + group.hosts_status_class }}", - columnClass: 'status-column List-staticColumn--smallStatus' + fields: { + failed_hosts: { + label: '', + nosort: true, + mode: 'all', + iconOnly: true, + awToolTip: "{{ group.hosts_status_tip }}", + dataPlacement: "top", + icon: "{{ 'fa icon-job-' + group.hosts_status_class }}", + columnClass: 'status-column List-staticColumn--smallStatus' + }, + name: { + label: i18n._('Groups'), + key: true, + ngClick: "editGroup(group.id)", + columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6', + class: 'InventoryManage-breakWord', + } }, - name: { - label: 'Groups', - key: true, - ngClick: "editGroup(group.id)", - columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6', - class: 'InventoryManage-breakWord', - } - }, - actions: { - refresh: { - mode: 'all', - awToolTip: "Refresh the page", - ngClick: "refreshGroups()", - ngShow: "socketStatus == 'error'", - actionClass: 'btn List-buttonDefault', - buttonContent: 'REFRESH' + actions: { + refresh: { + mode: 'all', + awToolTip: i18n._("Refresh the page"), + ngClick: "refreshGroups()", + ngShow: "socketStatus == 'error'", + actionClass: 'btn List-buttonDefault', + buttonContent: i18n._('REFRESH') + }, + associate: { + mode: 'all', + ngClick: "associateGroup()", + awToolTip: i18n._("Associate this host with a new group"), + actionClass: 'btn List-buttonSubmit', + buttonContent: '+ ' + i18n._('ASSOCIATE GROUP'), + ngShow: 'canAdd', + dataPlacement: "top", + } }, - associate: { - mode: 'all', - ngClick: "associateGroup()", - awToolTip: "Associate this host with a new group", - actionClass: 'btn List-buttonSubmit', - buttonContent: '+ ASSOCIATE GROUP', - ngShow: 'canAdd', - dataPlacement: "top", - } - }, - fieldActions: { - columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6 text-right', - "delete": { - //label: 'Delete', - mode: 'all', - ngClick: "disassociateHost(group)", - awToolTip: 'Disassociate host', - dataPlacement: "top", - ngShow: "group.summary_fields.user_capabilities.delete" + fieldActions: { + columnClass: 'col-lg-6 col-md-6 col-sm-6 col-xs-6 text-right', + "delete": { + //label: 'Delete', + mode: 'all', + ngClick: "disassociateHost(group)", + awToolTip: i18n._('Disassociate host'), + dataPlacement: "top", + ngShow: "group.summary_fields.user_capabilities.delete" + } } - } -}; + }; +}]; diff --git a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.partial.html b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.partial.html index 35d250f4c2..d24e119967 100644 --- a/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.partial.html +++ b/awx/ui/client/src/inventories-hosts/hosts/related/groups/hosts-related-groups.partial.html @@ -3,7 +3,7 @@