Merge lp:~mvo/software-center/fix-data-provider-i18n into lp:software-center

Proposed by Michael Vogt
Status: Merged
Approved by: dobey
Approved revision: 3304
Merged at revision: 3306
Proposed branch: lp:~mvo/software-center/fix-data-provider-i18n
Merge into: lp:software-center
Diff against target: 13 lines (+4/-0)
1 file modified
softwarecenter/db/dataprovider.py (+4/-0)
To merge this branch: bzr merge lp:~mvo/software-center/fix-data-provider-i18n
Reviewer Review Type Date Requested Status
dobey Approve
Review via email: mp+160565@code.launchpad.net

Commit message

Fix missing init_locale() (LP: #1171163)

Description of the change

This branch adds missing locale initialization for the software-center-dbus data provider.

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/db/dataprovider.py'
2--- softwarecenter/db/dataprovider.py 2012-12-06 16:16:49 +0000
3+++ softwarecenter/db/dataprovider.py 2013-04-24 08:33:02 +0000
4@@ -167,6 +167,10 @@
5 if bus is None:
6 bus = dbus.SessionBus()
7
8+ # apt needs the right locale for the translated package descriptions
9+ from softwarecenter.i18n import init_locale
10+ init_locale()
11+
12 main_context = GLib.main_context_default()
13 main_loop = GLib.MainLoop(main_context)
14

Subscribers

People subscribed via source and target branches