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 Jul 23, 2016 at 23:05:42.
(provided by the Example extension).