[gnome-software: 1/2] Add langpacks-zh_HK to fedora-langpacks plugin
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] Add langpacks-zh_HK to fedora-langpacks plugin
- Date: Mon, 14 Mar 2022 15:51:02 +0000 (UTC)
commit 7107245cbcdd27ff91edc488e2ed86c74a0c18ad
Author: Sundeep Anand <suanand redhat com>
Date: Mon Mar 14 15:50:53 2022 +0000
Add langpacks-zh_HK to fedora-langpacks plugin
The default input method for zh_HK (Hong Kong) locale
has been changed in Fedora 36. This patch fixes
auto-installation of zh_HK langpacks, and hence the
new input method.
plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c
b/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c
index 7b353d339..accbf5b35 100644
--- a/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c
+++ b/plugins/fedora-langpacks/gs-plugin-fedora-langpacks.c
@@ -39,7 +39,7 @@ gs_plugin_fedora_langpacks_init (GsPluginFedoraLangpacks *self)
/*
* A few language code may have more than one language packs.
- * Example: en {en_GB}, pt {pt_BR}, zh {zh_CN, zh_TW}
+ * Example: en {en_GB}, pt {pt_BR}, zh {zh_CN, zh_TW, zh_HK}
*/
self->locale_langpack_map = g_hash_table_new (g_str_hash, g_str_equal);
#pragma GCC diagnostic push
@@ -48,6 +48,7 @@ gs_plugin_fedora_langpacks_init (GsPluginFedoraLangpacks *self)
g_hash_table_insert (self->locale_langpack_map, "pt_BR", "langpacks-pt_BR");
g_hash_table_insert (self->locale_langpack_map, "zh_CN", "langpacks-zh_CN");
g_hash_table_insert (self->locale_langpack_map, "zh_TW", "langpacks-zh_TW");
+ g_hash_table_insert (self->locale_langpack_map, "zh_HK", "langpacks-zh_HK");
#pragma GCC diagnostic pop
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]