Skip to content

Commit

Permalink
Fixes #36884 - Make more strings translatable and extract strings for…
Browse files Browse the repository at this point in the history
… Katello 4.11
  • Loading branch information
ianballou committed Nov 8, 2023
1 parent a02cd42 commit 1ca7df7
Show file tree
Hide file tree
Showing 168 changed files with 26,616 additions and 22,503 deletions.
469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/bn/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/bn_IN/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ca/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/cs/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/cs_CZ/katello.js

Large diffs are not rendered by default.

505 changes: 260 additions & 245 deletions app/assets/javascripts/katello/locale/de/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/de_AT/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/de_DE/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/el/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/en/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/en_GB/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/en_US/katello.js

Large diffs are not rendered by default.

490 changes: 257 additions & 233 deletions app/assets/javascripts/katello/locale/es/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/et_EE/katello.js

Large diffs are not rendered by default.

536 changes: 268 additions & 268 deletions app/assets/javascripts/katello/locale/fr/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/gl/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/gu/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/he_IL/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/hi/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/id/katello.js

Large diffs are not rendered by default.

475 changes: 254 additions & 221 deletions app/assets/javascripts/katello/locale/it/katello.js

Large diffs are not rendered by default.

536 changes: 268 additions & 268 deletions app/assets/javascripts/katello/locale/ja/katello.js

Large diffs are not rendered by default.

492 changes: 261 additions & 231 deletions app/assets/javascripts/katello/locale/ka/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/kn/katello.js

Large diffs are not rendered by default.

477 changes: 255 additions & 222 deletions app/assets/javascripts/katello/locale/ko/katello.js

Large diffs are not rendered by default.

2,061 changes: 1,049 additions & 1,012 deletions app/assets/javascripts/katello/locale/locale/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ml_IN/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/mr/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/nl_NL/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/or/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/pa/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/pl/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/pl_PL/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/pt/katello.js

Large diffs are not rendered by default.

490 changes: 257 additions & 233 deletions app/assets/javascripts/katello/locale/pt_BR/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ro/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ro_RO/katello.js

Large diffs are not rendered by default.

477 changes: 255 additions & 222 deletions app/assets/javascripts/katello/locale/ru/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/sl/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/sv_SE/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ta/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/ta_IN/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/te/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/tr/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/vi/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/vi_VN/katello.js

Large diffs are not rendered by default.

469 changes: 254 additions & 215 deletions app/assets/javascripts/katello/locale/zh/katello.js

Large diffs are not rendered by default.

536 changes: 268 additions & 268 deletions app/assets/javascripts/katello/locale/zh_CN/katello.js

Large diffs are not rendered by default.

477 changes: 255 additions & 222 deletions app/assets/javascripts/katello/locale/zh_TW/katello.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ angular.module('Bastion.activation-keys').controller('ActivationKeysController',
};

var nutupane = new Nutupane(ActivationKey, params);

// Labels so breadcrumb strings can be translated
$scope.label = translate('Activation Keys');

$scope.controllerName = 'katello_activation_keys';
nutupane.primaryOnly = true;
$scope.table = nutupane.table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAddHostCollec
'id': $scope.$stateParams.activationKeyId
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Add Host Collections');

hostCollectionsPane = new Nutupane(ActivationKey, params, 'availableHostCollections');
$scope.controllerName = 'katello_host_collections';
$scope.table = hostCollectionsPane.table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAddSubscripti
'available_for': 'activation_key'
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Add Subscriptions');

$scope.contentNutupane = new Nutupane(Subscription, params);
$scope.controllerName = 'katello_subscriptions';
$scope.table = $scope.contentNutupane.table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAssociationsC
'disableAutoLoad': true
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Content Hosts');


