aboutsummaryrefslogtreecommitdiff
path: root/t/po.t
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-11 18:42:14 +0100
committerintrigeri <intrigeri@boum.org>2008-11-11 18:42:14 +0100
commitf0abaa9fc99463e403fa3b700bd005bcfaa75c6d (patch)
treed8f0d66bc1202c02dcd9cf2d22665ee7971c7ede /t/po.t
parent4c45dfce196291bc9ae3ffc4d00d403f1e17c680 (diff)
downloadikiwiki-f0abaa9fc99463e403fa3b700bd005bcfaa75c6d.tar
ikiwiki-f0abaa9fc99463e403fa3b700bd005bcfaa75c6d.tar.gz
po: fixed link to home page when po_link_to=negotiated, added testcase
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 't/po.t')
-rwxr-xr-xt/po.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/po.t b/t/po.t
index be446f108..02115e16f 100755
--- a/t/po.t
+++ b/t/po.t
@@ -150,10 +150,11 @@ $msgprefix="urlto (po_link_to=current)";
is(urlto('', 'index'), './index.en.html', "$msgprefix index -> ''");
is(urlto('', 'nontranslatable'), './../index.en.html', "$msgprefix nontranslatable -> ''");
is(urlto('', 'translatable.fr'), './../index.fr.html', "$msgprefix translatable.fr -> ''");
+$config{po_link_to}='negotiated';
$msgprefix="urlto (po_link_to=negotiated)";
-is(urlto('', 'index'), './index.en.html', "$msgprefix index -> ''");
-is(urlto('', 'nontranslatable'), './../index.en.html', "$msgprefix nontranslatable -> ''");
-is(urlto('', 'translatable.fr'), './../index.fr.html', "$msgprefix translatable.fr -> ''");
+is(urlto('', 'index'), './', "$msgprefix index -> ''");
+is(urlto('', 'nontranslatable'), './../', "$msgprefix nontranslatable -> ''");
+is(urlto('', 'translatable.fr'), './../', "$msgprefix translatable.fr -> ''");
### bestlink
$config{po_link_to}='current';