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 Jan 17, 2017 at 04:52:47.
(provided by the Example extension).