浏览代码

:art: Update text

Daniel 2 年之前
父节点
当前提交
5a458c9c09

+ 1 - 1
app/appearance/langs/en_US.json

@@ -1096,7 +1096,7 @@
     "126": "Bookmark cannot be empty",
     "126": "Bookmark cannot be empty",
     "127": "There are [%d] days left before the subscription expires, after which the cloud data will be completely deleted. To renew, please visit <a target='_blank' href='${url}'>here</a>",
     "127": "There are [%d] days left before the subscription expires, after which the cloud data will be completely deleted. To renew, please visit <a target='_blank' href='${url}'>here</a>",
     "128": "The subscription has expired. After the expiration, the cloud data will be completely deleted. The reminder will no longer pop up two days after the subscription expires. To renew, please visit <a target='_blank' href='${url}'>here</a>",
     "128": "The subscription has expired. After the expiration, the cloud data will be completely deleted. The reminder will no longer pop up two days after the subscription expires. To renew, please visit <a target='_blank' href='${url}'>here</a>",
-    "129": "Cloud data has been corrupted, please refer to <a href=\"https://ld246.com/article/1658499492287\" target=\"_blank\">here</a> to resolve the issue",
+    "129": "Cloud data has been corrupted, please reset the local data repo and cloud sync dir to resolve the issue",
     "130": "Starting new version installer...",
     "130": "Starting new version installer...",
     "131": "This operation is not supported, please go to the cloud storage provider management console to operate",
     "131": "This operation is not supported, please go to the cloud storage provider management console to operate",
     "132": "The current search method does not support the replace operation, please use the [Keyword] or [Regex] search method",
     "132": "The current search method does not support the replace operation, please use the [Keyword] or [Regex] search method",

+ 1 - 1
app/appearance/langs/es_ES.json

@@ -1096,7 +1096,7 @@
     "126": "El marcador no puede estar vacío",
     "126": "El marcador no puede estar vacío",
     "127": "There are [%d] days left before the subscription expires, after which the cloud data will be completely deleted. Please visit <a target='_blank' href='${url}'>Aquí</a> para la renovación",
     "127": "There are [%d] days left before the subscription expires, after which the cloud data will be completely deleted. Please visit <a target='_blank' href='${url}'>Aquí</a> para la renovación",
     "128": "La suscripción caducó. Después de la caducidad, los datos de la nube se eliminarán por completo. El recordatorio ya no aparecerá dos días después de que caduque la suscripción. Para renovar, visite <a target='_blank' href='${url}'>aquí</a>",
     "128": "La suscripción caducó. Después de la caducidad, los datos de la nube se eliminarán por completo. El recordatorio ya no aparecerá dos días después de que caduque la suscripción. Para renovar, visite <a target='_blank' href='${url}'>aquí</a>",
-    "129": "Los datos de la nube se han dañado, consulte <a href=\"https://ld246.com/article/1658499492287\" target=\"_blank\">aquí</a> para resolver el problema",
+    "129": "Los datos de la nube se han dañado, reinicie el repositorio de datos local y el directorio de sincronización en la nube para resolver el problema",
     "130": "Iniciando instalador de nueva versión...",
     "130": "Iniciando instalador de nueva versión...",
     "131": "Esta solicitud no es compatible, vaya a la consola de administración del proveedor de almacenamiento en la nube para operar",
     "131": "Esta solicitud no es compatible, vaya a la consola de administración del proveedor de almacenamiento en la nube para operar",
     "132": "El método de búsqueda actual no admite la operación de reemplazo, utilice el método de búsqueda [Palabra clave] o [Regex]",
     "132": "El método de búsqueda actual no admite la operación de reemplazo, utilice el método de búsqueda [Palabra clave] o [Regex]",

+ 1 - 1
app/appearance/langs/fr_FR.json

@@ -1096,7 +1096,7 @@
     "126": "Les signets ne peuvent pas être vides",
     "126": "Les signets ne peuvent pas être vides",
     "127": "Il reste [%d] jours avant l'expiration de l'abonnement, après quoi les données cloud seront complètement supprimées. Veuillez visiter <a target='_blank' href='${url}'>ici</a> pour le renouvellement",
     "127": "Il reste [%d] jours avant l'expiration de l'abonnement, après quoi les données cloud seront complètement supprimées. Veuillez visiter <a target='_blank' href='${url}'>ici</a> pour le renouvellement",
     "128": "L'abonnement a expiré. Après l'expiration, les données cloud seront complètement supprimées. Le rappel ne s'affichera plus deux jours après l'expiration de l'abonnement. Pour renouveler, veuillez visiter <a target='_blank' href='${url}'>ici</a>",
     "128": "L'abonnement a expiré. Après l'expiration, les données cloud seront complètement supprimées. Le rappel ne s'affichera plus deux jours après l'expiration de l'abonnement. Pour renouveler, veuillez visiter <a target='_blank' href='${url}'>ici</a>",
