5 Star 0 Fork 17

src-openEuler/caja

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Fix-the-file-rename-error-msg-too-long.patch 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/caja.git
git@gitee.com:src-openeuler/caja.git
src-openeuler
caja
caja
master

搜索帮助