1 Star 0 Fork 18

chen wei/gnome-control-center

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gnome-control-center-remove-country-in-the-name-of-timezone.patch 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
丈青山 提交于 2022-06-09 11:53 . Udpate to 42.0
diff --git a/panels/datetime/backward b/panels/datetime/backward
index 8594be6..3fe71fc 100644
--- a/panels/datetime/backward
+++ b/panels/datetime/backward
@@ -35,7 +35,6 @@ Link Asia/Dhaka Asia/Dacca
Link Asia/Shanghai Asia/Harbin
Link Asia/Urumqi Asia/Kashgar
Link Asia/Kathmandu Asia/Katmandu
-Link Asia/Macau Asia/Macao
Link Asia/Yangon Asia/Rangoon
Link Asia/Ho_Chi_Minh Asia/Saigon
Link Asia/Jerusalem Asia/Tel_Aviv
@@ -125,4 +124,4 @@ Link Pacific/Pago_Pago US/Samoa
Link Etc/UTC UTC
Link Etc/UTC Universal
Link Europe/Moscow W-SU
-Link Etc/UTC Zulu
\ No newline at end of file
+Link Etc/UTC Zulu
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index c1e6aaa..f562556 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -405,7 +405,6 @@ translated_city_name (TzLocation *loc)
{
g_autofree gchar *zone_translated = NULL;
g_auto(GStrv) split_translated = NULL;
- g_autofree gchar *country = NULL;
gchar *name;
gint length;
@@ -418,11 +417,9 @@ translated_city_name (TzLocation *loc)
length = g_strv_length (split_translated);
- country = gnome_get_country_from_code (loc->country, NULL);
- /* Translators: "city, country" */
- name = g_strdup_printf (C_("timezone loc", "%s, %s"),
- split_translated[length-1],
- country);
+ /* Translators: "city" */
+ name = g_strdup_printf (C_("timezone loc", "%s"),
+ split_translated[length-1]);
return name;
}
diff --git a/panels/datetime/po-timezones/zh_CN.po b/panels/datetime/po-timezones/zh_CN.po
index 38b053f..6bd84e9 100644
--- a/panels/datetime/po-timezones/zh_CN.po
+++ b/panels/datetime/po-timezones/zh_CN.po
@@ -1755,10 +1755,6 @@ msgstr "亚洲/科威特"
msgid "Asia/Macao"
msgstr "亚洲/澳门"
-#: timezones.h:530
-msgid "Asia/Macau"
-msgstr "亚洲/澳门"
-
#: timezones.h:531
msgid "Asia/Magadan"
msgstr "亚洲/马加丹"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenwei_kernel/gnome-control-center.git
[email protected]:chenwei_kernel/gnome-control-center.git
chenwei_kernel
gnome-control-center
gnome-control-center
master

搜索帮助