summaryrefslogtreecommitdiffstats
path: root/po/pl_create_placeholder
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-06-20 15:15:01 +0000
committerFrancois Pons <fpons@mandriva.com>2001-06-20 15:15:01 +0000
commit5a49a231106a69e8f079cbd0818edafb6271098b (patch)
treecda9af3e25ed2715ed6407cfa926b9d7ad0b3714 /po/pl_create_placeholder
parentb9ff0252d994fd4499e396a2b60b315534e6137c (diff)
downloadurpmi-5a49a231106a69e8f079cbd0818edafb6271098b.tar
urpmi-5a49a231106a69e8f079cbd0818edafb6271098b.tar.gz
urpmi-5a49a231106a69e8f079cbd0818edafb6271098b.tar.bz2
urpmi-5a49a231106a69e8f079cbd0818edafb6271098b.tar.xz
urpmi-5a49a231106a69e8f079cbd0818edafb6271098b.zip
fixed some strange bugs (does it has ever been running correctly ?).
Diffstat (limited to 'po/pl_create_placeholder')
-rwxr-xr-xpo/pl_create_placeholder13
1 files changed, 7 insertions, 6 deletions
diff --git a/po/pl_create_placeholder b/po/pl_create_placeholder
index 3a34cbdb..f1a07a7f 100755
--- a/po/pl_create_placeholder
+++ b/po/pl_create_placeholder
@@ -158,7 +158,7 @@ for($i = 0; $i <= $#ARGV; $i++)
if($t =~ /\\$/)
{
# the double quote was within the string still.
- $text .= unescapeDQString($t + '"');
+ $text .= unescapeDQString($t . '"');
}
else
{
@@ -185,7 +185,7 @@ for($i = 0; $i <= $#ARGV; $i++)
if($t =~ s/\\$//)
{
# the single quote was still in the string.
- $text .= unescapeDQString($t + "'");
+ $text .= unescapeDQString($t . "'");
}
else
{
@@ -220,7 +220,7 @@ for($i = 0; $i <= $#ARGV; $i++)
elsif($state eq 'end_text')
{
# we allow only period to appear between strings.
- if($line =~ s/^\s*([\.\)])//)
+ if($line =~ s/^\s*([\.\),])//)
{
# check what we've got.
if($1 eq '.')
@@ -310,9 +310,9 @@ foreach $msgid (keys(%msgs))
# check how many lines we have.
if($#lines == 0)
{
-# only multiline aren't found by xgettext
+ my $fuck_dblquote = $lines[0]; $fuck_dblquote =~ s/\"/\\\"/g;
# one line format.
- #print OUT "N_(\"$lines[0]\"),\n";
+ print OUT "N_(\"$fuck_dblquote\"),\n";
}
else
{
@@ -320,7 +320,8 @@ foreach $msgid (keys(%msgs))
print OUT "N_(\"\"\n";
foreach $line (@lines)
{
- print OUT "\"$line\"\n"
+ my $fuck_dblquote = $line; $fuck_dblquote =~ s/\"/\\\"/g;
+ print OUT "\"$fuck_dblquote\"\n";
}
print OUT "\"\"),\n";
}