Index: trunk/extensions/Translate/utils/TranslateYaml.php |
— | — | @@ -79,13 +79,15 @@ |
80 | 80 | 'sub deutf8 {' . |
81 | 81 | 'if(ref($_[0]) eq "HASH") {' . |
82 | 82 | 'return { map { deutf8($_) } %{$_[0]} };' . |
83 | | - '} else {' . |
84 | | - 'my $s = $_[0];' . |
85 | | - 'utf8::decode($s);' . |
86 | | - 'return $s;' . |
87 | | - '}' . |
88 | | - '}' . |
89 | | - "' 2>&1"; |
| 83 | + '} elsif(ref($_[0]) eq "ARRAY") {' . |
| 84 | + 'return [ map { deutf8($_) } @{$_[0]} ];' . |
| 85 | + '} else {' . |
| 86 | + 'my $s = $_[0];' . |
| 87 | + 'utf8::decode($s);' . |
| 88 | + 'return $s;' . |
| 89 | + '}' . |
| 90 | + '}' . |
| 91 | + "' 2>&1"; |
90 | 92 | $out = wfShellExec( $cmd, &$ret ); |
91 | 93 | if ( $ret != 0 ) { |
92 | 94 | wfDebugDieBacktrace("The command '$cmd' died in execution with exit code '$ret': $out"); |