Try harder to look up the right localization
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Jun 2012 00:28:00 +0000 (20:28 -0400)
committerDavid Zeuthen <zeuthen@gmail.com>
Fri, 6 Jul 2012 13:47:10 +0000 (09:47 -0400)
commitfacadfb5c8c52ba45fd20ffe3b6d3ddd4208a427
tree467c5d3422c57aae327ec4ee4adc9387fe1bd0dd
parentacf3a06e55f9ca8a7f7bfa012c24e8794d27c85f
Try harder to look up the right localization

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

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
src/polkitbackend/polkitbackendactionpool.c