diff --git a/src/pat/structure/js/views/table.js b/src/pat/structure/js/views/table.js index d85967ac2..66a67364d 100644 --- a/src/pat/structure/js/views/table.js +++ b/src/pat/structure/js/views/table.js @@ -48,6 +48,10 @@ export default BaseView.extend({ "end", "last_comment_date", ]; + + self.translatableColumns = [ + "review_state", + ]; }, events: { diff --git a/src/pat/structure/js/views/tablerow.js b/src/pat/structure/js/views/tablerow.js index a20848158..f96026870 100644 --- a/src/pat/structure/js/views/tablerow.js +++ b/src/pat/structure/js/views/tablerow.js @@ -1,6 +1,7 @@ import $ from "jquery"; import _ from "underscore"; import _t from "../../../../core/i18n-wrapper"; +import { translate_plone as _tp } from "../../../../core/i18n-wrapper"; import utils from "../../../../core/utils"; import Backbone from "backbone"; @@ -109,6 +110,9 @@ export default Backbone.View.extend({ } return date.toLocaleString(this.app.language, this.app.dateFormat); } + if (this.table.translatableColumns.includes(column)) { + return _tp(value); + } return value; },