Deal with values which are arrays, before and after:
[rails.git] / script / locale / diff
index e45b8e3c6ea34afe8b2d078416830bf3b7d78fd1..aa44ea53de27a404c07ac21e564f142a48f69c6c 100755 (executable)
@@ -111,7 +111,7 @@ my $from_parsed = { iterate($from_data->{fileparse($from, qr/\.[^.]*/)}) };
 if ($dump_flat)
 {
     # Mark as UTF-8
-    map { utf8::decode($_) } values %$from_parsed;
+    map { if (ref $_ eq 'ARRAY') { map { utf8::decode($_) } @$_ } else {  utf8::decode($_) } } values %$from_parsed;
 
     print Dump $from_parsed;