1 --- liblangtag/lt-tag.c
2 +++ liblangtag/lt-tag.c
3 @@ -2009,11 +2009,23 @@
5 lt_string_append_printf(string, "_%s",
6 lt_region_get_tag(ctag->region));
9 mod = lt_script_convert_to_modifier(ctag->script);
11 - lt_string_append_printf(string, "@%s", mod);
12 + if (!mod && ctag->variants)
15 + for (l = ctag->variants; l != NULL; l = lt_list_next(l)) {
16 + lt_variant_t *variant = lt_list_value(l);
17 + const char *s = lt_variant_get_tag(variant);
18 + if (lt_strcmp0(s, "valencia") == 0) {
25 + lt_string_append_printf(string, "@%s", mod);