WEb: Files: Changed translation keys.

This commit is contained in:
Tatiana Lopaeva 2022-03-10 17:45:13 +03:00
parent afb0510fd6
commit d793b099ff
4 changed files with 12 additions and 10 deletions

View File

@ -67,7 +67,7 @@ const PureThirdPartyMoveContainer = ({
deleteAfter, deleteAfter,
isCopy, isCopy,
translations: { translations: {
copy: t("Translations:CopyOperation"), copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"), move: t("Translations:MoveToOperation"),
}, },
}; };

View File

@ -120,7 +120,7 @@ const OperationsPanelComponent = (props) => {
isCopy, isCopy,
folderTitle, folderTitle,
translations: { translations: {
copy: t("Translations:CopyOperation"), copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"), move: t("Translations:MoveToOperation"),
}, },
}; };
@ -190,9 +190,11 @@ const OperationsPanelComponent = (props) => {
); );
}; };
const OperationsPanel = withTranslation(["OperationsPanel", "Translations"])( const OperationsPanel = withTranslation([
OperationsPanelComponent "OperationsPanel",
); "Translations",
"Common",
])(OperationsPanelComponent);
export default inject( export default inject(
( (

View File

@ -162,7 +162,7 @@ const SectionBodyContent = (props) => {
const onMoveTo = (destFolderId, title, providerKey) => { const onMoveTo = (destFolderId, title, providerKey) => {
const id = isNaN(+destFolderId) ? destFolderId : +destFolderId; const id = isNaN(+destFolderId) ? destFolderId : +destFolderId;
moveDragItems(id, title, providerKey, { moveDragItems(id, title, providerKey, {
copy: t("Translations:CopyOperation"), copy: t("Common:CopyOperation"),
move: t("Translations:MoveToOperation"), move: t("Translations:MoveToOperation"),
}); //TODO: then catch }); //TODO: then catch
}; };

View File

@ -238,7 +238,7 @@ class ContextOptionsStore {
onDuplicate = (item, t) => { onDuplicate = (item, t) => {
this.filesActionsStore this.filesActionsStore
.duplicateAction(item, t("Translations:CopyOperation")) .duplicateAction(item, t("Common:CopyOperation"))
.catch((err) => toastr.error(err)); .catch((err) => toastr.error(err));
}; };
@ -398,7 +398,7 @@ class ContextOptionsStore {
}, },
{ {
key: "copy", key: "copy",
label: t("Duplicate"), label: t("Common:Duplicate"),
onClick: () => this.onDuplicate(item, t), onClick: () => this.onDuplicate(item, t),
disabled: false, disabled: false,
}, },
@ -422,7 +422,7 @@ class ContextOptionsStore {
}, },
{ {
key: "copy", key: "copy",
label: t("Duplicate"), label: t("Common:Duplicate"),
icon: "/static/images/copy.react.svg", icon: "/static/images/copy.react.svg",
onClick: () => this.onDuplicate(item, t), onClick: () => this.onDuplicate(item, t),
disabled: false, disabled: false,
@ -564,7 +564,7 @@ class ContextOptionsStore {
...moveActions, ...moveActions,
{ {
key: "restore", key: "restore",
label: t("Translations:Restore"), label: t("Common:Restore"),
icon: "images/move.react.svg", icon: "images/move.react.svg",
onClick: this.onMoveAction, onClick: this.onMoveAction,
disabled: false, disabled: false,