Created attachment 63538 [details] [review]
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
on Oct 27, 2016 at 04:58:34.
(provided by the Example extension).