Skip to content

Commit 7932907

Browse files
authored
Merge pull request #180 from nextcloud/fix/action/translation
Translate menu action
2 parents 577d022 + 1e727fb commit 7932907

File tree

6 files changed

+19
-42
lines changed

6 files changed

+19
-42
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

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: 11 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)