Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ar-AR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "إحداثي Y"

[crop.error]
failed = "فشل قصّ PDF"
Comment on lines 3527 to 3528
invalidArea = "منطقة القص تتجاوز حدود PDF"

[crop.preview]
title = "معاينة منطقة القص"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/az-AZ/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y mövqeyi"

[crop.error]
failed = "PDF-i kəsmək alınmadı"
Comment on lines 3527 to 3528
invalidArea = "Kəsmə sahəsi PDF sərhədlərini aşır"

[crop.preview]
title = "Kəsmə sahəsinin seçimi"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/bg-BG/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y позиция"

[crop.error]
failed = "Неуспешно изрязване на PDF"
Comment on lines 3527 to 3528
invalidArea = "Областта за изрязване излиза извън границите на PDF"

[crop.preview]
title = "Избор на област за изрязване"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/bo-CN/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3306,7 +3306,6 @@ label = "Yཡི་གནས་བབ།"

[crop.error]
failed = "སོན་བཟང་མ་འདང་བ། PDF"
Comment on lines 3527 to 3528
invalidArea = "སོན་འདེབས་རྒྱ་ཁྱོན་དེ་PDFམཚམས་ཐིག་ལས་བརྒལ་ཡོད།"

[crop.preview]
title = "སོན་བཟང་ཁུལ་འདེམས་པ།"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ca-CA/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Posició Y"

[crop.error]
failed = "No s'ha pogut retallar el PDF"
Comment on lines 3527 to 3528
invalidArea = "L'àrea de retall s'estén més enllà dels límits del PDF"

[crop.preview]
title = "Selecció de l'àrea de retall"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/cs-CZ/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Pozice Y"

[crop.error]
failed = "Oříznutí PDF se nezdařilo"
Comment on lines 3527 to 3528
invalidArea = "Oblast ořezu přesahuje hranice PDF"

[crop.preview]
title = "Výběr oblasti ořezu"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/da-DK/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y-position"

[crop.error]
failed = "Kunne ikke beskære PDF"
Comment on lines 3527 to 3528
invalidArea = "Beskæringsområdet strækker sig ud over PDF'ens grænser"

[crop.preview]
title = "Valg af beskæringsområde"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/de-DE/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,6 @@ label = "Y-Position"

[crop.error]
failed = "PDF zuschneiden fehlgeschlagen"
Comment thread
balazs-szucs marked this conversation as resolved.
invalidArea = "Zuschneidebereich überschreitet die PDF-Grenzen"

[crop.preview]
title = "Zuschneidebereich-Auswahl"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/el-GR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Θέση Y"

[crop.error]
failed = "Αποτυχία περικοπής του PDF"
Comment on lines 3527 to 3528
invalidArea = "Η περιοχή περικοπής εκτείνεται πέρα από τα όρια του PDF"

[crop.preview]
title = "Επιλογή περιοχής περικοπής"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/en-GB/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y Position"

[crop.error]
failed = "Failed to crop PDF"
Comment thread
balazs-szucs marked this conversation as resolved.
invalidArea = "Crop area extends beyond PDF boundaries"

[crop.preview]
title = "Crop Area Selection"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/en-US/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3504,7 +3504,6 @@ label = "Y Position"

[crop.error]
failed = "Failed to crop PDF"
invalidArea = "Crop area extends beyond PDF boundaries"

[crop.preview]
title = "Crop Area Selection"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/es-ES/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Posición Y"

[crop.error]
failed = "Error al recortar PDF"
Comment on lines 3527 to 3528
invalidArea = "El área de recorte se extiende más allá de los límites del PDF"

[crop.preview]
title = "Selección de Área de Recorte"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/eu-ES/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y posizioa"

[crop.error]
failed = "Huts egin du PDFa mozteak"
Comment on lines 3527 to 3528
invalidArea = "Mozketa-area PDFaren mugak baino harago doa"

[crop.preview]
title = "Mozketa-arearen hautapena"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/fa-IR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "موقعیت Y"

[crop.error]
failed = "برش PDF ناموفق بود"
Comment on lines 3527 to 3528
invalidArea = "ناحیه برش از مرزهای PDF فراتر رفته است"

[crop.preview]
title = "انتخاب ناحیه برش"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/fr-FR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Position Y"

[crop.error]
failed = "Échec du recadrage du PDF"
Comment on lines 3527 to 3528
invalidArea = "La zone de recadrage dépasse les limites du PDF"

[crop.preview]
title = "Sélection de la zone de recadrage"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ga-IE/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Suíomh Y"

