60 lines
2.0 KiB
Diff
60 lines
2.0 KiB
Diff
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
|
|
|