summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2008-11-13po(change): avoid losing information before guessing the same...intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-13po(istranslatablefile): extracted this from istranslatableintrigeri
... will need this soon to deal with master file deletion. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po(otherlanguages): return pages that should existintrigeri
... instead of already existing ones. This fixes the "missing otherlanguages links on master pages just created via the CGI" bug. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po: memoized istranslatable, eventuallyintrigeri
And enjoy a 10% rebuild time enhancement on a complex wiki full of maps and other pseudo-dynamic content, with some other costly plugins enabled. So it could well mean 20% on a more usual wiki. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po(change): flush Memoize cache, to fix bug after rename/removeintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po(htmlize): ignore PO files not managed by this pluginintrigeri
This way, the po plugin will not appropriate PO files it is not responsible for, and PO files existing before this plugin was enabled can coexist peacefully with our own ones. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po: ooops, fixed just introduced bugintrigeri
(I just removed in istranslation and _istranslation the dependency on istranslatable... which broke things in a subtle way, hard to see at the first glance.) Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12parentlinks: fixed links when po plugin is enabledintrigeri
(and usedirs is disabled) Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po: fix istranslation/istranslatable for pages starting with /intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po(mybestlink): fixed when fed with path beginning with /intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po: compute internal links from a slave page relative to its master pageintrigeri
e.g. a link appearing on a slave page links to its masterpage's subpages. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12Merge commit 'upstream/po' into prv/pointrigeri
2008-11-11Merge commit 'intrigeri/po' into poJoey Hess
2008-11-11Merge branch 'master' into poJoey Hess
2008-11-11po: fixed bug when a new translatable page is createdintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: change a bit the way links are generatedintrigeri
This will soon enable usage of translated page titles in link. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11bzr: Fix dates for recentchanges.Joey Hess
2008-11-11po: fixed link to home page when po_link_to=negotiated, added testcaseintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po(change): fix uninitialized variables when running IkiWiki::refresh()intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: added HOMEPAGEURL template variable, documented when to use itintrigeri
Hopefully all links should now be consistent with the chosen linking behavior, but who knows... Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: fixed link to homepage from non-translation pageintrigeri
Added testcases for this bug. It remains broken when generated from <TMPL_VAR BASEURL>, though. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: some code simplification/clarificationintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11Merge commit 'upstream/master' into prv/pointrigeri
2008-11-11po(scan): make more clear what's being doneintrigeri
Mostly comments, and also a small code change: simplification and implementation details hiding. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po: reorder nearly all of the module codeintrigeri
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-10remove redundant link mungeJoey Hess
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-10tag: Normalize tagbase so leading/trailing slashes in it don't break things.Joey Hess
2008-11-10Add rel=nofollow to recentchanges_links for the same (weak) reasons it was ↵Joey Hess
earlier added to edit links.
2008-11-10po(match_lang, match_currentlang): use the lang() functionintrigeri
... now that it exists, instead of duplicating it. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: rewrote otherlanguagesloop()intrigeri
It is now more elegant IMHO, and the output is now sorted according to the language name (instead of code). Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: factorize extraction of a slave page's masterpage and langintrigeri
The very same code was repeated at dozens of places. NB: the real work is now done is _istranslation(), which is memoized, so the additional function calls overhead should be compensated. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po(otherlanguagesloop): start factorizingintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: finish abstracting %filtered by putting it into a blackboxintrigeri
i.e. it is invisible for everyone but its accessors/mutators Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: actually use pofiles() function, to enhance code clarityintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: abstract "doing something for the same page in every other language"intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: abstract implementation details for %translations building and resettingintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: abstract %filtered implementation detailsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: clarify error messagesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: clarify code with some commentsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-10po: prevent a slave page to depend on itselfintrigeri
It has never caused harm yet, but it might in the future. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08po(refreshpot): define the input charset before read()'ingintrigeri
... to prevent the use of Encode::Guess::guess_encoding() in Locale::Po4a::Transtractor (just a minor security measure, dependent on po4a internals, but we have no reason to think Encode::Guess is not safe). Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07Merge commit 'upstream/master' into pub/pointrigeri
2008-11-07po: finished backlinks implementationintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07po: implemented linking/backlinks specification for po_link_to=negotiatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07po: added pofiles() function, will use this soonintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-07po: add commentsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06txt: Do not encode quotes when filtering the txt, as that broke later ↵Joey Hess
parsing of any directives on the page.
2008-11-06meta: Plugin is now enabled by default since the basewiki uses it.Joey Hess
2008-11-06aggregate: Try to query XML::Feed for the base url when derelevatising ↵Joey Hess
links. Since this needs the just released XML::Feed 0.3, as well as a not yet released XML::RSS, it will fall back to the old method if no xml:base info is available.
2008-11-06po: fix link to homepage in special caseintrigeri
... by wrapping IkiWiki::urlto in order to workaround hard-coded /index.$config{htmlext}, which is wrong when usedirs=0 and po_link_to=current and translatable homepage Signed-off-by: intrigeri <intrigeri@boum.org>