Skip to content

Commit

Permalink
Translate inline file rights drop down menu item
Browse files Browse the repository at this point in the history
REDMINE-20093
  • Loading branch information
tf committed Dec 12, 2023
1 parent 9ccbf63 commit a81c5be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: space(2);

&:after {
content: "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ de:
roles:
inlineFileRights: Inline-Datei-Rechte
pageflow_scrolled:
editor:
inline_file_rights_menu_item:
label: Rechteangabe an dieser Stelle ausblenden
public:
inline_file_rights_labels:
video: Video
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ en:
roles:
inlineFileRights: Inline file rights
pageflow_scrolled:
editor:
inline_file_rights_menu_item:
label: Hide rights information here
public:
inline_file_rights_labels:
video: Video
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import Backbone from 'backbone';
import I18n from 'i18n-js';

export const InlineFileRightsMenuItem = Backbone.Model.extend({
defaults: {
name: 'hideInlineFileRights',
label: 'Rechteangabe an dieser Stelle ausblenden',
kind: 'checkBox'
},

initialize(attributes, {inputModel, propertyName, file}) {
this.set('label', I18n.t('pageflow_scrolled.editor.inline_file_rights_menu_item.label'));

const flagPropertyName = propertyName === 'id' ?
'inlineRightsHidden' :
`${propertyName.replace('Id', '')}InlineRightsHidden`;
Expand Down

0 comments on commit a81c5be

Please sign in to comment.