diff options
Diffstat (limited to 'Master/tlpkg')
-rw-r--r-- | Master/tlpkg/TeXLive/TLWinGoo.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLWinGoo.pm b/Master/tlpkg/TeXLive/TLWinGoo.pm index 2f319de1645..93ca9ea3bb2 100644 --- a/Master/tlpkg/TeXLive/TLWinGoo.pm +++ b/Master/tlpkg/TeXLive/TLWinGoo.pm @@ -241,7 +241,14 @@ sub reg_country { return 0 unless $lm; debug("found lang codes value = $value, lm = $lm...\n"); if ($lm) { - return(substr $lm, 0, 2); + if ($lm =~ m/^zh-(cn|tw)$/) { + return($lm); + } elsif ($lm =~ m/^zh-/) { + # anything else is mapped to simplified chinese for now + return("zh-cn"); + } else { + return(substr $lm, 0, 2); + } } } |