Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/app/assets/javascripts/bastion/content-views/details/content-view-versions.controller.js | ||
---|---|---|
* @name Bastion.content-views.controller:ContentViewVersionsController
|
||
*
|
||
* @requires $scope
|
||
* @requires gettext
|
||
* @requires translate
|
||
* @requires ContentViewVersion
|
||
*
|
||
* @description
|
||
... | ... | |
* within the table.
|
||
*/
|
||
angular.module('Bastion.content-views').controller('ContentViewVersionsController',
|
||
['$scope', 'gettext', function ($scope, gettext) {
|
||
['$scope', 'translate', function ($scope, translate) {
|
||
|
||
$scope.table = {};
|
||
|
||
... | ... | |
var status = '';
|
||
if (promoteCount > 1) {
|
||
if (isPublishing) {
|
||
status = gettext("Publishing and promoting to %count environments.").replace(
|
||
status = translate("Publishing and promoting to %count environments.").replace(
|
||
'%count', promoteCount);
|
||
}
|
||
else {
|
||
status = gettext("Promoting to %count environments.").replace('%count', promoteCount);
|
||
status = translate("Promoting to %count environments.").replace('%count', promoteCount);
|
||
}
|
||
} else if (promoteCount === 1 || isPublishing) {
|
||
if (isPublishing) {
|
||
status = gettext("Publishing and promoting to 1 environment.");
|
||
status = translate("Publishing and promoting to 1 environment.");
|
||
}
|
||
else {
|
||
status = gettext("Promoting to 1 environment.");
|
||
status = translate("Promoting to 1 environment.");
|
||
}
|
||
}
|
||
return status;
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.