po: syntax warning fix

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-11-06 14:08:33 +01:00
parent 7ad5c5cbdc
commit 10af328ff1
1 changed files with 3 additions and 3 deletions

View File

@ -115,9 +115,9 @@ sub checkconfig () { #{{{
! defined $config{po_link_to}) { ! defined $config{po_link_to}) {
$config{po_link_to}='default'; $config{po_link_to}='default';
} }
elsif ($config{po_link_to} != 'default' elsif (! grep {
&& $config{po_link_to} != 'current' $config{po_link_to} eq $_
&& $config{po_link_to} != 'negotiated') { } ('default', 'current', 'negotiated')) {
warn(sprintf(gettext('po_link_to=%s is not a valid setting, falling back to po_link_to=default'), warn(sprintf(gettext('po_link_to=%s is not a valid setting, falling back to po_link_to=default'),
$config{po_link_to})); $config{po_link_to}));
$config{po_link_to}='default'; $config{po_link_to}='default';