Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -1110,7 +1110,9 @@ |
1111 | 1111 | $block = ''; |
1112 | 1112 | foreach( $collection as $message ) { |
1113 | 1113 | if( $message->translation() == '' ) continue; |
1114 | | - $translation = str_replace( '\'', '\\\'', $message->translation() ); |
| 1114 | + $translation = str_replace( '\\', '\\\\', $message->translation() ); |
| 1115 | + $translation = str_replace( '\'', '\\\'', $translation ); |
| 1116 | + $translation = str_replace( "\n", '\n', $translation ); |
1115 | 1117 | $block .= "\t\t'{$message->key()}': u'{$translation}',\n"; |
1116 | 1118 | } |
1117 | 1119 | return $block; |