Skip to content

Commit c1598f5

Browse files
authored
Merge pull request #183 from nextcloud/backport/180/stable16
[stable16] Translate menu action
2 parents 56b1a69 + 52f2670 commit c1598f5

File tree

5 files changed

+17
-41
lines changed

5 files changed

+17
-41
lines changed

build/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/editor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/public-share.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/editor.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,14 @@ export const Texteditor = {
245245
registerFileActions: function () {
246246
supportedMimeTypes.forEach((mime) => {
247247
OCA.Files.fileActions.registerAction({
248-
name: 'Edit in plain text editor',
248+
name: 'edit_texteditor',
249+
displayName: t('files_texteditor', 'Edit in plain text editor'),
249250
mime: mime,
250251
actionHandler: this._onEditorTrigger.bind(this),
251252
permissions: OC.PERMISSION_READ,
252-
icon: function () {
253-
return OC.imagePath('core', 'actions/edit');
254-
}
253+
iconClass: 'icon-edit'
255254
});
256-
OCA.Files.fileActions.setDefault(mime, 'Edit in plain text editor');
255+
OCA.Files.fileActions.setDefault(mime, 'edit_texteditor');
257256
});
258257
},
259258

package-lock.json

Lines changed: 10 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)