diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-03-07 06:27:27 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-03-07 06:27:27 +0000 |
commit | 7ae2deacdf5ebf7274da8c77daf42b43aca985c0 (patch) | |
tree | c5e8bd391fceef4818866d9308d47392dc269511 /IkiWiki | |
parent | 4a770de3ac54c51e01ff1279f3cd869952ecc51c (diff) |
improve l10n
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/sparkline.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/IkiWiki/Plugin/sparkline.pm b/IkiWiki/Plugin/sparkline.pm index 27e4ff154..a44e06252 100644 --- a/IkiWiki/Plugin/sparkline.pm +++ b/IkiWiki/Plugin/sparkline.pm @@ -60,13 +60,13 @@ sub preprocess (@) { #{{{ } } elsif (! length $value) { - return "[[sparkline parse error \"$key\"]]"; + return "[[".gettext("sparkline parse error")." \"$key\"]]"; } elsif ($key eq 'featurepoint') { my ($x, $y, $color, $diameter, $text, $location)= split(/\s*,\s*/, $value); if (! defined $diameter || $diameter < 0) { - return "[[sparkline bad featurepoint diameter]]"; + return "[[".gettext("sparkline bad featurepoint diameter")."]]"; } $x=int($x); $y=int($y); @@ -76,7 +76,7 @@ sub preprocess (@) { #{{{ if (defined $location) { $location=$locmap{$location}; if (! defined $location) { - return "[[sparkline bad featurepoint location]]"; + return "[[".gettext("sparkline bad featurepoint location")."]]"; } } $php.=qq{\$sparkline->SetFeaturePoint($x, $y, '$color', $diameter}; @@ -87,29 +87,29 @@ sub preprocess (@) { #{{{ } if ($c eq 0) { - return "[[sparkline missing values]]"; + return "[[".gettext("sparkline missing values")."]]"; } my $height=int($params{height} || 20); if ($height < 2 || $height > 100) { - return "[[sparkline bad height value]]"; + return "[[".gettext("sparkline bad height value")."]]"; } if ($style eq "Bar") { $php.=qq{\$sparkline->Render($height);\n}; } else { if (! exists $params{width}) { - return "[[sparkline missing width parameter]]"; + return "[[".gettext("sparkline missing width parameter")."]]"; } my $width=int($params{width}); if ($width < 2 || $width > 1024) { - return "[[sparkline bad width value]]"; + return "[[".gettext("sparkline bad width value")."]]"; } $php.=qq{\$sparkline->RenderResampled($width, $height);\n}; } if ($params{preview}) { - return "[[sparkline previewing not implemented]]"; + return "[[".gettext("sparkline previewing not implemented")."]]"; } $php.=qq{\$sparkline->Output();\n?>\n}; |