This commit is contained in:
Daniel 2024-10-13 21:50:45 +08:00
parent d34e1b6cdb
commit 89421113d6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
12 changed files with 1564 additions and 1553 deletions

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Nicht genügend verfügbarer Speicher, um dieses PDF zu exportieren, bitte reduzieren Sie den Inhalt oder erhöhen Sie den verfügbaren Speicher und versuchen Sie es erneut",
"exportConf": "Export-Einstellungen",
"exportConfTip": "Konto, Zugriffscode, Synchronisation, API-Token und Daten-Repo-Schlüssel werden nicht exportiert",
"importConf": "Import-Einstellungen",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Insufficient available memory to export this PDF, please reduce the content or increase available memory and try exporting again",
"exportConf": "Export settings",
"exportConfTip": "Account, access authorization code, synchronization, API token and data repo key will not be exported",
"importConf": "Import settings",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Memoria disponible insuficiente para exportar este PDF, por favor reduzca el contenido o aumente la memoria disponible y vuelva a intentar exportar",
"exportConf": "Configuración de exportación",
"exportConfTip": "Las cuentas, los códigos de acceso, la sincronización, los tokens API y las claves del almacén de datos no se exportarán",
"importConf": "Importar configuración",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Mémoire disponible insuffisante pour exporter ce PDF, veuillez réduire le contenu ou augmenter la mémoire disponible et réessayer d'exporter",
"exportConf": "Exporter les paramètres",
"exportConfTip": "Les comptes, codes d'accès, synchronisation, tokens API et clés d'entrepôt de données ne seront pas exportés",
"importConf": "Importer les paramètres",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "אין מספיק זיכרון זמין במערכת כדי לייצא את ה-PDF הזה, נא לצמצם את התוכן או להגדיל את הזיכרון הזמין ולנסות שוב לייצא",
"exportConf": "הגדרות ייצוא",
"exportConfTip": "פרטי חשבון, קוד אישור גישה, סנכרון, אסימון API ומפתח מאגר נתונים לא ייוצאו",
"importConf": "הגדרות ייבוא",

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "システムの利用可能なメモリが不足しているため、このPDFをエクスポートできません。内容を減らすか、利用可能なメモリを増やしてから再試行してください",
"exportConf": "設定のエクスポート",
"exportConfTip": "アカウント、アクセス コード、同期、API トークン、データ ウェアハウス キーはエクスポートされません",
"importConf": "設定のインポート",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Za mało dostępnej pamięci, aby wyeksportować ten PDF, proszę zmniejszyć zawartość lub zwiększyć dostępną pamięć i spróbować ponownie",
"exportConf": "Ustawienia eksportu",
"exportConfTip": "Konto, kod autoryzacji dostępu, synchronizacja, token API i klucz repozytorium danych nie będą eksportowane",
"importConf": "Ustawienia importu",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "Недостаточно доступной памяти для экспорта этого PDF, пожалуйста, уменьшите содержимое или увеличьте доступную память и повторите попытку экспорта",
"exportConf": "Экспорт настроек",
"exportConfTip": "Учетная запись, код авторизации доступа, синхронизация, API токен и ключ репозитория данных не будут экспортированы",
"importConf": "Импорт настроек",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "系統可用記憶體不足,無法導出該 PDF請減少內容或者增加可用記憶體後再嘗試導出",
"exportConf": "匯出設定",
"exportConfTip": "帳號、存取授權碼、同步、API token 和資料倉儲金鑰不會被匯出",
"importConf": "導入設定",

View file

@ -1,4 +1,5 @@
{
"exportPDFLowMemory": "系统可用内存不足,无法导出该 PDF请减少内容或者增加可用内存后再尝试导出",
"exportConf": "导出设置",
"exportConfTip": "账号、访问授权码、同步、API token 和数据仓库密钥不会被导出",
"importConf": "导入设置",

View file

@ -289,7 +289,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
webContentsId: ipcData.webContentsId
});
const savePath = ipcData.filePaths[0];
let pdfFilePath = path.join(savePath, replaceLocalPath(ipcData.rootTitle) + ".pdf");
let pdfFilePath = path.join(savePath, replaceLocalPath(ipcData.rootTitle) + ".pdf");
const responseUnique = await fetchSyncPost("/api/file/getUniqueFilename", {path: pdfFilePath});
pdfFilePath = responseUnique.data.path;
fetchPost("/api/export/exportHTML", {
@ -335,7 +335,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
});
} catch (e) {
console.error(e);
showMessage("Export PDF failed: " + e, 0, "error", msgId);
showMessage(window.siyuan.languages.exportPDFLowMemory, 0, "error", msgId);
ipcRenderer.send(Constants.SIYUAN_CMD, {cmd: "destroy", webContentsId: ipcData.webContentsId});
}
ipcRenderer.send(Constants.SIYUAN_CMD, {cmd: "hide", webContentsId: ipcData.webContentsId});