summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2008-10-18po plugin: added and documented PERCENTTRANSLATED template variableintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: make translation percentage available in OTHERLANGUAGES loopintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added currentlang() custom PageSpec functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added lang() custom PageSpec functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: make any slave page dependent on the corresponding master pageintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: bugfix - only refresh POT/PO for translatable pagesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: do not trust po4a functions return valueintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: refresh PO files when a master page is updatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: refresh POT files when a master page is updatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: build %translations in needsbuild hook rather than scanintrigeri
... because we'll need this data to refresh POT/PO files in needsbuild hook Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: created OTHERLANGUAGES template loopintrigeri
It currently only provides basic translations/master pages links. Updated documentation accordingly. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: po_slave_languages is a hash, rather than a hash of hashesintrigeri
The latter seems to be unsupported by ikiwiki config system. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: build %translations at scan timeintrigeri
... so that we can consider it as complete at preprocess time Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: memoize istranslatable and _istranslationintrigeri
Both functions are called very often, and: - istranslatable has no side effect - _istranslation is the helper function, without any side effect, for the istranslation function Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin[filter]: avoid converting more than once per destfileintrigeri
Only the first filter function call on a given {page,destpage} must convert it from the PO file, subsequent calls must leave the passed $content unmodified. Else, preprocessing loops are the rule. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: bugfix (calling function in wrong module)intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added *.pot to wiki_file_prune_regexpsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: move translatable pages to setup file, refactorintrigeri
Replaced [[!translatable]] directive with po_translatable_pages setting. Moved istranslatable/istranslation code to helper functions leaving place for future caching and/or memoization. The PageSpec functions still work. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: allow pagestate update (bugfix)intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: respect documented convention to store pagestateintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: implemented po_link_to=currentintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added istranslatable() pagespec function, and use itintrigeri
(do not name non-translatable pages index.LL.html) Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: implemented po_link_to=negotiatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: implement linking specification in one of the main casesintrigeri
i.e. in case usedirs is enabled and po_link_to_current_language is disabled Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: add po_link_to_current_language option, check configintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: use pagespec_match() instead of direct match_istranslation callsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added [[!translatable]] directiveintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18added hook urlpathintrigeri
This hook can be used to modify the internal urls generated by ikiwiki. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: switch to page.LL.html naming conventionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: name rendered master pages like slave ones (page.html.LL)intrigeri
Apache's content negotiation transparently redirects any old URL (page.html) to the new one, depending on the client preferred language (i.e. a German browser will be fed with page.html.de). Transition to this naming convention is then really smooth. This naming convention allows one to deliberately display the master page, even if her browser is configured for another language. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: reworked available optionsintrigeri
- renamed po_supported_languages to po_slave_languages - added po_master_language option, which will soon be useful Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: htmlize translated content as if it was the same type as the ↵intrigeri
master page Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: convert PO to master page's type in filter hookintrigeri
Master page's type htmlize hook should also be run in po's htmlize hook, but let's proceed step by step. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: factorize most checks into a new match_istranslation PageSpecintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: initial workintrigeri
- .po is a new supported wiki page type - PO files are rendered verbatim into HTML - override targetpage to ease Content Negotiation Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18added the targetpage hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-17fix urlJoey Hess
2008-10-17tweak recentchanges permalink codeJoey Hess
Need to handle the case where url is not set.
2008-10-17Patch for anchor-based change permalinks in recent changes feedJoey Hess
from JasonBlevins
2008-10-17add missing getsetup hookJoey Hess
2008-10-17make relativedate work for the dates on the recentchanges pageJoey Hess
Having a always current relative date on recentchanges is very, very nice.
2008-10-17relativedate: New javascript-alicious plugin that makes all dates display ↵Joey Hess
relative, in a very nice way, if I say so myself.
2008-10-17Add an underlay for javascript, and add ikiwiki.js containing some utility code.Joey Hess
* Add an underlay for javascript, and add ikiwiki.js containing some utility code. * toggle: Stop embedding the full toggle code on each page using it, and move it to toggle.js in the javascript underlay.
2008-10-16aggregate: Avoid bug that caused immediate expiration of items with a date ↵Joey Hess
in the future.
2008-10-15inline: Use the feed's description in the rss and atom links. Closes: #502113Joey Hess
2008-10-14fix prototypeJoey Hess
2008-10-14inline: Allow MTIME to be used in inlinepage.tmpl.Joey Hess
2008-10-10optimise url parsing and add guard against failure to parseJoey Hess
2008-10-10google plugin: Use google.com to search the local site.Peter Simons
Google allows has a nice feature, sitesearch, that allows anyone to limit search results to a specific site. Obviously, this feature can be used to provide a search engine for the local ikiwiki site without the need to install any additional software. Just enable the 'google' plugin and make sure that --url uses the proper hostname. Thanks to Joey for helping to get the Perl implementation right.
2008-10-09orphans: Fix unquoted page name in regexp.Joey Hess