[crop.error]
failed = "Theip ar an PDF a bhearradh"
Comment on lines 3527 to 3528
invalidArea = "Téann an limistéar bearrtha thar theorainneacha an PDF"

[crop.preview]
title = "Roghnú Limistéir Bhearrtha"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/hi-IN/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y स्थान"

[crop.error]
failed = "PDF क्रॉप करने में विफल"
Comment on lines 3527 to 3528
invalidArea = "क्रॉप क्षेत्र PDF सीमाओं से बाहर जा रहा है"

[crop.preview]
title = "क्रॉप क्षेत्र चयन"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/hr-HR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y položaj"

[crop.error]
failed = "Izrezivanje PDF-a nije uspjelo"
Comment on lines 3527 to 3528
invalidArea = "Područje izrezivanja prelazi granice PDF-a"

[crop.preview]
title = "Odabir područja izrezivanja"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/hu-HU/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y pozíció"

[crop.error]
failed = "A PDF vágása sikertelen"
Comment on lines 3527 to 3528
invalidArea = "A vágási terület túlnyúlik a PDF határain"

[crop.preview]
title = "Vágási terület kiválasztása"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/id-ID/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Posisi Y"

[crop.error]
failed = "Gagal memangkas PDF"
Comment on lines 3527 to 3528
invalidArea = "Area pangkas melampaui batas PDF"

[crop.preview]
title = "Pilihan Area Pangkas"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/it-IT/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,6 @@ label = "Posizione Y"

[crop.error]
failed = "Impossibile ritagliare il PDF"
Comment on lines 3527 to 3528
invalidArea = "L’area di ritaglio supera i limiti del PDF"

[crop.preview]
title = "Selezione area di ritaglio"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ja-JP/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y 位置"

[crop.error]
failed = "PDF の切り抜きに失敗しました"
Comment on lines 3527 to 3528
invalidArea = "切り抜き範囲が PDF の境界を超えています"

[crop.preview]
title = "切り抜き範囲の選択"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ko-KR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y 위치"

[crop.error]
failed = "PDF 자르기에 실패했습니다"
Comment on lines 3527 to 3528
invalidArea = "자르기 영역이 PDF 경계를 벗어났습니다"

[crop.preview]
title = "자르기 영역 선택"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ml-ML/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y സ്ഥാനം"

[crop.error]
failed = "PDF ക്രോപ്പ് ചെയ്യാൻ കഴിഞ്ഞില്ല"
Comment on lines 3527 to 3528
invalidArea = "ക്രോപ്പ് ഏരിയ PDF അതിരുകൾക്ക് പുറത്തേക്ക് നീളുന്നു"

[crop.preview]
title = "ക്രോപ്പ് ഏരിയ തിരഞ്ഞെടുപ്പ്"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/nl-NL/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y-positie"

[crop.error]
failed = "PDF bijsnijden mislukt"
Comment on lines 3527 to 3528
invalidArea = "Bijsnijgebied valt buiten PDF-randen"

[crop.preview]
title = "Selectie bijsnijgebied"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/no-NB/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y-posisjon"

[crop.error]
failed = "Kunne ikke beskjære PDF"
Comment on lines 3527 to 3528
invalidArea = "Beskjæringsområdet går utenfor PDF-grensene"

[crop.preview]
title = "Valg av beskjæringsområde"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/pl-PL/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Pozycja Y"

[crop.error]
failed = "Nie udało się przyciąć PDF"
Comment on lines 3527 to 3528
invalidArea = "Obszar przycięcia wykracza poza granice PDF"

[crop.preview]
title = "Wybór obszaru przycięcia"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/pt-BR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Posição Y"

[crop.error]
failed = "Falha ao recortar o PDF"
Comment on lines 3527 to 3528
invalidArea = "A área de corte se estende além dos limites do PDF"

[crop.preview]
title = "Seleção da área de corte"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/pt-PT/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Posição Y"

[crop.error]
failed = "Falha ao recortar o PDF"
Comment on lines 3527 to 3528
invalidArea = "A área de recorte excede os limites do PDF"

[crop.preview]
title = "Seleção da área de recorte"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ro-RO/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Poziția Y"

[crop.error]
failed = "Nu s-a putut decupa PDF-ul"
Comment on lines 3527 to 3528
invalidArea = "Zona de decupare depășește limitele PDF-ului"

[crop.preview]
title = "Selecție zonă de decupare"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/ru-RU/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Положение Y"

[crop.error]
failed = "Не удалось обрезать PDF"
Comment on lines 3527 to 3528
invalidArea = "Область обрезки выходит за границы PDF"

