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 Mar 24, 2017 at 10:15:32.
(provided by the Example extension).