Index: trunk/extensions/Translate/ffs/OpenLayers.php |
— | — | @@ -56,6 +56,9 @@ |
57 | 57 | public function parseMessages( StringMangler $mangler ) { |
58 | 58 | $data = file_get_contents( $this->filename ); |
59 | 59 | |
| 60 | + // Add trailing comma to last key pair. |
| 61 | + $data = str_replace( "\"\n};", "\",\n};", $data ); |
| 62 | + |
60 | 63 | // Just get relevant data. |
61 | 64 | $dataStart = strpos( $data, '{' ); |
62 | 65 | $dataEnd = strrpos( $data, '}' ); |