代码拉取完成,页面将自动刷新
From a563dba2c4a920b8caae1a3cef9e87168327c9bf Mon Sep 17 00:00:00 2001
From: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
Date: Wed, 27 Jul 2022 17:33:08 +0800
Subject: [PATCH 1/4] Fix the file rename error msg too long
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复文件重命名失败时,错误消息窗口太长的问题
Related #I5I8IM
Signed-off-by: wangxiaoqing <wangxiaoqing@kylinsec.com.cn>
---
po/caja.pot | 4 ++++
po/zh_CN.po | 3 +++
src/file-manager/fm-error-reporting.c | 4 ++++
3 files changed, 11 insertions(+)
diff --git a/po/caja.pot b/po/caja.pot
index 2eb694e..33f556a 100644
--- a/po/caja.pot
+++ b/po/caja.pot
@@ -7503,3 +7503,7 @@ msgstr ""
#: src/file-manager/fm-widget-view.c:447
msgid "Display this location with the widget view."
msgstr ""
+
+#: src/file-manager/fm-error-reporting.c:148
+msgid "File name too long. Please use a different name."
+msgstr ""
diff --git a/po/zh_CN.po b/po/zh_CN.po
index cbaf91e..5a70ffe 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -7607,3 +7607,6 @@ msgstr "用部件视图来展示该位置。"
#~ msgid "network-workgroup"
#~ msgstr "network-workgroup"
+#: src/file-manager/fm-error-reporting.c:148
+msgid "File name too long. Please use a different name."
+msgstr "文件名称太长。请使用另外的名字。"
diff --git a/src/file-manager/fm-error-reporting.c b/src/file-manager/fm-error-reporting.c
index 93cf77f..4a9b515 100644
--- a/src/file-manager/fm-error-reporting.c
+++ b/src/file-manager/fm-error-reporting.c
@@ -144,6 +144,10 @@ fm_report_error_renaming_file (CajaFile *file,
new_name_truncated);
}
break;
+ case G_IO_ERROR_FILENAME_TOO_LONG:
+ message = g_strdup_printf (_("File name too long. "
+ "Please use a different name."));
+ break;
default:
break;
}
--
2.36.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。