diff --git a/awx/api/serializers.py b/awx/api/serializers.py
index b59d182496..6490180632 100644
--- a/awx/api/serializers.py
+++ b/awx/api/serializers.py
@@ -299,10 +299,11 @@ class BaseSerializer(serializers.ModelSerializer):
'system_job': _('Management Job'),
'workflow_job': _('Workflow Job'),
'workflow_job_template': _('Workflow Template'),
+ 'job_template': _('Job Template')
}
choices = []
for t in self.get_types():
- name = type_name_map.get(t, force_text(get_model_for_type(t)._meta.verbose_name).title())
+ name = _(type_name_map.get(t, force_text(get_model_for_type(t)._meta.verbose_name).title()))
choices.append((t, name))
return choices
diff --git a/awx/ui/client/features/output/host-event/host-event-modal.partial.html b/awx/ui/client/features/output/host-event/host-event-modal.partial.html
index 47676df842..3dcc12eb6e 100644
--- a/awx/ui/client/features/output/host-event/host-event-modal.partial.html
+++ b/awx/ui/client/features/output/host-event/host-event-modal.partial.html
@@ -16,23 +16,23 @@
- CREATED
+ {{strings.get('host_event_modal.CREATED')}}
{{(event.created | longDate) || "No result found"}}
- ID
+ {{strings.get('host_event_modal.ID')}}
{{event.id || "No result found"}}
- PLAY
+ {{strings.get('host_event_modal.PLAY')}}
{{event.play || "No result found"}}
- TASK
+ {{strings.get('host_event_modal.TASK')}}
{{event.task || "No result found"}}
- MODULE
+ {{strings.get('host_event_modal.MODULE')}}
{{module_name}}
@@ -48,12 +48,12 @@
@@ -64,7 +64,7 @@
-
+
diff --git a/awx/ui/client/features/output/host-event/host-event.controller.js b/awx/ui/client/features/output/host-event/host-event.controller.js
index 280bf51818..9f199fcd34 100644
--- a/awx/ui/client/features/output/host-event/host-event.controller.js
+++ b/awx/ui/client/features/output/host-event/host-event.controller.js
@@ -2,14 +2,15 @@ function HostEventsController (
$scope,
$state,
HostEventService,
- hostEvent
+ hostEvent,
+ OutputStrings
) {
$scope.processEventStatus = HostEventService.processEventStatus;
$scope.processResults = processResults;
$scope.isActiveState = isActiveState;
$scope.getActiveHostIndex = getActiveHostIndex;
$scope.closeHostEvent = closeHostEvent;
-
+ $scope.strings = OutputStrings;
function init () {
hostEvent.event_name = hostEvent.event;
$scope.event = _.cloneDeep(hostEvent);
@@ -165,6 +166,7 @@ HostEventsController.$inject = [
'$state',
'HostEventService',
'hostEvent',
+ 'OutputStrings'
];
module.exports = HostEventsController;
diff --git a/awx/ui/client/features/output/output.strings.js b/awx/ui/client/features/output/output.strings.js
index a3fb2458e3..ec22a76d7c 100644
--- a/awx/ui/client/features/output/output.strings.js
+++ b/awx/ui/client/features/output/output.strings.js
@@ -87,11 +87,25 @@ function OutputStrings (BaseString) {
ns.stats = {
ELAPSED: t.s('Elapsed'),
+ PLAYS: t.s('Plays'),
+ TASKS: t.s('Tasks'),
+ HOSTS: t.s('Hosts')
};
ns.stdout = {
BACK_TO_TOP: t.s('Back to Top'),
};
+
+ ns.host_event_modal = {
+ CREATED: t.s('CREATED'),
+ ID: t.s('ID'),
+ PLAY: t.s('PLAY'),
+ TASK: t.s('TASK'),
+ MODULE: t.s('MODULE'),
+ NO_RESULT_FOUND: t.s('No result found'),
+ STANDARD_OUT: t.s('Standard Out'),
+ STANDARD_ERROR: t.s('Standard Error')
+ };
}
OutputStrings.$inject = ['BaseStringService'];
diff --git a/awx/ui/client/features/output/stats.partial.html b/awx/ui/client/features/output/stats.partial.html
index 151ae1d23b..c43992eed8 100644
--- a/awx/ui/client/features/output/stats.partial.html
+++ b/awx/ui/client/features/output/stats.partial.html
@@ -8,7 +8,7 @@
...
{{ vm.tasks }}
- hosts
+ {{:: vm.strings.get('stats.HOSTS')}}
...
{{ vm.hosts }}
diff --git a/awx/ui/client/features/templates/templates.strings.js b/awx/ui/client/features/templates/templates.strings.js
index a0fef3aaff..946fe71fcf 100644
--- a/awx/ui/client/features/templates/templates.strings.js
+++ b/awx/ui/client/features/templates/templates.strings.js
@@ -23,6 +23,7 @@ function TemplatesStrings (BaseString) {
ns.prompt = {
INVENTORY: t.s('Inventory'),
CREDENTIAL: t.s('Credential'),
+ PROMPT: t.s('PROMPT'),
OTHER_PROMPTS: t.s('Other Prompts'),
SURVEY: t.s('Survey'),
PREVIEW: t.s('Preview'),
@@ -96,6 +97,31 @@ function TemplatesStrings (BaseString) {
INVALID_JOB_TEMPLATE: t.s('This Job Template is missing a default inventory or project. This must be addressed in the Job Template form before this node can be saved.'),
CREDENTIAL_WITH_PASS: t.s('This Job Template has a credential that requires a password. Credentials requiring passwords on launch are not permitted on workflow nodes.')
};
+
+ ns.workflow_maker = {
+ DELETE_NODE_PROMPT_TEXT: t.s('Are you sure you want to delete this workflow node?'),
+ KEY: t.s('KEY'),
+ ON_SUCCESS: t.s('On Success'),
+ ON_FAILURE: t.s('On Failure'),
+ ALWAYS: t.s('Always'),
+ PROJECT_SYNC: t.s('Project Sync'),
+ INVENTORY_SYNC: t.s('Inventory Sync'),
+ WARNING: t.s('Warning'),
+ TOTAL_TEMPLATES: t.s('TOTAL TEMPLATES'),
+ ADD_A_TEMPLATE: t.s('ADD A TEMPLATE'),
+ EDIT_TEMPLATE: t.s('EDIT TEMPLATE'),
+ JOBS: t.s('JOBS'),
+ PLEASE_CLICK_THE_START_BUTTON: t.s('Please click the start button to build your workflow.'),
+ PLEASE_HOVER_OVER_A_TEMPLATE: t.s('Please hover over a template for additional options.'),
+ RUN: t.s('RUN'),
+ CHECK: t.s('CHECK'),
+ SELECT: t.s('SELECT'),
+ EDGE_CONFLICT: t.s('EDGE CONFLICT'),
+ DELETED: t.s('DELETED'),
+ START: t.s('START'),
+ DETAILS: t.s('DETAILS')
+ }
+
}
TemplatesStrings.$inject = ['BaseStringService'];
diff --git a/awx/ui/client/lib/components/components.strings.js b/awx/ui/client/lib/components/components.strings.js
index a56ea9854d..00102becff 100644
--- a/awx/ui/client/lib/components/components.strings.js
+++ b/awx/ui/client/lib/components/components.strings.js
@@ -68,7 +68,7 @@ function ComponentsStrings (BaseString) {
DASHBOARD: t.s('Dashboard'),
JOBS: t.s('Jobs'),
SCHEDULES: t.s('Schedules'),
- PORTAL_MODE: t.s('Portal Mode'),
+ MY_VIEW: t.s('My View'),
PROJECTS: t.s('Projects'),
CREDENTIALS: t.s('Credentials'),
CREDENTIAL_TYPES: t.s('Credential Types'),
diff --git a/awx/ui/client/lib/components/layout/layout.partial.html b/awx/ui/client/lib/components/layout/layout.partial.html
index df8c5d5843..bf4b78097c 100644
--- a/awx/ui/client/lib/components/layout/layout.partial.html
+++ b/awx/ui/client/lib/components/layout/layout.partial.html
@@ -42,7 +42,7 @@
-
+