* Allow plugins to add new types of tests that can be used in PageSpecs.
* Add a "conditional" plugin, which allows displaying text if a condition is true. It is enabled by default so conditional can be used in the basewiki. * Use conditionals in the template for plugins, so that plugin pages say if they're currently enabled or not, and in various other places in the wiki.master
parent
fe62c0ff20
commit
479c7a1ea6
38
IkiWiki.pm
38
IkiWiki.pm
|
@ -65,7 +65,8 @@ sub defaultconfig () { #{{{
|
||||||
setup => undef,
|
setup => undef,
|
||||||
adminuser => undef,
|
adminuser => undef,
|
||||||
adminemail => undef,
|
adminemail => undef,
|
||||||
plugin => [qw{mdwn inline htmlscrubber passwordauth signinedit lockedit}],
|
plugin => [qw{mdwn inline htmlscrubber passwordauth signinedit
|
||||||
|
lockedit conditional}],
|
||||||
timeformat => '%c',
|
timeformat => '%c',
|
||||||
locale => undef,
|
locale => undef,
|
||||||
sslcookie => 0,
|
sslcookie => 0,
|
||||||
|
@ -850,11 +851,16 @@ sub pagespec_translate ($) { #{{{
|
||||||
elsif ($word eq "(" || $word eq ")" || $word eq "!") {
|
elsif ($word eq "(" || $word eq ")" || $word eq "!") {
|
||||||
$code.=" ".$word;
|
$code.=" ".$word;
|
||||||
}
|
}
|
||||||
elsif ($word =~ /^(link|backlink|created_before|created_after|creation_month|creation_year|creation_day)\((.+)\)$/) {
|
elsif ($word =~ /^(\w+)\((.*)\)$/) {
|
||||||
$code.=" match_$1(\$page, ".safequote($2).")";
|
if (exists $IkiWiki::PageSpec::{"match_$1"}) {
|
||||||
|
$code.=" IkiWiki::PageSpec::match_$1(\$page, ".safequote($2).")";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$code.=" match_glob(\$page, ".safequote($word).", \$from)";
|
$code.=" 0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$code.=" IkiWiki::PageSpec::match_glob(\$page, ".safequote($word).", \$from)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -865,17 +871,19 @@ sub pagespec_match ($$;$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $spec=shift;
|
my $spec=shift;
|
||||||
my $from=shift;
|
my $from=shift;
|
||||||
if (! defined $from){
|
|
||||||
$from = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
return eval pagespec_translate($spec);
|
return eval pagespec_translate($spec);
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
|
package IkiWiki::PageSpec;
|
||||||
|
|
||||||
sub match_glob ($$$) { #{{{
|
sub match_glob ($$$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $glob=shift;
|
my $glob=shift;
|
||||||
my $from=shift;
|
my $from=shift;
|
||||||
|
if (! defined $from){
|
||||||
|
$from = "";
|
||||||
|
}
|
||||||
|
|
||||||
# relative matching
|
# relative matching
|
||||||
if ($glob =~ m!^\./!) {
|
if ($glob =~ m!^\./!) {
|
||||||
|
@ -896,7 +904,7 @@ sub match_link ($$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $link=lc(shift);
|
my $link=lc(shift);
|
||||||
|
|
||||||
my $links = $links{$page} or return undef;
|
my $links = $IkiWiki::links{$page} or return undef;
|
||||||
foreach my $p (@$links) {
|
foreach my $p (@$links) {
|
||||||
return 1 if lc $p eq $link;
|
return 1 if lc $p eq $link;
|
||||||
}
|
}
|
||||||
|
@ -911,8 +919,8 @@ sub match_created_before ($$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $testpage=shift;
|
my $testpage=shift;
|
||||||
|
|
||||||
if (exists $pagectime{$testpage}) {
|
if (exists $IkiWiki::pagectime{$testpage}) {
|
||||||
return $pagectime{$page} < $pagectime{$testpage};
|
return $IkiWiki::pagectime{$page} < $IkiWiki::pagectime{$testpage};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -923,8 +931,8 @@ sub match_created_after ($$) { #{{{
|
||||||
my $page=shift;
|
my $page=shift;
|
||||||
my $testpage=shift;
|
my $testpage=shift;
|
||||||
|
|
||||||
if (exists $pagectime{$testpage}) {
|
if (exists $IkiWiki::pagectime{$testpage}) {
|
||||||
return $pagectime{$page} > $pagectime{$testpage};
|
return $IkiWiki::pagectime{$page} > $IkiWiki::pagectime{$testpage};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -932,15 +940,15 @@ sub match_created_after ($$) { #{{{
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
sub match_creation_day ($$) { #{{{
|
sub match_creation_day ($$) { #{{{
|
||||||
return ((gmtime($pagectime{shift()}))[3] == shift);
|
return ((gmtime($IkiWiki::pagectime{shift()}))[3] == shift);
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
sub match_creation_month ($$) { #{{{
|
sub match_creation_month ($$) { #{{{
|
||||||
return ((gmtime($pagectime{shift()}))[4] + 1 == shift);
|
return ((gmtime($IkiWiki::pagectime{shift()}))[4] + 1 == shift);
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
sub match_creation_year ($$) { #{{{
|
sub match_creation_year ($$) { #{{{
|
||||||
return ((gmtime($pagectime{shift()}))[5] + 1900 == shift);
|
return ((gmtime($IkiWiki::pagectime{shift()}))[5] + 1900 == shift);
|
||||||
} #}}}
|
} #}}}
|
||||||
|
|
||||||
1
|
1
|
||||||
|
|
|
@ -0,0 +1,89 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
package IkiWiki::Plugin::conditional;
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
use IkiWiki;
|
||||||
|
use UNIVERSAL;
|
||||||
|
|
||||||
|
# Globals used to pass information into the PageSpec functions.
|
||||||
|
our ($sourcepage, $destpage);
|
||||||
|
|
||||||
|
sub import { #{{{
|
||||||
|
hook(type => "preprocess", id => "if", call => \&preprocess_if);
|
||||||
|
} # }}}
|
||||||
|
|
||||||
|
sub preprocess_if (@) { #{{{
|
||||||
|
my %params=@_;
|
||||||
|
|
||||||
|
if (! exists $params{test} || ! exists $params{then}) {
|
||||||
|
return "[[if requires \"test\" and \"then\" parameters]]";
|
||||||
|
}
|
||||||
|
|
||||||
|
my $result=0;
|
||||||
|
$sourcepage=$params{page};
|
||||||
|
$destpage=$params{destpage};
|
||||||
|
# An optimisation to avoid needless looping over every page
|
||||||
|
# and adding of dependencies for simple uses of some of the
|
||||||
|
# tests.
|
||||||
|
if ($params{test} =~ /^(enabled|sourcepage|destpage)\((.*)\)$/) {
|
||||||
|
$result=eval "IkiWiki::PageSpec::match_$1(undef, ".
|
||||||
|
IkiWiki::safequote($2).")";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
add_depends($params{page}, $params{test});
|
||||||
|
|
||||||
|
foreach my $page (keys %pagesources) {
|
||||||
|
if (pagespec_match($page, $params{test}, $params{page})) {
|
||||||
|
$result=1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$sourcepage="";
|
||||||
|
$destpage="";
|
||||||
|
|
||||||
|
my $ret;
|
||||||
|
if ($result) {
|
||||||
|
$ret=$params{then};
|
||||||
|
}
|
||||||
|
elsif (exists $params{else}) {
|
||||||
|
$ret=$params{else};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$ret="";
|
||||||
|
}
|
||||||
|
return IkiWiki::preprocess($params{page}, $params{destpage}, $ret);
|
||||||
|
} # }}}
|
||||||
|
|
||||||
|
package IkiWiki::PageSpec;
|
||||||
|
|
||||||
|
sub match_enabled ($$) { #{{{
|
||||||
|
shift;
|
||||||
|
my $plugin=shift;
|
||||||
|
|
||||||
|
# test if the plugin is enabled
|
||||||
|
return UNIVERSAL::can("IkiWiki::Plugin::".$plugin, "import");
|
||||||
|
} #}}}
|
||||||
|
|
||||||
|
sub match_sourcepage ($$) { #{{{
|
||||||
|
shift;
|
||||||
|
my $glob=shift;
|
||||||
|
|
||||||
|
return match_glob($IkiWiki::Plugin::conditional::sourcepage, $glob,
|
||||||
|
$IkiWiki::Plugin::conditional::sourcepage);
|
||||||
|
} #}}}
|
||||||
|
|
||||||
|
sub match_destpage ($$) { #{{{
|
||||||
|
shift;
|
||||||
|
my $glob=shift;
|
||||||
|
|
||||||
|
return match_glob($IkiWiki::Plugin::conditional::destpage, $glob,
|
||||||
|
$IkiWiki::Plugin::conditional::sourcepage);
|
||||||
|
} #}}}
|
||||||
|
|
||||||
|
sub match_included ($$) { #{{{
|
||||||
|
return $IkiWiki::Plugin::conditional::sourcepage ne $IkiWiki::Plugin::conditional::destpage;
|
||||||
|
} #}}}
|
||||||
|
|
||||||
|
1
|
|
@ -72,5 +72,7 @@ To link to any other web page, or to an email address, you can just put the url
|
||||||
|
|
||||||
You can also use [[PreProcessorDirective]]s to do additional cool stuff.
|
You can also use [[PreProcessorDirective]]s to do additional cool stuff.
|
||||||
|
|
||||||
Also, if the smiley plugin is enabled in your wiki, you can insert
|
[[if test="enabled(smiley)" then="""
|
||||||
[[smileys]] and some other useful symbols.
|
Also, because this wiki has the smiley plugin enabled, you can
|
||||||
|
insert \[[smileys]] and some other useful symbols.
|
||||||
|
"""]]
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
ikiwiki (1.43) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Allow plugins to add new types of tests that can be used in PageSpecs.
|
||||||
|
* Add a "conditional" plugin, which allows displaying text if a condition
|
||||||
|
is true. It is enabled by default so conditional can be used in the
|
||||||
|
basewiki.
|
||||||
|
* Use conditionals in the template for plugins, so that plugin pages
|
||||||
|
say if they're currently enabled or not, and in various other places
|
||||||
|
in the wiki.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Sun, 11 Feb 2007 20:18:51 -0500
|
||||||
|
|
||||||
ikiwiki (1.42) unstable; urgency=low
|
ikiwiki (1.42) unstable; urgency=low
|
||||||
|
|
||||||
* Fix several more missing translations of Discussion.
|
* Fix several more missing translations of Discussion.
|
||||||
|
|
|
@ -8,8 +8,8 @@ There's documentation if you want to [[write]] your own plugins, or you can
|
||||||
install and use plugins [[contributed|contrib]] by others.
|
install and use plugins [[contributed|contrib]] by others.
|
||||||
|
|
||||||
The [[mdwn]], [[inline]], [[htmlscrubber]], [[passwordauth]],
|
The [[mdwn]], [[inline]], [[htmlscrubber]], [[passwordauth]],
|
||||||
[[signinedit]], and [[lockedit]] plugins are enabled by default.
|
[[signinedit]], [[lockedit]], and [[conditional]] plugins are enabled
|
||||||
To enable other plugins, use the `--plugin` switch described in
|
by default. To enable other plugins, use the `--plugin` switch described in
|
||||||
[[usage]], or the equivalent `add_plugins` line in [[ikiwiki.setup]].
|
[[usage]], or the equivalent `add_plugins` line in [[ikiwiki.setup]].
|
||||||
|
|
||||||
# Plugin directory
|
# Plugin directory
|
||||||
|
|
|
@ -4,6 +4,6 @@ This plugin makes words in CamelCase be treated as a [[WikiLink]]. That is
|
||||||
to say, any two or more words capitalised and mashed together are assumed
|
to say, any two or more words capitalised and mashed together are assumed
|
||||||
to be the name of some other page on the wiki, and so become a link.
|
to be the name of some other page on the wiki, and so become a link.
|
||||||
|
|
||||||
If this plugin is enabled, here is a link: SandBox
|
If this plugin is enabled, this will be a link: SandBox
|
||||||
|
|
||||||
[[tag type/link]]
|
[[tag type/link]]
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
[[template id=plugin name=conditional core=1 included=1 author="[[Joey]]"]]
|
||||||
|
[[tag type/format]]
|
||||||
|
|
||||||
|
With this plugin, you can make text be conditionally displayed on a page.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
\[[if test="enabled(smiley)"
|
||||||
|
then="The smiley plugin is enabled :-)"
|
||||||
|
else="No smiley plugin here.."]]
|
||||||
|
|
||||||
|
If the specified `test` succeeds, the `then` text will be displayed,
|
||||||
|
otherwise the `else` text will be displayed. The `else` part is optional.
|
||||||
|
|
||||||
|
The `then` and `else` values can include any markup that would be allowed
|
||||||
|
in the wiki page outside the template. Triple-quoting the values even allows
|
||||||
|
quotes to be included.
|
||||||
|
|
||||||
|
The `test` is a [[PageSpec]]; if it matches any page in the wiki then it
|
||||||
|
succeeds. So you can do things like testing for the existence of a page or
|
||||||
|
pages, testing to see if any pages were created in a given month, and so
|
||||||
|
on. The regular [[PageSpec]] syntax is expanded with the following
|
||||||
|
additional tests:
|
||||||
|
|
||||||
|
* enabled(plugin)
|
||||||
|
|
||||||
|
Tests whether the specified plugin is enabled.
|
||||||
|
|
||||||
|
* sourcepage(glob)
|
||||||
|
|
||||||
|
Tests whether the glob matches the name of the page that contains the
|
||||||
|
conditional.
|
||||||
|
|
||||||
|
* destpage(glob)
|
||||||
|
|
||||||
|
Tests whether the glob matches the name of the page that is being built.
|
||||||
|
That might be different than the name of the page that contains the
|
||||||
|
conditional, if it's being inlined into another page.
|
||||||
|
|
||||||
|
* included()
|
||||||
|
|
||||||
|
Tests whether the page is being included onto another page.
|
|
@ -1,6 +1,5 @@
|
||||||
[[template id=plugin name=googlemaps author="Christian Mock"]]
|
[[template id=plugin name=googlemaps author="Christian Mock"]]
|
||||||
[[tag type/special-purpose]]
|
[[tag type/special-purpose]]
|
||||||
[[meta title="googlemaps (third-party plugin)"]]
|
|
||||||
|
|
||||||
`googlemaps` is a plugin that allows using the [Google Maps API][2]
|
`googlemaps` is a plugin that allows using the [Google Maps API][2]
|
||||||
from ikiwiki.
|
from ikiwiki.
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
[[template id=plugin name=img author="Christian Mock"]]
|
[[template id=plugin name=img author="Christian Mock"]]
|
||||||
[[tag type/chrome]]
|
[[tag type/chrome]]
|
||||||
[[meta title="img (third-party plugin)"]]
|
|
||||||
|
|
||||||
`img` is an enhanced image handling plugin.
|
`img` is an enhanced image handling plugin.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[[template id=plugin name=linguas author="Jordà Polo"]]
|
[[template id=plugin name=linguas author="Jordà Polo"]]
|
||||||
[[meta title="linguas (third-party plugin)"]]
|
|
||||||
|
|
||||||
Linguas
|
Linguas
|
||||||
=======
|
=======
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
[[template id=plugin name=navbar author="[[TobiOetiker]]"]]
|
[[template id=plugin name=navbar author="[[TobiOetiker]]"]]
|
||||||
[[meta title="navbar (third-party plugin)"]]
|
|
||||||
|
|
||||||
|
|
||||||
The Navbar Plugin renders a Navigation Bar into your page. It is based on code
|
The Navbar Plugin renders a Navigation Bar into your page. It is based on code
|
||||||
from the sidebar plug in see <http://ikiwiki.kitenet.net/plugins/sidebar.html>
|
from the sidebar plug in see <http://ikiwiki.kitenet.net/plugins/sidebar.html>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
[[template id=plugin name=syntax author="[[VictorMoral]]"]]
|
[[template id=plugin name=syntax author="[[VictorMoral]]"]]
|
||||||
[[tag type/chrome type/slow]]
|
[[tag type/chrome type/slow]]
|
||||||
[[meta title="syntax (third-party plugin)"]]
|
|
||||||
|
|
||||||
|
|
||||||
`syntax` is a plugin that add support to ikiwiki for syntax highlighting through the *vim* editor and its perl interface [[cpan Text::VimColor]], so it depends on a vim functional installation.
|
`syntax` is a plugin that add support to ikiwiki for syntax highlighting through the *vim* editor and its perl interface [[cpan Text::VimColor]], so it depends on a vim functional installation.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[[meta title="table (third-party plugin)"]]
|
[[template id=plugin name=table author="[[VictorMoral]]"]]
|
||||||
|
[[tag type/format]]
|
||||||
|
|
||||||
This plugin supplies a `table` [[PreprocessorDirective]] to build html tables from data in CSV (comma-separated values) or DSV (delimiter-separated values) format.
|
This plugin supplies a `table` [[PreprocessorDirective]] to build html tables from data in CSV (comma-separated values) or DSV (delimiter-separated values) format.
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,10 @@ Usage:
|
||||||
|
|
||||||
\[[fortune ]]
|
\[[fortune ]]
|
||||||
|
|
||||||
If this plugin is enabled, here's a fortune for you:
|
[[if test="enabled(fortune)" then="""
|
||||||
|
Here's a fortune for you:
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
[[fortune ]]
|
[[fortune ]]
|
||||||
|
"""]]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
This plugin lets html pages be used as source pages for the wiki. The
|
This plugin lets html pages be used as source pages for the wiki. The
|
||||||
html pages will still be wrapped in the same html template as any other
|
html pages will still be wrapped in the same html template as any other
|
||||||
page, so for best results you should include only the page body in the html
|
page, so for best results you should include only the page body in the html
|
||||||
file. Also, if the htmlscrubber plugin is enabled, the html pages will be
|
file. Also, if the [[htmlscrubber]] plugin is enabled, the html pages will be
|
||||||
sanitised like any other page. You can also use standard [[WikiLink]]s etc
|
sanitised like any other page. You can also use standard [[WikiLink]]s etc
|
||||||
in the html pages.
|
in the html pages.
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,8 @@ directive:
|
||||||
in inches. Both must be specified for the limiting to take effect, otherwise
|
in inches. Both must be specified for the limiting to take effect, otherwise
|
||||||
the map's size is not limited.
|
the map's size is not limited.
|
||||||
|
|
||||||
This plugin is included in ikiwiki, but is not enabled by default.
|
[[if test="enabled(linkmap)" then="""
|
||||||
|
Here is an example link map, of the index page and all pages it links to:
|
||||||
If this plugin is enabled, here is a link map of the index page and all
|
|
||||||
pages it links to:
|
|
||||||
|
|
||||||
[[linkmap pages="index or (backlink(index) and !*.png)"]]
|
[[linkmap pages="index or (backlink(index) and !*.png)"]]
|
||||||
|
"""]
|
||||||
|
|
|
@ -11,9 +11,8 @@ the wiki are mapped.
|
||||||
Hint: To limit the map to displaying pages less than a certian level deep,
|
Hint: To limit the map to displaying pages less than a certian level deep,
|
||||||
use a [[PageSpec]] like this: `pages="* and !*/*/*"`
|
use a [[PageSpec]] like this: `pages="* and !*/*/*"`
|
||||||
|
|
||||||
This plugin is included in ikiwiki, but is not enabled by default.
|
[[if test="enabled(map)" then="""
|
||||||
|
Here's an example map, for the plugins section of this wiki:
|
||||||
If this plugin is enabled, here is a page map for the plugins section
|
|
||||||
of this wiki:
|
|
||||||
|
|
||||||
[[map pages="(plugins or plugins/*) and !*/*/*"]]
|
[[map pages="(plugins or plugins/*) and !*/*/*"]]
|
||||||
|
"""]]
|
||||||
|
|
|
@ -54,6 +54,3 @@ header.
|
||||||
|
|
||||||
The field value is treated as HTML entity-escaped text, so you can include
|
The field value is treated as HTML entity-escaped text, so you can include
|
||||||
a quote in the text by writing `"` and so on.
|
a quote in the text by writing `"` and so on.
|
||||||
|
|
||||||
If this plugin is enabled, the title of this page will say that it is.
|
|
||||||
[[meta title="meta plugin (enabled)"]]
|
|
||||||
|
|
|
@ -11,6 +11,8 @@ Note that it takes [[BackLinks]] into account, but does not count inlining a
|
||||||
page as linking to it, so will generally count many blog-type pages as
|
page as linking to it, so will generally count many blog-type pages as
|
||||||
orphans.
|
orphans.
|
||||||
|
|
||||||
If it is enabled, here's a list of orphaned pages on this wiki:
|
[[if test="enabled(orphans)" then="""
|
||||||
|
Here's a list of orphaned pages on this wiki:
|
||||||
|
|
||||||
[[orphans ]]
|
[[orphans ]]
|
||||||
|
"""]]
|
||||||
|
|
|
@ -9,10 +9,10 @@ For example:
|
||||||
It's also possible to specify a starting nonterminal for the grammar by
|
It's also possible to specify a starting nonterminal for the grammar by
|
||||||
including `symbol="text"` in the directive.
|
including `symbol="text"` in the directive.
|
||||||
|
|
||||||
|
[[if test="enabled(polygen)" then="""
|
||||||
----
|
----
|
||||||
|
|
||||||
If this plugin is enabled, and polygen is installed, here are a few notes
|
Here are a few notes about ikiwiki, courtesy of polygen:
|
||||||
about ikiwiki.
|
|
||||||
|
|
||||||
Ikiwiki is internally based on a [[polygen grammar="designpatterns"]]
|
Ikiwiki is internally based on a [[polygen grammar="designpatterns"]]
|
||||||
coupled to a [[polygen grammar="designpatterns"]], as described in
|
coupled to a [[polygen grammar="designpatterns"]], as described in
|
||||||
|
@ -25,3 +25,5 @@ Ikiwiki reviews:
|
||||||
<li>[[polygen grammar="reviews"]]</li>
|
<li>[[polygen grammar="reviews"]]</li>
|
||||||
<li>[[polygen grammar="reviews"]]</li>
|
<li>[[polygen grammar="reviews"]]</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
"""]]
|
||||||
|
|
|
@ -413,3 +413,12 @@ See IkiWiki::RCS::Stub for the full list of functions. It's ok if
|
||||||
rcs\_getctime does nothing except for throwing an error.
|
rcs\_getctime does nothing except for throwing an error.
|
||||||
|
|
||||||
See [[about_RCS_backends]] for some more info.
|
See [[about_RCS_backends]] for some more info.
|
||||||
|
|
||||||
|
## PageSpec plugins
|
||||||
|
|
||||||
|
It's also possible to write plugins that add new functions to
|
||||||
|
[[PageSpecs|PageSpec]]. Such a plugin should add a function to the
|
||||||
|
IkiWiki::PageSpec package, that is named `match_foo`, where "foo()" is
|
||||||
|
how it will be accessed in a [[PageSpec]]. The function will be passed two
|
||||||
|
parameters: The name of the page being matched, and the thing to match
|
||||||
|
against. It should return true if the page matches.
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<span class="infobox">
|
<span class="infobox">
|
||||||
Plugin: <TMPL_VAR name><br />
|
Plugin: <TMPL_VAR name><br />
|
||||||
Author: <TMPL_VAR author><br />
|
Author: <TMPL_VAR author><br />
|
||||||
Enabled by default: <TMPL_IF core>yes<TMPL_ELSE>no</TMPL_IF><br />
|
|
||||||
Included in ikiwiki: <TMPL_IF included>yes<TMPL_ELSE>no</TMPL_IF><br />
|
Included in ikiwiki: <TMPL_IF included>yes<TMPL_ELSE>no</TMPL_IF><br />
|
||||||
|
Enabled by default: <TMPL_IF core>yes<TMPL_ELSE>no</TMPL_IF><br />
|
||||||
|
Currently enabled: [[if test="enabled(<TMPL_VAR name>)" then="yes" else="no"]]<br />
|
||||||
</span>
|
</span>
|
||||||
|
[[if test="sourcepage(plugins/contrib/*)" then="""[[meta title="<TMPL_VAR name> (third party plugin)"]]"""]]
|
||||||
|
|
|
@ -100,3 +100,7 @@ for the condition itself.
|
||||||
>> typing in the if.
|
>> typing in the if.
|
||||||
>>
|
>>
|
||||||
>> --[[JoshTriplett]]
|
>> --[[JoshTriplett]]
|
||||||
|
|
||||||
|
This is now completely [[todo/done]]! See [[plugins/conditional]].
|
||||||
|
|
||||||
|
--[[Joey]]
|
||||||
|
|
8
po/bg.po
8
po/bg.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki-bg\n"
|
"Project-Id-Version: ikiwiki-bg\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-12 01:19+0200\n"
|
"PO-Revision-Date: 2007-01-12 01:19+0200\n"
|
||||||
"Last-Translator: Damyan Ivanov <dam@modsodtsys.com>\n"
|
"Last-Translator: Damyan Ivanov <dam@modsodtsys.com>\n"
|
||||||
"Language-Team: Bulgarian <dict@fsa-bg.org>\n"
|
"Language-Team: Bulgarian <dict@fsa-bg.org>\n"
|
||||||
|
@ -376,13 +376,13 @@ msgstr "успешно генериране на %s"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "формат: ikiwiki [опции] източник местоназначение"
|
msgstr "формат: ikiwiki [опции] източник местоназначение"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"При използване на пареметъра „--cgi” е необходимо да се укаже и "
|
"При използване на пареметъра „--cgi” е необходимо да се укаже и "
|
||||||
"местоположението на уикито чрез параметъра „--url”"
|
"местоположението на уикито чрез параметъра „--url”"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Грешка"
|
msgstr "Грешка"
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ msgstr "Грешка"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "открита е циклична завидимост при %s на „%s” на дълбочина %i"
|
msgstr "открита е циклична завидимост при %s на „%s” на дълбочина %i"
|
||||||
|
|
8
po/cs.po
8
po/cs.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki\n"
|
"Project-Id-Version: ikiwiki\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-07 11:59+0100\n"
|
"PO-Revision-Date: 2007-01-07 11:59+0100\n"
|
||||||
"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
|
"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
|
||||||
"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
|
"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
|
||||||
|
@ -370,11 +370,11 @@ msgstr "%s byl úspěšně vytvořen"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "použití: ikiwiki [volby] zdroj cíl"
|
msgstr "použití: ikiwiki [volby] zdroj cíl"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr "Při použití --cgi musíte pomocí --url zadat url k wiki"
|
msgstr "Při použití --cgi musíte pomocí --url zadat url k wiki"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Chyba"
|
msgstr "Chyba"
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ msgstr "Chyba"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "Byla rozpoznána smyčka direktivy %s na %s v hloubce %i"
|
msgstr "Byla rozpoznána smyčka direktivy %s na %s v hloubce %i"
|
||||||
|
|
8
po/es.po
8
po/es.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki\n"
|
"Project-Id-Version: ikiwiki\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-03 09:37+0100\n"
|
"PO-Revision-Date: 2007-01-03 09:37+0100\n"
|
||||||
"Last-Translator: Víctor Moral <victor@taquiones.net>\n"
|
"Last-Translator: Víctor Moral <victor@taquiones.net>\n"
|
||||||
"Language-Team: spanish <es@li.org>\n"
|
"Language-Team: spanish <es@li.org>\n"
|
||||||
|
@ -379,13 +379,13 @@ msgstr "creado con éxito el programa envoltorio %s"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "uso: ikiwiki [opciones] origen destino"
|
msgstr "uso: ikiwiki [opciones] origen destino"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Es obligatorio especicar un url al wiki con el parámetro --url si se utiliza "
|
"Es obligatorio especicar un url al wiki con el parámetro --url si se utiliza "
|
||||||
"el parámetro --cgi"
|
"el parámetro --cgi"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Error"
|
msgstr "Error"
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ msgstr "Error"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
8
po/fr.po
8
po/fr.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki\n"
|
"Project-Id-Version: ikiwiki\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-22 22:12+0100\n"
|
"PO-Revision-Date: 2007-01-22 22:12+0100\n"
|
||||||
"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>\n"
|
"Last-Translator: Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>\n"
|
||||||
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
|
"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
|
||||||
|
@ -379,13 +379,13 @@ msgstr "%s a été créé avec succès"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "Syntaxe : ikiwiki [options] source destination"
|
msgstr "Syntaxe : ikiwiki [options] source destination"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Vous devez indiquer une url vers le wiki par --url lors de l'utilisation de "
|
"Vous devez indiquer une url vers le wiki par --url lors de l'utilisation de "
|
||||||
"--cgi"
|
"--cgi"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Erreur"
|
msgstr "Erreur"
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ msgstr "Erreur"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
8
po/gu.po
8
po/gu.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki-gu\n"
|
"Project-Id-Version: ikiwiki-gu\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-11 16:05+0530\n"
|
"PO-Revision-Date: 2007-01-11 16:05+0530\n"
|
||||||
"Last-Translator: Kartik Mistry <kartik.mistry@gmail.com>\n"
|
"Last-Translator: Kartik Mistry <kartik.mistry@gmail.com>\n"
|
||||||
"Language-Team: Gujarati <team@utkarsh.org>\n"
|
"Language-Team: Gujarati <team@utkarsh.org>\n"
|
||||||
|
@ -368,11 +368,11 @@ msgstr "સફળતાપૂર્વક પેદા કરેલ છે %s"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "ઉપયોગ: ikiwiki [વિકલ્પો] source dest"
|
msgstr "ઉપયોગ: ikiwiki [વિકલ્પો] source dest"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr "જ્યારે --cgi ઉપયોગ કરતાં હોય ત્યારે વીકીનું યુઆરએલ સ્પષ્ટ કરવું જ પડશે"
|
msgstr "જ્યારે --cgi ઉપયોગ કરતાં હોય ત્યારે વીકીનું યુઆરએલ સ્પષ્ટ કરવું જ પડશે"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "ક્ષતિ"
|
msgstr "ક્ષતિ"
|
||||||
|
|
||||||
|
@ -380,7 +380,7 @@ msgstr "ક્ષતિ"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "%s પર શોધાયેલ લુપ %s પર ચલાવે છે %i ઉંડાણ પર"
|
msgstr "%s પર શોધાયેલ લુપ %s પર ચલાવે છે %i ઉંડાણ પર"
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 21:42-0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -369,11 +369,11 @@ msgstr ""
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ msgstr ""
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
8
po/pl.po
8
po/pl.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki 1.37\n"
|
"Project-Id-Version: ikiwiki 1.37\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-05 16:33+100\n"
|
"PO-Revision-Date: 2007-01-05 16:33+100\n"
|
||||||
"Last-Translator: Paweł Tęcza <ptecza@net.icm.edu.pl>\n"
|
"Last-Translator: Paweł Tęcza <ptecza@net.icm.edu.pl>\n"
|
||||||
"Language-Team: Debian L10n Polish <debian-l10n-polish@lists.debian.org>\n"
|
"Language-Team: Debian L10n Polish <debian-l10n-polish@lists.debian.org>\n"
|
||||||
|
@ -380,13 +380,13 @@ msgstr "strona pomyślnie utworzona %s"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "użycie: ikiwiki [parametry] źródło cel"
|
msgstr "użycie: ikiwiki [parametry] źródło cel"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Użycie parametru --cgi wymaga podania adresu URL do wiki za pomocą parametru "
|
"Użycie parametru --cgi wymaga podania adresu URL do wiki za pomocą parametru "
|
||||||
"--url"
|
"--url"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Błąd"
|
msgstr "Błąd"
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ msgstr "Błąd"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "polecenie preprocesora %s wykryte w %s na głębokości %i"
|
msgstr "polecenie preprocesora %s wykryte w %s na głębokości %i"
|
||||||
|
|
8
po/sv.po
8
po/sv.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki\n"
|
"Project-Id-Version: ikiwiki\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-10 23:47+0100\n"
|
"PO-Revision-Date: 2007-01-10 23:47+0100\n"
|
||||||
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
|
"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
|
||||||
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
|
"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
|
||||||
|
@ -372,11 +372,11 @@ msgstr "generering av %s lyckades"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "användning: ikiwiki [flaggor] källa mål"
|
msgstr "användning: ikiwiki [flaggor] källa mål"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr "Måste ange url till wiki med --url när --cgi används"
|
msgstr "Måste ange url till wiki med --url när --cgi används"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Fel"
|
msgstr "Fel"
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ msgstr "Fel"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "%s förbehandlingsslinga detekterades på %s, djup %i"
|
msgstr "%s förbehandlingsslinga detekterades på %s, djup %i"
|
||||||
|
|
8
po/vi.po
8
po/vi.po
|
@ -6,7 +6,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ikiwiki\n"
|
"Project-Id-Version: ikiwiki\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-02-10 15:26-0500\n"
|
"POT-Creation-Date: 2007-02-11 20:35-0500\n"
|
||||||
"PO-Revision-Date: 2007-01-13 15:31+1030\n"
|
"PO-Revision-Date: 2007-01-13 15:31+1030\n"
|
||||||
"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
|
"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
|
||||||
"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
|
"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
|
||||||
|
@ -372,12 +372,12 @@ msgstr "%s đã được tạo ra"
|
||||||
msgid "usage: ikiwiki [options] source dest"
|
msgid "usage: ikiwiki [options] source dest"
|
||||||
msgstr "cách sử dụng: ikiwiki [tùy chọn] nguồn đích"
|
msgstr "cách sử dụng: ikiwiki [tùy chọn] nguồn đích"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:102
|
#: ../IkiWiki.pm:103
|
||||||
msgid "Must specify url to wiki with --url when using --cgi"
|
msgid "Must specify url to wiki with --url when using --cgi"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Cần phải xác định địa chỉ URL tới wiki với « --url » khi dùng « --cgi »"
|
"Cần phải xác định địa chỉ URL tới wiki với « --url » khi dùng « --cgi »"
|
||||||
|
|
||||||
#: ../IkiWiki.pm:147 ../IkiWiki.pm:148
|
#: ../IkiWiki.pm:148 ../IkiWiki.pm:149
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr "Lỗi"
|
msgstr "Lỗi"
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ msgstr "Lỗi"
|
||||||
#. translators: preprocessor directive name,
|
#. translators: preprocessor directive name,
|
||||||
#. translators: the second a page name, the
|
#. translators: the second a page name, the
|
||||||
#. translators: third a number.
|
#. translators: third a number.
|
||||||
#: ../IkiWiki.pm:531
|
#: ../IkiWiki.pm:532
|
||||||
#, perl-format
|
#, perl-format
|
||||||
msgid "%s preprocessing loop detected on %s at depth %i"
|
msgid "%s preprocessing loop detected on %s at depth %i"
|
||||||
msgstr "vòng lặp tiền xử lý %s được phát hiện trên %s ở độ sâu %i"
|
msgstr "vòng lặp tiền xử lý %s được phát hiện trên %s ở độ sâu %i"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
use warnings;
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
use Test::More tests => 41;
|
use Test::More tests => 42;
|
||||||
|
|
||||||
BEGIN { use_ok("IkiWiki"); }
|
BEGIN { use_ok("IkiWiki"); }
|
||||||
|
|
||||||
|
@ -44,6 +44,8 @@ ok(! pagespec_match("foo", "creation_month(9)"), "other month");
|
||||||
ok(pagespec_match("foo", "creation_day(2)"), "day");
|
ok(pagespec_match("foo", "creation_day(2)"), "day");
|
||||||
ok(! pagespec_match("foo", "creation_day(3)"), "other day");
|
ok(! pagespec_match("foo", "creation_day(3)"), "other day");
|
||||||
|
|
||||||
|
ok(! pagespec_match("foo", "no_such_function(foo)"), "foo");
|
||||||
|
|
||||||
# old style globlists
|
# old style globlists
|
||||||
ok(pagespec_match("foo", "foo bar"), "simple list");
|
ok(pagespec_match("foo", "foo bar"), "simple list");
|
||||||
ok(pagespec_match("bar", "foo bar"), "simple list 2");
|
ok(pagespec_match("bar", "foo bar"), "simple list 2");
|
||||||
|
|
Loading…
Reference in New Issue