contentHostsNutupane = new Nutupane(Host, params, undefined, nutupaneParams);
$scope.controllerName = 'hosts';
contentHostsNutupane.searchTransform = function (term) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,26 @@
*
* @description
* For copying a host collection.
*
* @requires translate
*
*/
function ActivationKeyCopyController($scope, ActivationKey, Notification) {
function ActivationKeyCopyController($scope, ActivationKey, Notification, translate) {
$scope.copy = function (newName) {
ActivationKey.copy({id: $scope.activationKey.id, 'new_name': newName}, function (response) {
$scope.transitionTo('activation-key.info', {activationKeyId: response.id});
}, function (response) {
Notification.setErrorMessage(response.data.displayMessage);
});
};
// Labels so breadcrumb strings can be translated
$scope.label = translate('Create Copy');
}

angular
.module('Bastion.activation-keys')
.controller('ActivationKeyCopyController', ActivationKeyCopyController);

ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey', 'Notification'];
ActivationKeyCopyController.$inject = ['$scope', 'ActivationKey', 'Notification', 'translate'];

})();
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyHostCollectio
'full_result': true
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('List Host Collections');

hostCollectionsPane = new Nutupane(ActivationKey, params, 'hostCollections');
$scope.controllerName = 'katello_host_collections';
$scope.table = hostCollectionsPane.table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyRepositorySet
function ($scope, translate, Nutupane, ActivationKey, RepositorySet, ContentOverrideHelper, Notification) {
var params, saveContentOverride, success, error;

// Labels so breadcrumb strings can be translated
$scope.label = translate('Repository Sets');

params = {
'activation_key_id': $scope.$stateParams.activationKeyId,
'content_access_mode_all': $scope.simpleContentAccessEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ angular.module('Bastion.activation-keys').controller('ActivationKeySubscriptions
'paged': true
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('List Subscriptions');

$scope.contentNutupane = new Nutupane(ActivationKey, params, "subscriptions");
$scope.controllerName = 'katello_subscriptions';
$scope.table = $scope.contentNutupane.table;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
* @requires Organization
* @requires CurrentOrganization
* @requires ContentView
* @requires translate
*
* @description
* Controls the creation of an empty ActivationKey object for use by sub-controllers.
*/
angular.module('Bastion.activation-keys').controller('NewActivationKeyController',
['$scope', '$q', 'FormUtils', 'ActivationKey', 'Organization', 'CurrentOrganization', 'ContentView',
function ($scope, $q, FormUtils, ActivationKey, Organization, CurrentOrganization, ContentView) {
['$scope', '$q', 'FormUtils', 'ActivationKey', 'Organization', 'CurrentOrganization', 'ContentView', 'translate',
function ($scope, $q, FormUtils, ActivationKey, Organization, CurrentOrganization, ContentView, translate) {

function success() {
$scope.transitionTo('activation-key.info', {activationKeyId: $scope.activationKey.id});
}

// Labels so breadcrumb strings can be translated
$scope.label = translate('New Activation Key');

function error(response) {
$scope.working = false;
angular.forEach(response.data.errors, function (errors, field) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
* @requires Nutupane
* @requires ContentCredential
* @requires CurrentOrganization
* @requires translate
*
* @description
* Provides the functionality specific to ContentCredentials for use with the Nutupane UI pattern.
* Defines the columns to display and the transform function for how to generate each row
* within the table.
*/
angular.module('Bastion.content-credentials').controller('ContentCredentialsController',
['$scope', '$location', 'Nutupane', 'ContentCredential', 'CurrentOrganization',
function ($scope, $location, Nutupane, ContentCredential, CurrentOrganization) {
['$scope', '$location', 'Nutupane', 'ContentCredential', 'CurrentOrganization', 'translate',
function ($scope, $location, Nutupane, ContentCredential, CurrentOrganization, translate) {
var params = {
'organization_id': CurrentOrganization,
'search': $location.search().search || "",
Expand All @@ -25,6 +26,10 @@ angular.module('Bastion.content-credentials').controller('ContentCredentialsCont
};

var nutupane = new Nutupane(ContentCredential, params);

// Labels so breadcrumb strings can be translated
$scope.label = translate('Content Credential');

$scope.controllerName = 'katello_content_credentials';
$scope.table = nutupane.table;
$scope.panel = {loading: false};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@
* @requires Nutupane
* @requires ContentCredential
* @requires ApiErrorHandler
* @requires translate
*
* @description
* Page for Content Credential acs
*/
(function () {
function ContentCredentialACSController($scope, Nutupane, ContentCredential, ApiErrorHandler) {
function ContentCredentialACSController($scope, Nutupane, ContentCredential, ApiErrorHandler, translate) {
var nutupane = new Nutupane(ContentCredential, {
id: $scope.$stateParams.contentCredentialId
}, 'acs');
$scope.controllerName = 'katello_content_credentials';

// Labels so breadcrumb strings can be translated
$scope.label = translate('Alternate Content Sources');

nutupane.primaryOnly = true;

$scope.panel = $scope.panel || {error: false, loading: false};
Expand All @@ -32,5 +37,5 @@
}

angular.module('Bastion.content-credentials').controller('ContentCredentialACSController', ContentCredentialACSController);
ContentCredentialACSController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler'];
ContentCredentialACSController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler', 'translate'];
})();
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@
* @requires Nutupane
* @requires ContentCredential
* @requires ApiErrorHandler
* @requires translate
*
* @description
* Page for Content Credential products
*/
(function () {
function ContentCredentialProductsController($scope, Nutupane, ContentCredential, ApiErrorHandler) {
function ContentCredentialProductsController($scope, Nutupane, ContentCredential, ApiErrorHandler, translate) {
var nutupane = new Nutupane(ContentCredential, {
id: $scope.$stateParams.contentCredentialId
}, 'products');
$scope.controllerName = 'katello_content_credentials';

// Labels so breadcrumb strings can be translated
$scope.label = translate('Products');

nutupane.primaryOnly = true;

$scope.panel = $scope.panel || {error: false, loading: false};
Expand All @@ -32,5 +37,5 @@
}

angular.module('Bastion.content-credentials').controller('ContentCredentialProductsController', ContentCredentialProductsController);
ContentCredentialProductsController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler'];
ContentCredentialProductsController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler', 'translate'];
})();
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function () {
function ContentCredentialRepositoriesController($scope, Nutupane, ContentCredential, ApiErrorHandler) {
function ContentCredentialRepositoriesController($scope, Nutupane, ContentCredential, ApiErrorHandler, translate) {
/**
* @ngdoc object
* @name Bastion.content-credentials.controller:ContentCredentialRepositoriesController
Expand All @@ -8,6 +8,7 @@
* @requires Nutupane
* @requires ContentCredential
* @requires ApiErrorHandler
* @requires translate
*
* @description
* Page for Content Credential repositories
Expand All @@ -16,6 +17,10 @@
id: $scope.$stateParams.contentCredentialId
}, 'repositories');
$scope.controllerName = 'katello_content_credentials';

// Labels so breadcrumb strings can be translated
$scope.label = translate('Repositories');

nutupane.primaryOnly = true;

$scope.panel = $scope.panel || {error: false, loading: false};
Expand All @@ -32,5 +37,5 @@
}

angular.module('Bastion.content-credentials').controller('ContentCredentialRepositoriesController', ContentCredentialRepositoriesController);
ContentCredentialRepositoriesController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler'];
ContentCredentialRepositoriesController.$inject = ['$scope', 'Nutupane', 'ContentCredential', 'ApiErrorHandler', 'translate'];
})();
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ angular.module('Bastion.content-credentials').controller('NewContentCredentialCo
$scope.progress = {uploading: false};
$scope.uploadURL = 'katello/api/v2/content_credentials?organization_id=' + CurrentOrganization;

// Labels so breadcrumb strings can be translated
$scope.label = translate('New Content Credential');

$scope.uploadContent = function (response) {
if (response) {
if (angular.isUndefined(response.errors)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ angular.module('Bastion.content-hosts').controller('ContentHostsController',
'sort_order': 'ASC'
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Content Hosts');
$scope.provisioningLabel = translate('Provisioning');
$scope.tasksLabel = translate('Tasks');

$scope.csvQuery = function () {
return $httpParamSerializer(params);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* @name Bastion.content-hosts.controller:ContentHostDebsActionsController
*
* @requires $scope
* @requires translate
*
* @description
* Provides the functionality for the content host deb package actions.
*/
angular.module('Bastion.content-hosts').controller('ContentHostDebsActionsController',
['$scope', function ($scope) {
['$scope', 'translate', function ($scope, translate) {
// Labels so breadcrumb strings can be translated
$scope.label = translate('Deb Package Actions');

$scope.packageAction = {actionType: 'packageInstall'}; // default to packageInstall
}
]);
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostDebsApplicableCon
function ($scope, $timeout, $window, Deb, HostDeb, translate, Nutupane) {
var debsNutupane, openEventInfo;

// Labels so breadcrumb strings can be translated
$scope.label = translate('Applicable Deb Packages');

$scope.getSelectedDebs = function () {
var selected = $scope.table.getSelected();
selected = _.map(selected, function(pkg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostDebsInstalledCont
function ($scope, $timeout, $window, HostDeb, translate, Nutupane) {
var debsNutupane;

// Labels so breadcrumb strings can be translated
$scope.label = translate('Installed Deb Packages');

$scope.removeSelectedDebs = function () {
var selected;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @requires HostErratum
* @requires Nutupane
* @requires BastionConfig
* @requires translate
*
* @description
* Provides the functionality for the content host package list and actions.
Expand All @@ -23,6 +24,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostErrataController'
'id': $scope.$stateParams.hostId
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Errata');

function loadErratum(errataId) {
$scope.erratum = HostErratum.get({'id': $scope.host.id,
'errata_id': errataId});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostModuleStreamsCont
function ($scope, $timeout, $window, HostModuleStream, Nutupane, BastionConfig, ModuleStreamActions, translate) {
$scope.moduleStreamActions = ModuleStreamActions.getActions();

// Labels so breadcrumb strings can be translated
$scope.label = translate('Module Streams');

$scope.working = false;

$scope.nutupaneParams = { id: $scope.$stateParams.hostId };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesApplicabl
function ($scope, $timeout, $window, Package, HostPackage, translate, Nutupane, BastionConfig) {
var packagesNutupane, openEventInfo;

// Labels so breadcrumb strings can be translated
$scope.label = translate('Applicable Packages');

$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesInstalled
$scope.remoteExecutionPresent = BastionConfig.remoteExecutionPresent;
$scope.hostToolingEnabled = BastionConfig.hostToolingEnabled;

// Labels so breadcrumb strings can be translated
$scope.label = translate('Installed Packages');

$scope.removeSelectedPackages = function () {
var selected = _.map($scope.table.getSelected(), 'name');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesControlle
$scope.working = false;
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Package Actions');

$scope.errorHandler = function (response) {
angular.forEach(response.data.errors, function (responseError) {
Notification.setErrorMessage(responseError);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @requires $scope
* @resource $timeout
* @resource $window
* @requires translate
* @requires HostTraces
* @requires Nutupane
* @requires BastionConfig
Expand All @@ -21,6 +22,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostTracesController'
'paged': true
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Traces');

tracesNutupane = new Nutupane(HostTraces, params, 'get', {'disableAutoLoad': true});
tracesNutupane.primaryOnly = true;
$scope.controllerName = 'katello_host_tracers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ angular.module('Bastion.content-hosts').controller('ContentHostAddHostCollection
'host_id': $scope.$stateParams.hostId
};

// Labels so breadcrumb strings can be translated
$scope.label = translate('Add Host Collections');

nutupane = new Nutupane(HostCollection, params);
$scope.controllerName = 'katello_host_collections';
nutupane.primaryOnly = true;
Expand Down
Loading

0 comments on commit 1ca7df7

Please sign in to comment.