-    "129": "Les données cloud ont été corrompues, veuillez vous référer à <a href=\"https://ld246.com/article/1658499492287\" target=\"_blank\">ici</a> pour résoudre le problème",
+    "129": "Les données cloud ont été corrompues, veuillez réinitialiser le dépôt de données local et le répertoire de synchronisation cloud pour résoudre le problème",
     "130": "Démarrage du programme d'installation de la nouvelle version...",
     "130": "Démarrage du programme d'installation de la nouvelle version...",
     "131": "Cette opération n'est pas prise en charge, veuillez vous rendre sur la console de gestion du fournisseur de stockage cloud pour opérer",
     "131": "Cette opération n'est pas prise en charge, veuillez vous rendre sur la console de gestion du fournisseur de stockage cloud pour opérer",
     "132": "La méthode de recherche actuelle ne prend pas en charge l'opération de remplacement, veuillez utiliser la méthode de recherche [Mot-clé] ou [Regex]",
     "132": "La méthode de recherche actuelle ne prend pas en charge l'opération de remplacement, veuillez utiliser la méthode de recherche [Mot-clé] ou [Regex]",

+ 1 - 1
app/appearance/langs/zh_CHT.json

@@ -1096,7 +1096,7 @@
     "126": "書籤不能為空",
     "126": "書籤不能為空",
     "127": "訂閱距過期還剩 [%d] 天,過期後雲端數據會被徹底刪除。續訂請訪問<a target='_blank' href='${url}'>這裡</a>",
     "127": "訂閱距過期還剩 [%d] 天,過期後雲端數據會被徹底刪除。續訂請訪問<a target='_blank' href='${url}'>這裡</a>",
     "128": "訂閱已經過期,過期後雲端數據會被徹底刪除,訂閱過期兩天后不再彈出該提醒,續訂請訪問<a target='_blank' href='${url}'>這裡</a>",
     "128": "訂閱已經過期,過期後雲端數據會被徹底刪除,訂閱過期兩天后不再彈出該提醒,續訂請訪問<a target='_blank' href='${url}'>這裡</a>",
-    "129": "雲端數據已經損壞,請參考<a href=\"https://ld246.com/article/1658499492287\" target=\"_blank\">這裡</a>解決該問題",
+    "129": "雲端數據已經損壞,請參考<a href=\"https://ld246.com/article/1683395267749\" target=\"_blank\">這裡</a>解決該問題",
     "130": "正在啟動新版本安裝程式...",
     "130": "正在啟動新版本安裝程式...",
     "131": "不支持該操作,請到雲端存儲提供商管理控制台進行操作",
     "131": "不支持該操作,請到雲端存儲提供商管理控制台進行操作",
     "132": "當前搜索方式下不支持替換操作,請使用 [關鍵字] 或 [正則表達式] 搜索方式",
     "132": "當前搜索方式下不支持替換操作,請使用 [關鍵字] 或 [正則表達式] 搜索方式",

+ 1 - 1
app/appearance/langs/zh_CN.json

@@ -1098,7 +1098,7 @@
     "126": "书签不能为空",
     "126": "书签不能为空",
     "127": "订阅距过期还剩 [%d] 天,过期后云端数据会被彻底删除。续订请访问<a target='_blank' href='${url}'>这里</a>",
     "127": "订阅距过期还剩 [%d] 天,过期后云端数据会被彻底删除。续订请访问<a target='_blank' href='${url}'>这里</a>",
     "128": "订阅已经过期,过期后云端数据会被彻底删除,订阅过期两天后不再弹出该提醒,续订请访问<a target='_blank' href='${url}'>这里</a>",
     "128": "订阅已经过期,过期后云端数据会被彻底删除,订阅过期两天后不再弹出该提醒,续订请访问<a target='_blank' href='${url}'>这里</a>",
