Test case:
recently added chinese translations.
configure
writes as:
$TWiki::cfg{Languages}{zh-tw}{Enabled} = 1;
$TWiki::cfg{Languages}{zh-cn}{Enabled} = 1;
when the right would be:
$TWiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
$TWiki::cfg{Languages}{'zh-cn'}{Enabled} = 1;
ie, in this case
zh-cn
is parsed as
'zh' - 'cn'
, what is evaluated to zero. This way
%TWiki::cfg{Languages }
gets an entry with key
0
and value
{'Enabled' => 1 }
.
Also: even if
TWiki.cfg
has the right thing (i.e.
$TWiki::cfg{Languages}{'zh-tw'}{Enabled} = 1;
),
configure does not detect this value when reading TWiki.cfg. It looks like it parses the key as a literal
"'zh-cn'"
,
with the quotes. Need to check.
AT
SVN 8310
CC