intrigeri
82197bd0ea
Merge commit 'upstream/master' into prv/po
2009-01-13 12:26:43 +01:00
Joey Hess
b0a03fef65
yesno: Always accept English even when localised.
...
It seems to be a failing of i18n in unix that the translation stops at the
commands and the parameters to them, and ikiwiki is no exception with its
currently untranslated directives. So the little bit that's translated sticks
out like a sore thumb. It also breaks building of wikis if a different locale
happens to be set.
I suppose the best thing to do is either give up on the localisation of this
part completly, or make it recognise English in addition to the locale. I've
tenatively chosen the latter.
(Also accept 1 and 0 as input.)
2009-01-03 12:52:47 -05:00
intrigeri
5c2f6cb893
Merge commit 'upstream/master' into prv/po
2009-01-01 13:34:00 +01:00
intrigeri
c01485ae1a
renamed the renamepage hook to renamelink, added rename hook
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30 21:36:40 +01:00
intrigeri
4e4fb18dbe
po.t: adapted a few tests to match the current ikiwiki behaviour
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30 18:55:32 +01:00
intrigeri
21add7ffa8
Merge commit 'upstream/master' into prv/po
...
Conflicts:
debian/control
debian/copyright
doc/ikiwiki/pagespec.mdwn
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-30 18:24:36 +01:00
Joey Hess
c07a95ed8e
remove globlist support
...
No transition code implemented, but I will probably make a 2.x release that
warns about found globlists.
2008-12-23 17:11:04 -05:00
Joey Hess
c61c99fc77
fix to use prefix directives
2008-12-23 16:56:56 -05:00
Joey Hess
a4ebfe8fe8
fix to use prefix directives
2008-12-23 16:55:33 -05:00
Joey Hess
13d77c369e
avoid an uninitialized value warning
2008-12-21 13:46:00 -05:00
Joey Hess
79d2d44db2
Merge commit 'smcv/openid'
2008-12-21 13:13:28 -05:00
Joey Hess
5b67c54b22
add another test
2008-12-21 12:59:11 -05:00
Simon McVittie
f0c76aa51c
Add a regression test for &openiduser
2008-12-21 16:37:20 +00:00
Simon McVittie
c42f174e65
beautify_urlpath: add a regression test
2008-12-21 15:24:53 +00:00
intrigeri
c51202c11e
po.t: cleanup
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-13 00:54:51 +01:00
intrigeri
aed42eb34a
po: fix istranslation/istranslatable for pages starting with /
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12 17:29:12 +01:00
intrigeri
2b4e76a961
po: change a bit the way links are generated
...
This will soon enable usage of translated page titles in link.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 22:29:47 +01:00
intrigeri
f0abaa9fc9
po: fixed link to home page when po_link_to=negotiated, added testcase
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 18:42:14 +01:00
intrigeri
cfe101fff9
po: fixed link to homepage from non-translation page
...
Added testcases for this bug.
It remains broken when generated from <TMPL_VAR BASEURL>, though.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 15:06:26 +01:00
intrigeri
45694a8623
t/po.t: removed debug lines
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 19:40:54 +01:00
intrigeri
812f775e0a
Merge commit 'upstream/master' into prv/po
2008-11-10 15:41:29 +01:00
Joey Hess
7f80e52543
Fix the link() pagespec to match links that are internally recorded as absolute.
...
This fixes a problem exposed by the recent change to tags
(a2839de936
). That recorded tag links as
absolute by including a leading slash in the link. The same could also be
done with an absolute wikilink.
In either case, link() would not match such links, unless the leading slash
was included in the link to match. But that's not right, because pagespecs
match absolute by default. So strip the leading slash.
Note that to keep any existing `link(/foo)` pagespecs working after this
change, the leading slash is removed from there, too.
2008-11-09 15:31:57 -05:00
intrigeri
a0ac346079
po: finished backlinks implementation
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 22:17:54 +01:00
intrigeri
d1e5affbc2
po: oops, removed debug output from testsuit
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 21:39:55 +01:00
intrigeri
14415a2b67
po: implemented linking specification in testcase
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07 21:24:00 +01:00
intrigeri
7d88fb3ff8
po plugin: added test cases for index.*
...
(Translatable index is currently buggy, let's fix this.)
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02 18:54:04 +01:00
intrigeri
06e3558318
po plugin: added testsuite
...
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>
2008-11-02 16:46:09 +01:00
intrigeri
a021d97d30
syntax.t: skip po since it uses a perl module not in build deps
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18 16:22:37 +02:00
Joey Hess
3ef2824350
add test for empty, and for entirely negated pagespecs
2008-09-30 15:06:12 -04:00
Joey Hess
9ec9d6901d
Export pagetitle, titlepage, linkpage.
2008-09-27 14:27:42 -04:00
Joey Hess
dfe55e8956
Add keepextension parameter to htmlize hook. (Willu)
2008-09-23 13:39:21 -04:00
Joey Hess
a7ff240afc
test for brokenlinks when listdirectives is enabled, too
2008-09-11 19:06:44 -04:00
Joey Hess
2d43eda27d
display broken links on failure
2008-09-11 18:56:28 -04:00
Joey Hess
210b9ba2f3
test skeleton.pm.example
2008-08-03 19:36:10 -04:00
Joey Hess
2faf1ec601
update rcs tests for new rcs plugin load method
...
As a side effect, since loadplugins is called, mdwn is loaded, so
rcs_recentchanges will return page names, not filenames, for mdwn files.
2008-08-01 16:45:05 -04:00
Joey Hess
6154dd03cb
finish with rcs plugin conversion
2008-07-26 22:28:18 -04:00
Joey Hess
14cd75746a
Version control backends promoted to first-class plugins
2008-07-26 22:27:24 -04:00
Joey Hess
bb888daea0
add a test case
2008-07-26 22:10:09 -04:00
Joey Hess
fdf3b7c4b8
add test data
2008-07-25 19:41:01 -04:00
Joey Hess
88e9ef449d
add a regression test to ensure that permalinks never change
2008-07-25 19:40:28 -04:00
Joey Hess
a69e3f26dd
2 was apparently correct
...
I don't think it really matters whether directories are returned or not.
2008-07-25 15:16:49 -04:00
Joey Hess
ef1f4defed
bring git test to parity with bazaar test
...
Also, fixed bug I introduced in bazaar test.
2008-07-25 15:08:17 -04:00
Joey Hess
acf94414e3
expose a bug in bzr renameing code
2008-07-25 12:16:09 -04:00
Joey Hess
256a118e88
add missing --quiet
2008-07-25 12:07:48 -04:00
Joey Hess
c401cf4f0c
Merge commit 'jelmer/master'
2008-07-25 12:03:34 -04:00
Jelmer Vernooij
7538d356c8
Support staging commands in bzr backend.
2008-07-24 22:43:57 +02:00
Joey Hess
c2f621cb1c
fix encoding issues with link conversion
...
Have to convert link text to page name going in.
And on the way out, need to replace spaces with underscores in the link
text, which is not normally done with titles.
2008-07-24 12:36:10 -04:00
Joey Hess
8b3d2ab0bc
test suite and partial fix for encoding issues in link renaming
2008-07-23 21:04:11 -04:00
Joey Hess
4918c164e8
preserve case of subpage
2008-07-23 19:03:37 -04:00
Joey Hess
8b063a24d9
case preservation
2008-07-23 18:57:27 -04:00