Bug 51488 - Try harder to look up the right localization
Summary: Try harder to look up the right localization
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 17:30 UTC by Matthias Clasen
Modified: 2012-07-06 06:49 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


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

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


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.