update
This commit is contained in:
parent
dd5f19d162
commit
2f896bd704
@ -1,77 +1,77 @@
|
|||||||
From 758b69f9834d24120a7e5f1c20cf5b63c67a4aca Mon Sep 17 00:00:00 2001
|
From 758b69f9834d24120a7e5f1c20cf5b63c67a4aca Mon Sep 17 00:00:00 2001
|
||||||
Date: Fri, 14 Feb 2020 18:14:33 +0800
|
Date: Fri, 14 Feb 2020 18:14:33 +0800
|
||||||
Subject: [PATCH] control-center: remove country in the name of timezone
|
Subject: [PATCH] control-center: remove country in the name of timezone
|
||||||
|
|
||||||
Change-Id: I794c649d35e498bdd4273062b982c04ebe953e6c
|
Change-Id: I794c649d35e498bdd4273062b982c04ebe953e6c
|
||||||
---
|
---
|
||||||
gnome-control-center-3.30.1/panels/datetime/backward | 3 +--
|
gnome-control-center-3.30.1/panels/datetime/backward | 3 +--
|
||||||
.../panels/datetime/cc-datetime-panel.c | 12 ++++--------
|
.../panels/datetime/cc-datetime-panel.c | 12 ++++--------
|
||||||
.../panels/datetime/po-timezones/zh_CN.po | 4 ----
|
.../panels/datetime/po-timezones/zh_CN.po | 4 ----
|
||||||
3 files changed, 5 insertions(+), 14 deletions(-)
|
3 files changed, 5 insertions(+), 14 deletions(-)
|
||||||
|
|
||||||
diff --git a/panels/datetime/backward b/panels/datetime/backward
|
diff --git a/panels/datetime/backward b/panels/datetime/backward
|
||||||
index 8594be6..3fe71fc 100644
|
index 8594be6..3fe71fc 100644
|
||||||
--- a/panels/datetime/backward
|
--- a/panels/datetime/backward
|
||||||
+++ b/panels/datetime/backward
|
+++ b/panels/datetime/backward
|
||||||
@@ -35,7 +35,6 @@ Link Asia/Dhaka Asia/Dacca
|
@@ -35,7 +35,6 @@ Link Asia/Dhaka Asia/Dacca
|
||||||
Link Asia/Shanghai Asia/Harbin
|
Link Asia/Shanghai Asia/Harbin
|
||||||
Link Asia/Urumqi Asia/Kashgar
|
Link Asia/Urumqi Asia/Kashgar
|
||||||
Link Asia/Kathmandu Asia/Katmandu
|
Link Asia/Kathmandu Asia/Katmandu
|
||||||
-Link Asia/Macau Asia/Macao
|
-Link Asia/Macau Asia/Macao
|
||||||
Link Asia/Yangon Asia/Rangoon
|
Link Asia/Yangon Asia/Rangoon
|
||||||
Link Asia/Ho_Chi_Minh Asia/Saigon
|
Link Asia/Ho_Chi_Minh Asia/Saigon
|
||||||
Link Asia/Jerusalem Asia/Tel_Aviv
|
Link Asia/Jerusalem Asia/Tel_Aviv
|
||||||
@@ -125,4 +124,4 @@ Link Pacific/Pago_Pago US/Samoa
|
@@ -125,4 +124,4 @@ Link Pacific/Pago_Pago US/Samoa
|
||||||
Link Etc/UTC UTC
|
Link Etc/UTC UTC
|
||||||
Link Etc/UTC Universal
|
Link Etc/UTC Universal
|
||||||
Link Europe/Moscow W-SU
|
Link Europe/Moscow W-SU
|
||||||
-Link Etc/UTC Zulu
|
-Link Etc/UTC Zulu
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
+Link Etc/UTC Zulu
|
+Link Etc/UTC Zulu
|
||||||
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
|
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
|
||||||
index 880490a..23bb7d1 100644
|
index 880490a..23bb7d1 100644
|
||||||
--- a/panels/datetime/cc-datetime-panel.c
|
--- a/panels/datetime/cc-datetime-panel.c
|
||||||
+++ b/panels/datetime/cc-datetime-panel.c
|
+++ b/panels/datetime/cc-datetime-panel.c
|
||||||
@@ -478,7 +478,6 @@ translated_city_name (TzLocation *loc)
|
@@ -478,7 +478,6 @@ translated_city_name (TzLocation *loc)
|
||||||
{
|
{
|
||||||
g_autofree gchar *zone_translated = NULL;
|
g_autofree gchar *zone_translated = NULL;
|
||||||
g_auto(GStrv) split_translated = NULL;
|
g_auto(GStrv) split_translated = NULL;
|
||||||
- g_autofree gchar *country = NULL;
|
- g_autofree gchar *country = NULL;
|
||||||
gchar *name;
|
gchar *name;
|
||||||
gint length;
|
gint length;
|
||||||
|
|
||||||
@@ -490,13 +489,10 @@ translated_city_name (TzLocation *loc)
|
@@ -490,13 +489,10 @@ translated_city_name (TzLocation *loc)
|
||||||
0, 0);
|
0, 0);
|
||||||
|
|
||||||
length = g_strv_length (split_translated);
|
length = g_strv_length (split_translated);
|
||||||
-
|
-
|
||||||
- country = gnome_get_country_from_code (loc->country, NULL);
|
- country = gnome_get_country_from_code (loc->country, NULL);
|
||||||
- /* Translators: "city, country" */
|
- /* Translators: "city, country" */
|
||||||
- name = g_strdup_printf (C_("timezone loc", "%s, %s"),
|
- name = g_strdup_printf (C_("timezone loc", "%s, %s"),
|
||||||
- split_translated[length-1],
|
- split_translated[length-1],
|
||||||
- country);
|
- country);
|
||||||
-
|
-
|
||||||
+ /* Translators: "city" */
|
+ /* Translators: "city" */
|
||||||
+ name = g_strdup_printf (C_("timezone loc", "%s"),
|
+ name = g_strdup_printf (C_("timezone loc", "%s"),
|
||||||
+ split_translated[length-1]);
|
+ split_translated[length-1]);
|
||||||
+
|
+
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/panels/datetime/po-timezones/zh_CN.po b/panels/datetime/po-timezones/zh_CN.po
|
diff --git a/panels/datetime/po-timezones/zh_CN.po b/panels/datetime/po-timezones/zh_CN.po
|
||||||
index 38b053f..6bd84e9 100644
|
index 38b053f..6bd84e9 100644
|
||||||
--- a/panels/datetime/po-timezones/zh_CN.po
|
--- a/panels/datetime/po-timezones/zh_CN.po
|
||||||
+++ b/panels/datetime/po-timezones/zh_CN.po
|
+++ b/panels/datetime/po-timezones/zh_CN.po
|
||||||
@@ -1755,10 +1755,6 @@ msgstr "亚洲/ç§‘å¨ç‰¹"
|
@@ -1755,10 +1755,6 @@ msgstr "亚洲/科威特"
|
||||||
msgid "Asia/Macao"
|
msgid "Asia/Macao"
|
||||||
msgstr "亚洲/澳门"
|
msgstr "亚洲/澳门"
|
||||||
|
|
||||||
-#: timezones.h:530
|
-#: timezones.h:530
|
||||||
-msgid "Asia/Macau"
|
-msgid "Asia/Macau"
|
||||||
-msgstr "亚洲/澳门"
|
-msgstr "亚洲/澳门"
|
||||||
-
|
-
|
||||||
#: timezones.h:531
|
#: timezones.h:531
|
||||||
msgid "Asia/Magadan"
|
msgid "Asia/Magadan"
|
||||||
msgstr "亚洲/é©¬åŠ ä¸¹"
|
msgstr "亚洲/马加丹"
|
||||||
--
|
--
|
||||||
2.19.1
|
2.19.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user