Bug 498420

Summary: Missing gettext initialisation for glade
Product: [Community] Virtualization Tools Reporter: Emmanuel Lacour <elacour>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: crobinso, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-11 16:41:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix missing gettext initialisation for glade none

Description Emmanuel Lacour 2009-04-30 12:34:38 UTC
Created attachment 341917 [details]
Patch to fix missing gettext initialisation for glade

Description of problem:

Some strings are not translated in the UI, even the string is in the .po file.

Version-Release number of selected component (if applicable):

trunk as of 20090430

How reproducible:

each time

Steps to Reproduce:
1. set your locale to fr_FR
2. start virt-manager
  
Actual results:

In the menu, "File" is displayed as "File".

Expected results:

In the menu, "File" should be translated as "Fichier"

Additional info:

The attached patch fixes this problem by setting the gettext domain for glade (only python gettext domain was set up).

Comment 1 Cole Robinson 2009-05-11 16:41:22 UTC
Hmm, seems to work fine here without the patch, but it doesn't seem to hurt, so I've committed a variant of it upstream:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-manager--devel/rev/9a1ec5ee501e

Thanks!