WEb: Files: Changed translation keys.
This commit is contained in:
parent
afb0510fd6
commit
d793b099ff
@ -67,7 +67,7 @@ const PureThirdPartyMoveContainer = ({
|
||||
deleteAfter,
|
||||
isCopy,
|
||||
translations: {
|
||||
copy: t("Translations:CopyOperation"),
|
||||
copy: t("Common:CopyOperation"),
|
||||
move: t("Translations:MoveToOperation"),
|
||||
},
|
||||
};
|
||||
|
@ -120,7 +120,7 @@ const OperationsPanelComponent = (props) => {
|
||||
isCopy,
|
||||
folderTitle,
|
||||
translations: {
|
||||
copy: t("Translations:CopyOperation"),
|
||||
copy: t("Common:CopyOperation"),
|
||||
move: t("Translations:MoveToOperation"),
|
||||
},
|
||||
};
|
||||
@ -190,9 +190,11 @@ const OperationsPanelComponent = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
const OperationsPanel = withTranslation(["OperationsPanel", "Translations"])(
|
||||
OperationsPanelComponent
|
||||
);
|
||||
const OperationsPanel = withTranslation([
|
||||
"OperationsPanel",
|
||||
"Translations",
|
||||
"Common",
|
||||
])(OperationsPanelComponent);
|
||||
|
||||
export default inject(
|
||||
(
|
||||
|
@ -162,7 +162,7 @@ const SectionBodyContent = (props) => {
|
||||
const onMoveTo = (destFolderId, title, providerKey) => {
|
||||
const id = isNaN(+destFolderId) ? destFolderId : +destFolderId;
|
||||
moveDragItems(id, title, providerKey, {
|
||||
copy: t("Translations:CopyOperation"),
|
||||
copy: t("Common:CopyOperation"),
|
||||
move: t("Translations:MoveToOperation"),
|
||||
}); //TODO: then catch
|
||||
};
|
||||
|
@ -238,7 +238,7 @@ class ContextOptionsStore {
|
||||
|
||||
onDuplicate = (item, t) => {
|
||||
this.filesActionsStore
|
||||
.duplicateAction(item, t("Translations:CopyOperation"))
|
||||
.duplicateAction(item, t("Common:CopyOperation"))
|
||||
.catch((err) => toastr.error(err));
|
||||
};
|
||||
|
||||
@ -398,7 +398,7 @@ class ContextOptionsStore {
|
||||
},
|
||||
{
|
||||
key: "copy",
|
||||
label: t("Duplicate"),
|
||||
label: t("Common:Duplicate"),
|
||||
onClick: () => this.onDuplicate(item, t),
|
||||
disabled: false,
|
||||
},
|
||||
@ -422,7 +422,7 @@ class ContextOptionsStore {
|
||||
},
|
||||
{
|
||||
key: "copy",
|
||||
label: t("Duplicate"),
|
||||
label: t("Common:Duplicate"),
|
||||
icon: "/static/images/copy.react.svg",
|
||||
onClick: () => this.onDuplicate(item, t),
|
||||
disabled: false,
|
||||
@ -564,7 +564,7 @@ class ContextOptionsStore {
|
||||
...moveActions,
|
||||
{
|
||||
key: "restore",
|
||||
label: t("Translations:Restore"),
|
||||
label: t("Common:Restore"),
|
||||
icon: "images/move.react.svg",
|
||||
onClick: this.onMoveAction,
|
||||
disabled: false,
|
||||
|
Loading…
Reference in New Issue
Block a user