diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-25 02:07:13 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-25 02:07:13 +0000 |
commit | 6a8b49284869128b2effbd80cfb9364b326ad5f9 (patch) | |
tree | 8e6effb09c439976f2698be04e10e347de79573b /scripts | |
parent | efeb929ce3d1ab03b83a2b550e308a16e18f4565 (diff) | |
download | anaconda-6a8b49284869128b2effbd80cfb9364b326ad5f9.tar.gz anaconda-6a8b49284869128b2effbd80cfb9364b326ad5f9.tar.xz anaconda-6a8b49284869128b2effbd80cfb9364b326ad5f9.zip |
broke all language-related operations. so there.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/genlocalelist | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/scripts/genlocalelist b/scripts/genlocalelist index 4e0bb499e..ae3d01e4c 100755 --- a/scripts/genlocalelist +++ b/scripts/genlocalelist @@ -96,22 +96,23 @@ while (<FILE>) { $fullName = "$name ($territory)"; } - if ($langList{$lang}) { - # this is a hack - if (length($langList{$lang}) < length($fullName)) { - $langList{$lang} = $fullName; - $charmapList{$lang} = $charmap; - } - } else { - $langList{$lang} = $fullName; - $charmapList{$lang} = $charmap; - } + $langList{$lang} = $fullName; + $charmapList{$lang} = $charmap; } close(FILE); for $key (keys %langList) { - $nameList{$langList{$key}} = $key; + $langName = $langList{$key}; + if ($nameList{$langName}) { + # we have a conflict. longest wins + if (length($key) > length($nameList{$langName})) { + $nameList{$langName} = $key; + } else { + } + } else { + $nameList{$langName} = $key; + } } @names = sort(keys %nameList); |