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

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue Oct 23 01:54:53 UTC 2012


From: "Zeeshan Ali (Khattak)" <zeeshanak at 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




More information about the virt-tools-list mailing list