Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix: Update default editor translations for version 4.8.1 #2592

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/viewer-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-init.js.map

Large diffs are not rendered by default.

32 changes: 25 additions & 7 deletions src/models/editorTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { translate as t } from '@nextcloud/l10n'
* We also use that to edit the end strings of
* some buttons, like resetOperations
*
* @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.8.1/packages/react-filerobot-image-editor/src/context/defaultTranslations.js
*/
export default {
name: t('viewer', 'Name'),
Expand All @@ -15,10 +15,13 @@ export default {
loading: t('viewer', 'Loading …'),
// resetOperations: 'Reset/delete all operations',
resetOperations: t('viewer', 'Reset'),
changesLoseConfirmation: t('viewer', 'All changes will be lost.'),
changesLoseConfirmationHint: t('viewer', 'Are you sure you want to continue?'),
changesLoseWarningHint: t('viewer', 'All changes will be lost.'),
discardChangesWarningHint: t('viewer', 'Are you sure you want to continue?'),
cancel: t('viewer', 'Cancel'),
continue: t('viewer', 'Continue'),
apply: t('viewer', 'Apply'),
warning: t('viewer', 'Warning'),
confirm: t('viewer', 'Confirm'),
discardChanges: t('viewer', 'Discard changes'),
undoTitle: t('viewer', 'Undo'),
redoTitle: t('viewer', 'Redo'),
showImageTitle: t('viewer', 'Show original image'),
Expand All @@ -29,9 +32,10 @@ export default {
finetuneTab: t('viewer', 'Fine-tune'),
filtersTab: t('viewer', 'Filters'),
watermarkTab: t('viewer', 'Watermark'),
annotateTab: t('viewer', 'Draw'),
annotateTabLabel: t('viewer', 'Draw'),
resize: t('viewer', 'Resize'),
resizeTab: t('viewer', 'Resize'),
imageName: t('viewer', 'Image name'),
invalidImageError: t('viewer', 'Invalid image.'),
uploadImageError: t('viewer', 'Error while uploading the image.'),
areNotImages: t('viewer', 'are not images'),
Expand All @@ -57,11 +61,14 @@ export default {
flipY: t('viewer', 'Flip Y'),
hsvTool: t('viewer', 'HSV'),
hue: t('viewer', 'Hue'),
brightness: t('viewer', 'Brightness'),
saturation: t('viewer', 'Saturation'),
value: t('viewer', 'Value'),
imageTool: t('viewer', 'Image'),
importing: t('viewer', 'Importing …'),
addImage: t('viewer', '+ Add image'),
uploadImage: t('viewer', 'Upload image'),
fromGallery: t('viewer', 'From gallery'),
lineTool: t('viewer', 'Line'),
penTool: t('viewer', 'Pen'),
polygonTool: t('viewer', 'Polygon'),
Expand All @@ -71,7 +78,6 @@ export default {
resizeWidthTitle: t('viewer', 'Width in pixels'),
resizeHeightTitle: t('viewer', 'Height in pixels'),
toggleRatioLockTitle: t('viewer', 'Toggle ratio lock'),
reset: t('viewer', 'Reset'),
resetSize: t('viewer', 'Reset to original image size'),
rotateTool: t('viewer', 'Rotate'),
textTool: t('viewer', 'Text'),
Expand All @@ -83,23 +89,35 @@ export default {
lineHeight: t('viewer', 'Line height'),
warmthTool: t('viewer', 'Warmth'),
addWatermark: t('viewer', '+ Add watermark'),
addTextWatermark: t('viewer', '+ Add text watermark'),
addWatermarkTitle: t('viewer', 'Choose watermark type'),
uploadWatermark: t('viewer', 'Upload watermark'),
addWatermarkAsText: t('viewer', 'Add as text'),
padding: t('viewer', 'Padding'),
paddings: t('viewer', 'Paddings'),
shadow: t('viewer', 'Shadow'),
horizontal: t('viewer', 'Horizontal'),
vertical: t('viewer', 'Vertical'),
blur: t('viewer', 'Blur'),
opacity: t('viewer', 'Opacity'),
transparency: t('viewer', 'Transparency'),
position: t('viewer', 'Position'),
stroke: t('viewer', 'Stroke'),
saveAsModalLabel: t('viewer', 'Save image as'),
saveAsModalTitle: t('viewer', 'Save image as'),
extension: t('viewer', 'Extension'),
format: t('viewer', 'Format'),
nameIsRequired: t('viewer', 'Name is required.'),
quality: t('viewer', 'Quality'),
imageDimensionsHoverTitle: t('viewer', 'Saved image size (width x height)'),
cropSizeLowerThanResizedWarning: t('viewer', 'Note that the selected crop area is lower than the applied resize which might cause quality decrease'),
actualSize: t('viewer', 'Actual size (100%)'),
fitSize: t('viewer', 'Fit size'),
addImageTitle: t('viewer', 'Select image to add …'),
mutualizedFailedToLoadImg: t('viewer', 'Failed to load image.'),
tabsMenu: t('viewer', 'Menu'),
download: t('viewer', 'Download'),
width: t('viewer', 'Width'),
height: t('viewer', 'Height'),
plus: '+',
cropItemNoEffect: t('viewer', 'No preview available for this crop item'),
}
Loading