Project

General

Profile

« Previous | Next » 

Revision 6f5e909f

Added by Walden Raines about 10 years ago

Fixes #4785, replace gettext with translate for extraction/replacement.

View differences:

engines/bastion/app/assets/javascripts/bastion/content-views/details/content-view-details-history.controller.js
* A controller for showing the history of a content view
*/
angular.module('Bastion.content-views').controller('ContentViewHistoryController',
['$scope', 'gettext', 'ContentView', 'Nutupane',
function ($scope, gettext, ContentView, Nutupane) {
['$scope', 'translate', 'ContentView', 'Nutupane',
function ($scope, translate, ContentView, Nutupane) {
var nutupane;
nutupane = new Nutupane(ContentView, {
......
$scope.actionText = function (history) {
var message;
if (history.environment) {
message = gettext("Promote to %s").replace('%s', history.environment.name);
message = translate("Promote to %s").replace('%s', history.environment.name);
} else {
message = gettext("Publish new version.");
message = translate("Publish new version.");
}
return message;
};

Also available in: Unified diff