sugarlabs/sugar — pull request #338 by walterbender (2014-04-17 01:38:20+00:00)
Title: More robust locale matching

Not sure when this issue crept into the OLPC builds, but the locale
that is set by the manufacturing data is of the format es_UY.UTF-8
where as the format of the locales we get from parsing available
languages is es_UY.utf8

This patch matches based on the country code, ignoring the format of
the formating suffix.