Bug 51488 - Try harder to look up the right localization
Try harder to look up the right localization
Status: RESOLVED FIXED
Product: PolicyKit
Classification: Unclassified
Component: daemon
unspecified
Other All
: medium normal
Assigned To: David Zeuthen (not reading bugmail)
David Zeuthen (not reading bugmail)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-27 17:30 UTC by Matthias Clasen
Modified: 2012-07-06 06:49 UTC (History)
2 users (show)

See Also:


Attachments
patch (1.80 KB, patch)
2012-06-27 17:30 UTC, Matthias Clasen
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Clasen 2012-06-27 17:30:44 UTC
Created attachment 63538 [details] [review]
patch

The code for looking up localized strings for action descriptions
was manually trying to break locale names into pieces, but didn't
get it right for e.g. zh_CN.utf-8. Instead, use the GLib function
g_get_locale_variants(), which handles this (and more). This fixes
the translation problem reported in
https://bugzilla.gnome.org/show_bug.cgi?id=665497
Comment 1 David Zeuthen (not reading bugmail) 2012-07-06 06:49:19 UTC
Committed, thanks