light: "خفيفة"
},
- fileSizeEstimate: "تقريبًا {0} {1}"
+ fileSizeEstimate: "تقريبًا {0} {1}",
+ qrDecode: "فك رمز QR",
+ qrDecoding: "فك رمز QR...",
+ qrSuccess: "تم فك رمز QR بنجاح، تم نسخه إلى الملصق",
+ qrNoQRFound: "لم يتم الكشف عن رمز QR صالح",
+ qrError: "فشل فك رمز QR: {0}"
},
de: {
light: "Légère"
},
- fileSizeEstimate: "Environ {0} {1}"
+ fileSizeEstimate: "Environ {0} {1}",
+ qrDecode: "Décoder le QR Code",
+ qrDecoding: "Décodage du QR Code...",
+ qrSuccess: "QR Code décodé avec succès, copié dans le presse-papiers",
+ qrNoQRFound: "Aucun QR Code valide détecté",
+ qrError: "Échec du décodage du QR Code: {0}"
},
ko: {
diff
light: "가벼운"
},
- fileSizeEstimate: "약 {0} {1}"
+ fileSizeEstimate: "약 {0} {1}",
+ qrDecode: "QR 코드 해독",
+ qrDecoding: "QR 코드 해독중...",
+ qrSuccess: "QR 코드가 성공적으로 해독되었습니다, 클립보드에 복사되었습니다",
+ qrNoQRFound: "유효한 QR 코드를 감지하지 못했습니다",
+ qrError: "QR 코드 해독에 실패했습니다: {0}"
}
};
diff
dialogButton.addEventListener('click', () => this.openAIDialog());
+
+ // 添加二维码解析按钮
+ const qrButton = document.createElement('button');
+ qrButton.className = 'ratio-screenshot-button';
+ qrButton.textContent = I18nHelper.getToolbarText('qrDecode');
+ qrButton.title = (() => {
+ const currentLang = I18nHelper.getCurrentLanguage();
+ if (currentLang === 'zh') return '解析截图中的二维码';
+ if (currentLang === 'es') return 'Decodificar código QR';
+ if (currentLang === 'ar') return 'فك رمز QR';
+ if (currentLang === 'de') return 'QR-Code dekodieren';
+ if (currentLang === 'pt') return 'Decodificar QR Code';
+ if (currentLang === 'ja') return 'QRコードを解析';
+ if (currentLang === 'fr') return 'Décoder le QR Code';
+ if (currentLang === 'ko') return 'QR 코드 해독';
+ return 'Decode QR Code';
+ })();
+ qrButton.addEventListener('click', () => this.decodeQRCode());
+
+ primaryRow.appendChild(qrButton);
// 添加快捷键提示
imagePreviewShown: "Image preview shown, right-click to copy",
escape: "Cancel (Esc)",
- imageQualitySet: "Image quality set to: {0}"
+ imageQualitySet: "Image quality set to: {0}",
+ qrDecoding: "Decoding QR code...",
+ qrSuccess: "QR code decoded successfully, copied to clipboard",
+ qrNoQRFound: "No valid QR code detected",
+ qrError: "QR code decoding failed: {0}"
},
es: {
diff
imagePreviewShown: "Vista previa de imagen mostrada, haga clic derecho para copiar",
escape: "Cancelar (Esc)",
- imageQualitySet: "Calidad de imagen establecida en: {0}"
+ imageQualitySet: "Calidad de imagen establecida en: {0}",
+ qrDecoding: "Decodificando código QR...",
+ qrSuccess: "Código QR decodificado correctamente, copiado al portapapeles",
+ qrNoQRFound: "No se detectó un código QR válido",
+ qrError: "Error al decodificar código QR: {0}"
},
ar: {
diff
imagePreviewShown: "تم عرض معاينة الصورة، انقر بزر الماوس الأيمن للنسخ",
escape: "إلغاء (Esc)",
- imageQualitySet: "تم ضبط جودة الصورة على: {0}"
+ imageQualitySet: "تم ضبط جودة الصورة على: {0}",
+ qrDecoding: "فك رمز QR...",
+ qrSuccess: "تم فك رمز QR بنجاح، تم نسخه إلى الملصق",
+ qrNoQRFound: "لم يتم الكشف عن رمز QR صالح",
+ qrError: "فشل فك رمز QR: {0}"
},
de: {
imagePreviewShown: "Pré-visualização de imagem exibida, clique com o botão direito para copiar",
escape: "Cancelar (Esc)",
- imageQualitySet: "Qualidade de imagem definida para: {0}"
+ imageQualitySet: "Qualidade de imagem definida para: {0}",
+ qrDecoding: "Decodificando QR Code...",
+ qrSuccess: "QR Code decodificado com sucesso, copiado para a área de transferência",
+ qrNoQRFound: "Nenhum QR Code válido detectado",
+ qrError: "Falha ao decodificar QR Code: {0}"
},
ja: {