Fix editor translate namespace
parent
4b4084a57d
commit
1205ec12fa
|
@ -179,7 +179,7 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
);
|
);
|
||||||
const response = await axios.put(putUrl, new File([blob], fullName));
|
const response = await axios.put(putUrl, new File([blob], fullName));
|
||||||
|
|
||||||
showSuccess(this.t("viewer", "Image saved successfully"));
|
showSuccess(this.t("memories", "Image saved successfully"));
|
||||||
if (putUrl !== this.src) {
|
if (putUrl !== this.src) {
|
||||||
emit("files:file:created", {
|
emit("files:file:created", {
|
||||||
fileid:
|
fileid:
|
||||||
|
@ -190,7 +190,7 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
}
|
}
|
||||||
this.onClose(undefined, false);
|
this.onClose(undefined, false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
showError(this.t("viewer", "Error saving image"));
|
showError(this.t("memories", "Error saving image"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,10 +202,10 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
translations.changesLoseConfirmation +
|
translations.changesLoseConfirmation +
|
||||||
"\n\n" +
|
"\n\n" +
|
||||||
translations.changesLoseConfirmationHint,
|
translations.changesLoseConfirmationHint,
|
||||||
this.t("viewer", "Unsaved changes"),
|
this.t("memories", "Unsaved changes"),
|
||||||
{
|
{
|
||||||
type: (<any>OC.dialogs).YES_NO_BUTTONS,
|
type: (<any>OC.dialogs).YES_NO_BUTTONS,
|
||||||
confirm: this.t("viewer", "Drop changes"),
|
confirm: this.t("memories", "Drop changes"),
|
||||||
confirmClasses: "error",
|
confirmClasses: "error",
|
||||||
cancel: translations.cancel,
|
cancel: translations.cancel,
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,104 +8,104 @@ import { translate as t } from "@nextcloud/l10n";
|
||||||
* @see https://raw.githubusercontent.com/scaleflex/filerobot-image-editor/v4/packages/react-filerobot-image-editor/src/context/defaultTranslations.js
|
* @see https://raw.githubusercontent.com/scaleflex/filerobot-image-editor/v4/packages/react-filerobot-image-editor/src/context/defaultTranslations.js
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
name: t("viewer", "Name"),
|
name: t("memories", "Name"),
|
||||||
save: t("viewer", "Save"),
|
save: t("memories", "Save"),
|
||||||
saveAs: t("viewer", "Save as"),
|
saveAs: t("memories", "Save as"),
|
||||||
back: t("viewer", "Back"),
|
back: t("memories", "Back"),
|
||||||
loading: t("viewer", "Loading …"),
|
loading: t("memories", "Loading …"),
|
||||||
// resetOperations: 'Reset/delete all operations',
|
// resetOperations: 'Reset/delete all operations',
|
||||||
resetOperations: t("viewer", "Reset"),
|
resetOperations: t("memories", "Reset"),
|
||||||
changesLoseConfirmation: t("viewer", "All changes will be lost."),
|
changesLoseConfirmation: t("memories", "All changes will be lost."),
|
||||||
changesLoseConfirmationHint: t(
|
changesLoseConfirmationHint: t(
|
||||||
"viewer",
|
"memories",
|
||||||
"Are you sure you want to continue?"
|
"Are you sure you want to continue?"
|
||||||
),
|
),
|
||||||
cancel: t("viewer", "Cancel"),
|
cancel: t("memories", "Cancel"),
|
||||||
continue: t("viewer", "Continue"),
|
continue: t("memories", "Continue"),
|
||||||
undoTitle: t("viewer", "Undo"),
|
undoTitle: t("memories", "Undo"),
|
||||||
redoTitle: t("viewer", "Redo"),
|
redoTitle: t("memories", "Redo"),
|
||||||
showImageTitle: t("viewer", "Show original image"),
|
showImageTitle: t("memories", "Show original image"),
|
||||||
zoomInTitle: t("viewer", "Zoom in"),
|
zoomInTitle: t("memories", "Zoom in"),
|
||||||
zoomOutTitle: t("viewer", "Zoom out"),
|
zoomOutTitle: t("memories", "Zoom out"),
|
||||||
toggleZoomMenuTitle: t("viewer", "Toggle zoom menu"),
|
toggleZoomMenuTitle: t("memories", "Toggle zoom menu"),
|
||||||
adjustTab: t("viewer", "Adjust"),
|
adjustTab: t("memories", "Adjust"),
|
||||||
finetuneTab: t("viewer", "Fine-tune"),
|
finetuneTab: t("memories", "Fine-tune"),
|
||||||
filtersTab: t("viewer", "Filters"),
|
filtersTab: t("memories", "Filters"),
|
||||||
watermarkTab: t("viewer", "Watermark"),
|
watermarkTab: t("memories", "Watermark"),
|
||||||
annotateTab: t("viewer", "Draw"),
|
annotateTab: t("memories", "Draw"),
|
||||||
resize: t("viewer", "Resize"),
|
resize: t("memories", "Resize"),
|
||||||
resizeTab: t("viewer", "Resize"),
|
resizeTab: t("memories", "Resize"),
|
||||||
invalidImageError: t("viewer", "Invalid image."),
|
invalidImageError: t("memories", "Invalid image."),
|
||||||
uploadImageError: t("viewer", "Error while uploading the image."),
|
uploadImageError: t("memories", "Error while uploading the image."),
|
||||||
areNotImages: t("viewer", "are not images"),
|
areNotImages: t("memories", "are not images"),
|
||||||
isNotImage: t("viewer", "is not an image"),
|
isNotImage: t("memories", "is not an image"),
|
||||||
toBeUploaded: t("viewer", "to be uploaded"),
|
toBeUploaded: t("memories", "to be uploaded"),
|
||||||
cropTool: t("viewer", "Crop"),
|
cropTool: t("memories", "Crop"),
|
||||||
original: t("viewer", "Original"),
|
original: t("memories", "Original"),
|
||||||
custom: t("viewer", "Custom"),
|
custom: t("memories", "Custom"),
|
||||||
square: t("viewer", "Square"),
|
square: t("memories", "Square"),
|
||||||
landscape: t("viewer", "Landscape"),
|
landscape: t("memories", "Landscape"),
|
||||||
portrait: t("viewer", "Portrait"),
|
portrait: t("memories", "Portrait"),
|
||||||
ellipse: t("viewer", "Ellipse"),
|
ellipse: t("memories", "Ellipse"),
|
||||||
classicTv: t("viewer", "Classic TV"),
|
classicTv: t("memories", "Classic TV"),
|
||||||
cinemascope: t("viewer", "CinemaScope"),
|
cinemascope: t("memories", "CinemaScope"),
|
||||||
arrowTool: t("viewer", "Arrow"),
|
arrowTool: t("memories", "Arrow"),
|
||||||
blurTool: t("viewer", "Blur"),
|
blurTool: t("memories", "Blur"),
|
||||||
brightnessTool: t("viewer", "Brightness"),
|
brightnessTool: t("memories", "Brightness"),
|
||||||
contrastTool: t("viewer", "Contrast"),
|
contrastTool: t("memories", "Contrast"),
|
||||||
ellipseTool: t("viewer", "Ellipse"),
|
ellipseTool: t("memories", "Ellipse"),
|
||||||
unFlipX: t("viewer", "Un-flip X"),
|
unFlipX: t("memories", "Un-flip X"),
|
||||||
flipX: t("viewer", "Flip X"),
|
flipX: t("memories", "Flip X"),
|
||||||
unFlipY: t("viewer", "Un-flip Y"),
|
unFlipY: t("memories", "Un-flip Y"),
|
||||||
flipY: t("viewer", "Flip Y"),
|
flipY: t("memories", "Flip Y"),
|
||||||
hsvTool: t("viewer", "HSV"),
|
hsvTool: t("memories", "HSV"),
|
||||||
hue: t("viewer", "Hue"),
|
hue: t("memories", "Hue"),
|
||||||
saturation: t("viewer", "Saturation"),
|
saturation: t("memories", "Saturation"),
|
||||||
value: t("viewer", "Value"),
|
value: t("memories", "Value"),
|
||||||
imageTool: t("viewer", "Image"),
|
imageTool: t("memories", "Image"),
|
||||||
importing: t("viewer", "Importing …"),
|
importing: t("memories", "Importing …"),
|
||||||
addImage: t("viewer", "+ Add image"),
|
addImage: t("memories", "+ Add image"),
|
||||||
lineTool: t("viewer", "Line"),
|
lineTool: t("memories", "Line"),
|
||||||
penTool: t("viewer", "Pen"),
|
penTool: t("memories", "Pen"),
|
||||||
polygonTool: t("viewer", "Polygon"),
|
polygonTool: t("memories", "Polygon"),
|
||||||
sides: t("viewer", "Sides"),
|
sides: t("memories", "Sides"),
|
||||||
rectangleTool: t("viewer", "Rectangle"),
|
rectangleTool: t("memories", "Rectangle"),
|
||||||
cornerRadius: t("viewer", "Corner Radius"),
|
cornerRadius: t("memories", "Corner Radius"),
|
||||||
resizeWidthTitle: t("viewer", "Width in pixels"),
|
resizeWidthTitle: t("memories", "Width in pixels"),
|
||||||
resizeHeightTitle: t("viewer", "Height in pixels"),
|
resizeHeightTitle: t("memories", "Height in pixels"),
|
||||||
toggleRatioLockTitle: t("viewer", "Toggle ratio lock"),
|
toggleRatioLockTitle: t("memories", "Toggle ratio lock"),
|
||||||
reset: t("viewer", "Reset"),
|
reset: t("memories", "Reset"),
|
||||||
resetSize: t("viewer", "Reset to original image size"),
|
resetSize: t("memories", "Reset to original image size"),
|
||||||
rotateTool: t("viewer", "Rotate"),
|
rotateTool: t("memories", "Rotate"),
|
||||||
textTool: t("viewer", "Text"),
|
textTool: t("memories", "Text"),
|
||||||
textSpacings: t("viewer", "Text spacing"),
|
textSpacings: t("memories", "Text spacing"),
|
||||||
textAlignment: t("viewer", "Text alignment"),
|
textAlignment: t("memories", "Text alignment"),
|
||||||
fontFamily: t("viewer", "Font family"),
|
fontFamily: t("memories", "Font family"),
|
||||||
size: t("viewer", "Size"),
|
size: t("memories", "Size"),
|
||||||
letterSpacing: t("viewer", "Letter spacing"),
|
letterSpacing: t("memories", "Letter spacing"),
|
||||||
lineHeight: t("viewer", "Line height"),
|
lineHeight: t("memories", "Line height"),
|
||||||
warmthTool: t("viewer", "Warmth"),
|
warmthTool: t("memories", "Warmth"),
|
||||||
addWatermark: t("viewer", "+ Add watermark"),
|
addWatermark: t("memories", "+ Add watermark"),
|
||||||
addWatermarkTitle: t("viewer", "Choose watermark type"),
|
addWatermarkTitle: t("memories", "Choose watermark type"),
|
||||||
uploadWatermark: t("viewer", "Upload watermark"),
|
uploadWatermark: t("memories", "Upload watermark"),
|
||||||
addWatermarkAsText: t("viewer", "Add as text"),
|
addWatermarkAsText: t("memories", "Add as text"),
|
||||||
padding: t("viewer", "Padding"),
|
padding: t("memories", "Padding"),
|
||||||
shadow: t("viewer", "Shadow"),
|
shadow: t("memories", "Shadow"),
|
||||||
horizontal: t("viewer", "Horizontal"),
|
horizontal: t("memories", "Horizontal"),
|
||||||
vertical: t("viewer", "Vertical"),
|
vertical: t("memories", "Vertical"),
|
||||||
blur: t("viewer", "Blur"),
|
blur: t("memories", "Blur"),
|
||||||
opacity: t("viewer", "Opacity"),
|
opacity: t("memories", "Opacity"),
|
||||||
position: t("viewer", "Position"),
|
position: t("memories", "Position"),
|
||||||
stroke: t("viewer", "Stroke"),
|
stroke: t("memories", "Stroke"),
|
||||||
saveAsModalLabel: t("viewer", "Save image as"),
|
saveAsModalLabel: t("memories", "Save image as"),
|
||||||
extension: t("viewer", "Extension"),
|
extension: t("memories", "Extension"),
|
||||||
nameIsRequired: t("viewer", "Name is required."),
|
nameIsRequired: t("memories", "Name is required."),
|
||||||
quality: t("viewer", "Quality"),
|
quality: t("memories", "Quality"),
|
||||||
imageDimensionsHoverTitle: t("viewer", "Saved image size (width x height)"),
|
imageDimensionsHoverTitle: t("memories", "Saved image size (width x height)"),
|
||||||
cropSizeLowerThanResizedWarning: t(
|
cropSizeLowerThanResizedWarning: t(
|
||||||
"viewer",
|
"memories",
|
||||||
"Note that the selected crop area is lower than the applied resize which might cause quality decrease"
|
"Note that the selected crop area is lower than the applied resize which might cause quality decrease"
|
||||||
),
|
),
|
||||||
actualSize: t("viewer", "Actual size (100%)"),
|
actualSize: t("memories", "Actual size (100%)"),
|
||||||
fitSize: t("viewer", "Fit size"),
|
fitSize: t("memories", "Fit size"),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue