aboutsummaryrefslogtreecommitdiff
path: root/t/po.t
Commit message (Collapse)AuthorAge
* po: Always filter .po filesSimon McVittie2019-02-24
| | | | | | | | | | | | | | | | | | | | The input to filter hooks is meant to be the content of a source file on disk. If we only filter once per (page, destpage) pair, and a page is inlined into the same destpage more than once, then the second occurrence will render as the result of htmlizing .po source as if it was Markdown (or whatever the type of the corresponding master page is), which is never going to end well. The alreadyfiltered mechanism was added in commit 1e874b3f to avoid preprocessing loops, but I'm not sure where it could lead to a loop: filter hooks are only called from IkiWiki::filter, which is only called on page content from disk or on proposed content being previewed. According to <https://bugs.debian.org/911356#41>, deleting the alreadyfiltered mechanism resolves the problem, as well as simplifying the code. Closes: #911356 Tested-by: intrigeri
* po: Improve test coverageSimon McVittie2018-12-01
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* po: Add failing test for Debian bug #911356Simon McVittie2018-12-01
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Fix test suite to work with perl 5.18. Closes: #719969Joey Hess2013-08-30
|
* po: support language codes in the form of 'es_AR', and 'arn'.intrigeri2011-05-26
| | | | ... additionally to the previously supported two-letters codes.
* po test: add more cases, including (semi-)absolute URLsSimon McVittie2010-12-25
| | | | | Three cases are sub-optimal, but having fixed urlto(''), they all basically work.
* po: test beautify_urlpath with po_link_to=currentSimon McVittie2010-12-25
| | | | Same behaviour as 'default'.
* Merge remote branch 'upstream/master' into prv/pointrigeri2010-08-22
|\
| * Fix po test suite to not assume ikiwiki's underlay is already installed. ↵Joey Hess2010-08-15
| | | | | | | | Closes: #593047
* | po.t: added a bunch of tests for recent code changesintrigeri2010-08-02
|/
* Merge remote branch 'intrigeri/po'Joey Hess2010-07-24
|\
| * po.t: fix expected resultsintrigeri2010-07-20
| | | | | | | | | | | | | | | | | | | | As index.{es,fr} don't exist, po::refreshpofiles copies them from the basewiki underlay before running msgmerge. msgmerge marks as obsolete the translation strings that came from the basewiki po files, but the link plugin does not make the difference between obsolete and up-to-date links. $links{'index.fr'} and $links{'index.es'} are therefore expected to contain SandBox and ikiwiki.
| * Added tests for po::pofiles.intrigeri2010-07-20
| |
| * Run checkconfig after loading the po plugin, else state is not populated.intrigeri2010-07-20
| | | | | | | | | | The pofiles function relies on @slavelanguages to have been populated by po's checkconfig hook.
* | whitespaceJoey Hess2010-07-23
|/
* po.t: fix test suiteintrigeri2009-01-15
| | | | | | (translatable files now have to exist in srcdir) ) Signed-off-by: intrigeri <intrigeri@boum.org>
* po.t: adapted a few tests to match the current ikiwiki behaviourintrigeri2008-12-30
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po.t: cleanupintrigeri2008-11-13
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: fix istranslation/istranslatable for pages starting with /intrigeri2008-11-12
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: change a bit the way links are generatedintrigeri2008-11-11
| | | | | | This will soon enable usage of translated page titles in link. Signed-off-by: intrigeri <intrigeri@boum.org>
* po: fixed link to home page when po_link_to=negotiated, added testcaseintrigeri2008-11-11
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: fixed link to homepage from non-translation pageintrigeri2008-11-11
| | | | | | | Added testcases for this bug. It remains broken when generated from <TMPL_VAR BASEURL>, though. Signed-off-by: intrigeri <intrigeri@boum.org>
* t/po.t: removed debug linesintrigeri2008-11-10
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: finished backlinks implementationintrigeri2008-11-07
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: oops, removed debug output from testsuitintrigeri2008-11-07
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po: implemented linking specification in testcaseintrigeri2008-11-07
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added test cases for index.*intrigeri2008-11-02
| | | | | | (Translatable index is currently buggy, let's fix this.) Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added testsuiteintrigeri2008-11-02
I want to have an easy way to know if I break something when I'll convert custom added hooks to the new "inject" feature. It will also be useful after this conversion, to trigger an alert when IkiWiki's internals change enough to break my wrapper functions. Signed-off-by: intrigeri <intrigeri@boum.org>