Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -494,8 +494,8 @@ |
495 | 495 | /** |
496 | 496 | * Strip excess whitespace from key and value, then quotation marks. |
497 | 497 | */ |
498 | | - $key = trim( trim( $segments[0] ), '\'"' ); |
499 | | - $value = trim( trim( $segments[1] ), '\'"' ); |
| 498 | + $key = trim( trim( $segments[0] ), "'\"" ); |
| 499 | + $value = trim( trim( $segments[1] ), "'\"" ); |
500 | 500 | |
501 | 501 | /** |
502 | 502 | * Unescape any JavaScript string syntax and append to message array. |
Index: trunk/extensions/Translate/ffs/OpenLayers.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | # Work around https://bugzilla.mozilla.org/show_bug.cgi?id=274152 |
32 | 32 | # Encode certain Unicode formatting chars so affected |
33 | | - # versions of Gecko don't misinterpret our strings; |
| 33 | + # versions of Gecko do not misinterpret our strings; |
34 | 34 | # this is a common problem with Farsi text. |
35 | 35 | "\xe2\x80\x8c" => "\\u200c", // ZERO WIDTH NON-JOINER |
36 | 36 | "\xe2\x80\x8d" => "\\u200d", // ZERO WIDTH JOINER |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | # $segment = preg_replace( '#\" \+(.*?)\"#m', '', $segment ); |
88 | 88 | // Break in to key and message. |
89 | 89 | if ( $this->keyquote ) { |
90 | | - $segments = explode( '\':', $segment ); |
| 90 | + $segments = explode( "':", $segment ); |
91 | 91 | } else { |
92 | 92 | $segments = explode( ': ', $segment ); |
93 | 93 | } |