layout = beg;
+ /* if multiple languages are present we just take the first one */
+ pch = strchr(layout, ',');
+ if (pch)
+ *pch = '\0';
+
/* "variant" */
beg = strchr(end + 1, '"');
beg += 1;
layout = beg;
+ /* if multiple languages are present we just take the first one */
+ pch = strchr(layout, ',');
+ if (pch)
+ *pch = '\0';
+
/* "variant" */
beg = strchr(end + 1, '"');
beg += 1;
{ "gh", 0, gh_variants }, /* Ghana */
{ "gn", 0, NULL }, /* Guinea */
{ "ge", KBD_GEORGIAN, ge_variants }, /* Georgia */
+ { "at", KBD_GERMAN, de_variants }, /* Austria */
{ "de", KBD_GERMAN, de_variants }, /* Germany */
{ "gr", KBD_GREEK, gr_variants }, /* Greece */
{ "hu", KBD_HUNGARIAN, hu_variants }, /* Hungary */