-    "129": "云端数据已经损坏,请参考<a href=\"https://ld246.com/article/1658499492287\" target=\"_blank\">这里</a>解决该问题",
+    "129": "云端数据已经损坏,请参考<a href=\"https://ld246.com/article/1683395267749\" target=\"_blank\">这里</a>解决该问题",
     "130": "正在启动新版本安装程序...",
     "130": "正在启动新版本安装程序...",
     "131": "不支持该操作,请到云端存储提供商管理控制台进行操作",
     "131": "不支持该操作,请到云端存储提供商管理控制台进行操作",
     "132": "当前搜索方式下不支持替换操作,请使用 [关键字] 或 [正则表达式] 搜索方式",
     "132": "当前搜索方式下不支持替换操作,请使用 [关键字] 或 [正则表达式] 搜索方式",

+ 3 - 3
app/electron/main.js

@@ -135,8 +135,8 @@ const showErrorWindow = (title, content) => {
         errorHTMLPath = path.join(appDir, "electron", "error.html");
         errorHTMLPath = path.join(appDir, "electron", "error.html");
     }
     }
     const errWindow = new BrowserWindow({
     const errWindow = new BrowserWindow({
-        width: Math.floor(screen.getPrimaryDisplay().size.width / 2),
-        height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height / 2),
+        width: Math.floor(screen.getPrimaryDisplay().size.width * 0.5),
+        height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height * 0.8),
         frame: false,
         frame: false,
         icon: path.join(appDir, "stage", "icon-large.png"),
         icon: path.join(appDir, "stage", "icon-large.png"),
         webPreferences: {
         webPreferences: {
@@ -488,7 +488,7 @@ const initKernel = (workspace, port, lang) => {
                             errorWindowId = showErrorWindow("⚠️ 初始化工作空间失败 Failed to create workspace directory", "<div>初始化工作空间失败。</div><div>Failed to init workspace.</div>");
                             errorWindowId = showErrorWindow("⚠️ 初始化工作空间失败 Failed to create workspace directory", "<div>初始化工作空间失败。</div><div>Failed to init workspace.</div>");
                             break;
                             break;
                         case 26:
                         case 26:
-                            errorWindowId = showErrorWindow("⚠️ 文件系统读写错误 File system access error", "<div>1. 请检查文件系统权限,并确保没有其他程序正在读写文件<br>2. 请勿使用第三方同步盘进行数据同步,否则数据会被损坏(iCloud/OneDrive/Dropbox/Google Drive/坚果云/百度网盘/腾讯微云等)<br><br>解决方案:请将工作空间移动到其他路径后再打开</div><div>1. Please check file system permissions and make sure no other programs are reading or writing to the file<br>2. Do not use a third-party sync disk for data sync, otherwise the data will be damaged (OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.)<br><br>Solution: Please move the workspace to another path before opening it</div>");
+                            errorWindowId = showErrorWindow("🚒 已成功避免潜在的数据损坏<br>Successfully avoid potential data corruption", "<div>工作空间下的文件正在被第三方软件(比如同步盘 iCloud/OneDrive/Dropbox/Google Drive/坚果云/百度网盘/腾讯微云等)扫描读取占用,继续使用会导致数据损坏,思源内核已经安全退出。<br><br>请将工作空间移动到其他路径后再打开,停止同步盘同步工作空间。如果以上步骤无法解决问题,请参考<a href=\"https://ld246.com/article/1684586140917\">这里</a>或者<a href=\"https://ld246.com/article/1649901726096\" target=\"_blank\">发帖</a>寻求帮助。</div><hr><div>The files in the workspace are being scanned and read by third-party software (such as sync disk iCloud/OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.), continuing to use it will cause data corruption, and the SiYuan kernel is already safe shutdown.<br><br>Move the workspace to another path and open it again, stop the sync disk to sync the workspace. If the above steps do not resolve the issue, please look for help or report bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">here</a>.</div>");
                             break;
                             break;
                         case 0:
                         case 0:
                             break;
                             break;

+ 2 - 0
kernel/util/runtime.go

@@ -165,6 +165,8 @@ func CheckFileSysStatus() {
 	}
 	}
 
 
 	for {
 	for {
+		time.Sleep(10 * time.Second)
+		ReportFileSysFatalError(fmt.Errorf("test error"))
 		<-thirdPartySyncCheckTicker.C
 		<-thirdPartySyncCheckTicker.C
 		checkFileSysStatus()
 		checkFileSysStatus()
 	}
 	}