From 758b69f9834d24120a7e5f1c20cf5b63c67a4aca Mon Sep 17 00:00:00 2001 Date: Fri, 14 Feb 2020 18:14:33 +0800 Subject: [PATCH] control-center: remove country in the name of timezone Change-Id: I794c649d35e498bdd4273062b982c04ebe953e6c --- 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 eb7e78b..3a58d93 100644 --- a/panels/datetime/cc-datetime-panel.c +++ b/panels/datetime/cc-datetime-panel.c @@ -414,7 +414,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; @@ -427,11 +426,10 @@ 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 "亚洲/马加丹"