[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [libosinfo v2 2/4] Load localized values for entity params



From: "Zeeshan Ali (Khattak)" <zeeshanak gnome org>

Use the localized values of entity params if available.
---
 osinfo/osinfo_loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index 47db85b..88de701 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -232,7 +232,8 @@ static void osinfo_loader_entity(OsinfoLoader *loader,
             return;
 
         if (value) {
-            osinfo_entity_set_param(entity, keys[i], value);
+            const gchar *local_value = g_dgettext(GETTEXT_PACKAGE, value);
+            osinfo_entity_set_param(entity, keys[i], local_value);
             g_free(value);
         }
     }
-- 
1.7.12.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]