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
f4815e3b12
po(mybestlink): fixed when fed with path beginning with /
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12 16:54:51 +01:00
intrigeri
86c58119e0
po/todo: added robustness tests that have to be done
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12 15:54:20 +01:00
intrigeri
eba2dee941
po: compute internal links from a slave page relative to its master page
...
e.g. a link appearing on a slave page links to its masterpage's subpages.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12 15:04:50 +01:00
intrigeri
b19d0d3d24
Merge commit 'upstream/po' into prv/po
2008-11-12 01:08:57 +01:00
Joey Hess
3937e1fb16
patch and a few comments
2008-11-11 18:33:04 -05:00
Joey Hess
0d1593a201
Merge commit 'intrigeri/po' into po
2008-11-11 17:52:51 -05:00
Joey Hess
2a56ec6644
Merge branch 'master' into po
2008-11-11 17:52:32 -05:00
intrigeri
ef536f46bd
po/todo: bug report about linking to subpages from translation pages
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 23:08:13 +01:00
intrigeri
40ffc92953
po: fixed bug when a new translatable page is created
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 23:04:58 +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
b7a4e5a51c
po/todo: fixed internal links
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 22:29:41 +01:00
Joey Hess
d1b22b2524
lockwiki changes
...
* Stop busy-waiting in lockwiki, as this could delay ikiwiki from waking up
for up to one second. The bailout code is no longer needed.
* Remove support for unused optional wait parameter from lockwiki.
2008-11-11 15:54:52 -05:00
Joey Hess
eef8b966b3
O_CREATE needs mode
2008-11-11 15:53:55 -05:00
Joey Hess
9a48669f1e
avoid multiple ikiwiki cgi processes piling up, eating all memory, and thrashing
...
Fixed by making the cgi wrapper wait on a cgilock.
If you had to set apache's MaxClients low to avoid ikiwiki thrashing
your server, you can now turn it up to a high value.
The downside to this is that a cgi call that doesn't need to call lockwiki
will be serialised by this so only one can run at a time. (For example,
do=search.) There are few such calls, and all of them call loadindex,
so each still eats gobs of memory, so serialising them still seems ok.
2008-11-11 15:40:04 -05:00
intrigeri
18c086ec04
po/todo: added note about backlinks not being updated
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 20:04:58 +01:00
Joey Hess
6611f3a2d9
bzr: Fix dates for recentchanges.
2008-11-11 13:44:47 -05:00
Joey Hess
72a2fa9441
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
2008-11-11 13:40:50 -05:00
Joey Hess
700c4bef29
let's stop sucking :-)
2008-11-11 13:40:02 -05: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
4c45dfce19
po/todo: update
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 17:30:19 +01:00
intrigeri
fb9130c18c
po: answered Joey's "create a new translation" question
...
... that I previously completely missed.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 17:17:56 +01:00
intrigeri
f0e796d9a1
po(change): fix uninitialized variables when running IkiWiki::refresh()
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 16:04:40 +01:00
intrigeri
43a1d36378
po: added HOMEPAGEURL template variable, documented when to use it
...
Hopefully all links should now be consistent with the chosen linking behavior,
but who knows...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 15:27:39 +01:00
intrigeri
18331e9261
po/todo: added bug report for weird Perl warnings
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 15:25:23 +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
6b82ef44b0
po: some code simplification/clarification
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 14:11:34 +01:00
http://edward.myopenid.com/
71ea77a780
add item to watch list
2008-11-11 07:59:06 -05:00
bcdugga
ebd9f4ce8a
2008-11-11 00:23:20 -05:00
intrigeri
6a9dafdc1d
po/todo: updated page formats, broken links, documentation
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 05:17:26 +01:00
intrigeri
3d8d47d785
Merge commit 'upstream/master' into prv/po
2008-11-11 04:40:24 +01:00
intrigeri
8c47f16dcc
po: help request
...
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 04:39:51 +01:00
intrigeri
0d8cbfc5e0
po(scan): make more clear what's being done
...
Mostly comments, and also a small code change: simplification and implementation
details hiding.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 04:32:20 +01:00
intrigeri
d57ef86380
po: reorder nearly all of the module code
...
It has grown up incrementally and new helper functions were added right in the
middle of the hooks, most often near the place they were used, which is
practical when doing initial development, but quite ugly afterwards, when helper
functions are useful to separate logic and implementation details.
Today's refactoring commits have brought the code to a much more maintainable
state, IMHO.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 04:05:39 +01:00
Joey Hess
53752bcb5d
remove redundant link munge
...
This is not needed now that tagpage returns a page name starting with a
slash.
(Also fixes a minor bug that the edit links started with double slashes due
to the hack.)
2008-11-10 21:47:29 -05:00
Joey Hess
6049fac46e
typo
2008-11-10 21:43:59 -05:00
intrigeri
f2dc003cfb
po/doc: first fuzzy-testing results for po4a and msgmerge
...
Chapter #1 , in which we learn po4a could help to DoS ikiwiki + po,
whereas msgmerge seems reluctant to cooperate.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11 03:23:02 +01:00
Joey Hess
1c4a4a41e1
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
2008-11-10 19:49:37 -05:00
Joey Hess
f8a09ba105
tag: Normalize tagbase so leading/trailing slashes in it don't break things.
2008-11-10 19:48:58 -05:00
Jon Dowland
17731892ec
reply
2008-11-10 23:38:45 +00:00
Jon Dowland
81a87988c4
Merge branch 'master' of git://git.ikiwiki.info
2008-11-10 23:35:00 +00:00
Joey Hess
183270a845
response
2008-11-10 18:34:35 -05:00
Jon Dowland
f28069a05c
add discussion on this tip
2008-11-10 23:34:09 +00:00
http://alcopop.org/me/openid/
91315207cf
specifying the user in recentchanges for anon git pushes
2008-11-10 18:30:08 -05:00
Jon Dowland
c1fa07ad4f
update my userpage (and try out git pushes)
2008-11-10 23:24:22 +00:00
Joey Hess
1ea66c3d3f
add a robots.txt
...
Yahoo! has been pounding on ikiwiki.cgi again. While I'd prefer ikiwiki to
generate sites that avoided robots hitting it in other ways, I'm adding a
robots.txt, at least temporarily.
2008-11-10 18:08:09 -05:00
Joey Hess
f0e58faefa
Add rel=nofollow to recentchanges_links for the same (weak) reasons it was earlier added to edit links.
2008-11-10 18:05:30 -05:00
intrigeri
e397888a77
po/doc: more security research results
...
Apart of the fuzzying part, I'm done with what I can do without help.
The "Running po4a on untrusted content" section needs at least a quick glance
from an experimented Perl programmer.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 23:52:50 +01:00
Joey Hess
d5853f3e33
reorg to avoid broken link in basewiki
...
ikiwiki/markdown is a basewiki page and shouldn't link to pages in tips.
Instead, make the tips link to it, so backlinks will point back to them.
While I'm at it, move the info about the emacs mode to a tip.
2008-11-10 17:40:03 -05:00
intrigeri
a7d329c173
po(match_lang, match_currentlang): use the lang() function
...
... now that it exists, instead of duplicating it.
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10 21:30:06 +01:00