[crop.preview]
title = "Выбор области обрезки"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/sk-SK/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Pozícia Y"

[crop.error]
failed = "Nepodarilo sa orezať PDF"
Comment on lines 3527 to 3528
invalidArea = "Oblasť orezania presahuje hranice PDF"

[crop.preview]
title = "Výber oblasti orezania"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/sl-SI/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Položaj Y"

[crop.error]
failed = "Obrezovanje PDF-ja ni uspelo"
Comment on lines 3527 to 3528
invalidArea = "Območje obrezovanja presega meje PDF-ja"

[crop.preview]
title = "Izbira območja obrezovanja"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y pozicija"

[crop.error]
failed = "Nije uspelo isecanje PDF-a"
Comment on lines 3527 to 3528
invalidArea = "Oblast isečka prelazi granice PDF-a"

[crop.preview]
title = "Izbor oblasti za isecanje"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/sv-SE/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y-position"

[crop.error]
failed = "Det gick inte att beskära PDF"
Comment on lines 3527 to 3528
invalidArea = "Beskärningsområdet sträcker sig utanför PDF:ens gränser"

[crop.preview]
title = "Val av beskärningsområde"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/th-TH/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "ตำแหน่ง Y"

[crop.error]
failed = "ครอบตัด PDF ไม่สำเร็จ"
Comment on lines 3527 to 3528
invalidArea = "พื้นที่ครอบตัดเกินขอบเขตของ PDF"

[crop.preview]
title = "การเลือกพื้นที่ครอบตัด"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/tr-TR/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y Konumu"

[crop.error]
failed = "PDF kırpılamadı"
Comment on lines 3527 to 3528
invalidArea = "Kırpma alanı PDF sınırlarının dışına taşıyor"

[crop.preview]
title = "Kırpma Alanı Seçimi"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/uk-UA/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Позиція Y"

[crop.error]
failed = "Не вдалося обрізати PDF"
Comment thread
balazs-szucs marked this conversation as resolved.
invalidArea = "Область обрізки виходить за межі PDF"

[crop.preview]
title = "Вибір області обрізки"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/vi-VN/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Vị trí Y"

[crop.error]
failed = "Không cắt được PDF"
Comment on lines 3527 to 3528
invalidArea = "Vùng cắt vượt quá ranh giới PDF"

[crop.preview]
title = "Chọn vùng cắt"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/zh-BO/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y 位置"

[crop.error]
failed = "裁剪 PDF 失败"
Comment thread
balazs-szucs marked this conversation as resolved.
invalidArea = "裁剪区域超出 PDF 边界"

[crop.preview]
title = "裁剪区域选择"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/zh-CN/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y 位置"

[crop.error]
failed = "裁剪 PDF 失败"
Comment on lines 3527 to 3528
invalidArea = "裁剪区域超出 PDF 边界"

[crop.preview]
title = "裁剪区域选择"
Expand Down
1 change: 0 additions & 1 deletion frontend/editor/public/locales/zh-TW/translation.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3314,7 +3314,6 @@ label = "Y 位置"

[crop.error]
failed = "裁切 PDF 失敗"
Comment on lines 3527 to 3528
invalidArea = "裁切區域超出 PDF 邊界"

[crop.preview]
title = "裁切區域選擇"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { useMemo, useState, useEffect } from "react";
import {
Stack,
Text,
Box,
Group,
Center,
Alert,
Checkbox,
} from "@mantine/core";
import { Stack, Text, Box, Group, Center, Checkbox } from "@mantine/core";
import { ActionIcon } from "@app/ui/ActionIcon";
import { useTranslation } from "react-i18next";
import RestartAltIcon from "@mui/icons-material/RestartAlt";
Expand Down Expand Up @@ -170,7 +162,6 @@ const CropSettings = ({ parameters, disabled = false }: CropSettingsProps) => {
);
}

const isCropValid = parameters.isCropAreaValid(pdfBounds);
const isFullCrop = parameters.isFullPDFCrop(pdfBounds);

return (
Expand Down Expand Up @@ -248,18 +239,6 @@ const CropSettings = ({ parameters, disabled = false }: CropSettingsProps) => {
showAutomationInfo={false}
/>
)}

{/* Validation Alert - Only show when autoCrop is false */}
{!parameters.parameters.autoCrop && !isCropValid && (
<Alert color="red" variant="light">
<Text size="xs">
{t(
"crop.error.invalidArea",
"Crop area extends beyond PDF boundaries",
)}
</Text>
</Alert>
)}
</Stack>
);
};
Expand Down
Loading
Loading