diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-31 15:21:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-31 15:21:20 +0000 |
| commit | 9b8b810b60e699bd69eef0b24fb8c9cf245b5fdd (patch) | |
| tree | d2681f866677712db7c114eedda162fd422cf723 /roundcubemail/bin/exportgettext.sh | |
| parent | 53969b406b906e39cb38852bd3360e5870457408 (diff) | |
Fix export of multiline texts
git-svn-id: https://svn.roundcube.net/trunk@5675 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/bin/exportgettext.sh')
| -rwxr-xr-x | roundcubemail/bin/exportgettext.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/bin/exportgettext.sh b/roundcubemail/bin/exportgettext.sh index b1649ef0d..67fa7ad10 100755 --- a/roundcubemail/bin/exportgettext.sh +++ b/roundcubemail/bin/exportgettext.sh @@ -226,8 +226,9 @@ function gettext_quote($str) { $out = ""; $lines = explode("\n", wordwrap(stripslashes($str))); - foreach ($lines as $line) - $out .= '"' . addcslashes($line, '"') . "\"\n"; + $last = count($lines) - 1; + foreach ($lines as $i => $line) + $out .= '"' . addcslashes($line, '"') . ($i < $last ? ' ' : '') . "\"\n"; return rtrim($out); } |
