ikiwiki/t
Joey Hess 5418385336 Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not available.
The test suite was emitting a lot of ugly gettext warnings;
setting LC_ALL didn't solve the problem for all locale setups
(since ikiwiki remaps it to LANG, and ikiwiki didn't know about
the C locale).

People also seem generally annoyed by the messages when
Locale::Gettext is not installed, and I suspect will be
generally happier if it just silently doesn't localize.

The optimisation came about when I noticed that the gettext
sub was doing rather a lot of work each call just to see
if localisation is needed. We can avoid that work by caching,
and the best thing to cache is a version of the gettext sub
that does exactly the right thing.

This was slightly complicated by the locale setting,
which might need to override the original locale (or lack
thereof) after gettext has been called. So it needs to invalidate
the cache in that case. It used to do it via a global variable,
which I am happy to have also gotten rid of.
2009-06-08 18:33:54 -04:00
..
basewiki_brokenlinks fix to use prefix directives 2008-12-23 16:56:56 -05:00
parentlinks/templates pedigree rename to parentlinks: rename/adapt everything 2008-07-15 16:25:39 +02:00
tinyblog fix to use prefix directives 2008-12-23 16:55:33 -05:00
404.t rename apache404 -> 404 2009-01-31 19:26:36 -05:00
basename.t
basewiki_brokenlinks.t Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not available. 2009-06-08 18:33:54 -04:00
bazaar.t update rcs tests for new rcs plugin load method 2008-08-01 16:45:05 -04:00
beautify_urlpath.t add another test 2008-12-21 12:59:11 -05:00
bestlink.t
crazy-badass-perl-bug.t Pass a destpage parameter to the sanitize hook. 2008-06-04 01:24:23 -04:00
dirname.t
file_pruned.t file_pruned regression tests 2007-12-18 00:38:06 -05:00
git.t Fix git test suite to use a bare repo. 2009-04-04 14:58:34 -04:00
html.t todo is not built, so don't try to check it 2008-07-14 21:20:48 -04:00
htmlbalance.t use HTML::Entities 2008-11-17 14:27:11 -05:00
htmlize.t Pass a destpage parameter to the sanitize hook. 2008-06-04 01:24:23 -04:00
index.t add loadindex/saveindex test suite 2008-03-22 13:56:44 -04:00
linkify.t fix test to support rel= 2008-05-30 17:12:32 -04:00
linkpage.t Export pagetitle, titlepage, linkpage. 2008-09-27 14:27:42 -04:00
mercurial.t update rcs tests for new rcs plugin load method 2008-08-01 16:45:05 -04:00
openiduser.t avoid an uninitialized value warning 2008-12-21 13:46:00 -05:00
pagename.t Add noextension parameter to htmlize hooks to support, eg, Makefile. 2009-02-19 18:38:45 -05:00
pagespec_match.t add test case for multiline pagespec 2009-05-21 12:44:21 -04:00
pagespec_merge.t remove globlist support 2008-12-23 17:11:04 -05:00
pagetitle.t Export pagetitle, titlepage, linkpage. 2008-09-27 14:27:42 -04:00
parentlinks.t pedigree rename to parentlinks: rename/adapt everything 2008-07-15 16:25:39 +02:00
permalink.t Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not available. 2009-06-08 18:33:54 -04:00
preprocess.t add test case for unterminated """ string 2009-06-05 16:10:08 -04:00
readfile.t
renamepage.t fix encoding issues with link conversion 2008-07-24 12:36:10 -04:00
svn.t update rcs tests for new rcs plugin load method 2008-08-01 16:45:05 -04:00
syntax.t stop using perl -T here 2009-05-22 13:27:23 -04:00
test1.mdwn
test2.mdwn
test3.mdwn
titlepage.t Export pagetitle, titlepage, linkpage. 2008-09-27 14:27:42 -04:00
yesno.t yesno: Always accept English even when localised. 2009-01-03 12:52:47 -05:00