builder: Strip "." from locale names too

For instance, "C.utf8" => "C" or "en.utf8" => "en".
Mostly this was already handled for e.g. "en_US.utf8" though...
tingping/wmclass
Alexander Larsson 2016-06-30 11:47:45 +02:00
parent 81e61391be
commit 9558d7d6ae
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ migrate_locale_dir (GFile *source_dir,
if (c != NULL)
*c = 0;
c = strchr (language, '_');
if (c != NULL)
*c = 0;
c = strchr (language, '.');
if (c != NULL)
*c = 0;