diff --git a/awx/ui/client/src/projects/add/projects-add.controller.js b/awx/ui/client/src/projects/add/projects-add.controller.js index 544c4a72af..1891c92ff6 100644 --- a/awx/ui/client/src/projects/add/projects-add.controller.js +++ b/awx/ui/client/src/projects/add/projects-add.controller.js @@ -115,7 +115,7 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm', if ($scope.scm_type) { $scope.pathRequired = ($scope.scm_type.value === 'manual') ? true : false; $scope.scmRequired = ($scope.scm_type.value !== 'manual') ? true : false; - $scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? 'Revision #' : 'SCM Branch'; + $scope.scmBranchLabel = i18n._('SCM Branch'); // Dynamically update popover values if ($scope.scm_type.value) { if(($scope.lookupType === 'insights_credential' && $scope.scm_type.value !== 'insights') || ($scope.lookupType === 'scm_credential' && $scope.scm_type.value === 'insights')) { @@ -134,6 +134,7 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm', 'SSH. GIT read only protocol (git://) does not use username or password information.'), '', ''); $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('SCM Branch/Tag/Commit'); break; case 'svn': $scope.credentialLabel = "SCM Credential"; @@ -142,6 +143,7 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm', '
  • svn+ssh://servername.example.com/path
  • '; $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('Revision #'); break; case 'hg': $scope.credentialLabel = "SCM Credential"; @@ -153,6 +155,7 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm', 'If using Bitbucket and SSH, do not supply your Bitbucket username.'), '', ''); $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('SCM Branch/Tag/Revision'); break; case 'insights': $scope.pathRequired = false; diff --git a/awx/ui/client/src/projects/edit/projects-edit.controller.js b/awx/ui/client/src/projects/edit/projects-edit.controller.js index 283bbeabd3..1ba9315dcc 100644 --- a/awx/ui/client/src/projects/edit/projects-edit.controller.js +++ b/awx/ui/client/src/projects/edit/projects-edit.controller.js @@ -245,7 +245,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest', if ($scope.scm_type) { $scope.pathRequired = ($scope.scm_type.value === 'manual') ? true : false; $scope.scmRequired = ($scope.scm_type.value !== 'manual') ? true : false; - $scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? i18n._('Revision #') : i18n._('SCM Branch'); + $scope.scmBranchLabel = i18n._('SCM Branch'); // Dynamically update popover values if ($scope.scm_type.value) { @@ -263,6 +263,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest', 'SSH. GIT read only protocol (git://) does not use username or password information.'), '', ''); $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('SCM Branch/Tag/Commit'); break; case 'svn': $scope.credentialLabel = "SCM Credential"; @@ -271,6 +272,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest', '
  • svn+ssh://servername.example.com/path
  • '; $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('Revision #'); break; case 'hg': $scope.credentialLabel = "SCM Credential"; @@ -282,6 +284,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest', 'If using Bitbucket and SSH, do not supply your Bitbucket username.'), '', ''); $scope.credRequired = false; $scope.lookupType = 'scm_credential'; + $scope.scmBranchLabel = i18n._('SCM Branch/Tag/Revision'); break; case 'insights': $scope.pathRequired = false;