aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* po plugin: todo++ : security note about system()intrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: updated todo wrt. automatic POT/PO update/creationintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: make any slave page dependent on the corresponding master pageintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: bugfix - only refresh POT/PO for translatable pagesintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: do not trust po4a functions return valueintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: todo++: create POT/PO when the plugin is enabledintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: updated doc to reflect current status of automatic PO files updateintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: refresh PO files when a master page is updatedintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: refresh POT files when a master page is updatedintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: build %translations in needsbuild hook rather than scanintrigeri2008-10-18
| | | | | | ... because we'll need this data to refresh POT/PO files in needsbuild hook Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: created OTHERLANGUAGES template loopintrigeri2008-10-18
| | | | | | | It currently only provides basic translations/master pages links. Updated documentation accordingly. Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: po_slave_languages is a hash, rather than a hash of hashesintrigeri2008-10-18
| | | | | | The latter seems to be unsupported by ikiwiki config system. Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: fix formatting in documentationintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: build %translations at scan timeintrigeri2008-10-18
| | | | | | ... so that we can consider it as complete at preprocess time Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: memoize istranslatable and _istranslationintrigeri2008-10-18
| | | | | | | | | 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>
* po plugin[filter]: avoid converting more than once per destfileintrigeri2008-10-18
| | | | | | | | | 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>
* po plugin: bugfix (calling function in wrong module)intrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added *.pot to wiki_file_prune_regexpsintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: move translatable pages to setup file, refactorintrigeri2008-10-18
| | | | | | | | | 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>
* po plugin: added note about not publishing .pot filesintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added todo note about optimizationintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: allow pagestate update (bugfix)intrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: respect documented convention to store pagestateintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: update doc (move finished item from todo)intrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: implemented po_link_to=currentintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added istranslatable() pagespec function, and use itintrigeri2008-10-18
| | | | | | (do not name non-translatable pages index.LL.html) Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: implemented po_link_to=negotiatedintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: rewrite internal linking specificationintrigeri2008-10-18
| | | | | | (not implemented yet) Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: implement linking specification in one of the main casesintrigeri2008-10-18
| | | | | | i.e. in case usedirs is enabled and po_link_to_current_language is disabled Signed-off-by: intrigeri <intrigeri@boum.org>
* rename urlpath hook into tweakurlpath for consistency's sakeintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* added the tweakbestlink hookintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: add po_link_to_current_language option, check configintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: use pagespec_match() instead of direct match_istranslation callsintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: added [[!translatable]] directiveintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: clearer file naming specsintrigeri2008-10-18
| | | | | | | i.e. clarify that master pages do not have to obey a special naming convention, so that migration from/to this plugin is smooth Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: add one more pagespec function to the specificationintrigeri2008-10-18
| | | | | | (not implemented yet) Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: linking behavior specificationintrigeri2008-10-18
| | | | | | (no implementation yet) Signed-off-by: intrigeri <intrigeri@boum.org>
* added hook urlpathintrigeri2008-10-18
| | | | | | This hook can be used to modify the internal urls generated by ikiwiki. Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: switch to page.LL.html naming conventionintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: enhance documentationintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: name rendered master pages like slave ones (page.html.LL)intrigeri2008-10-18
| | | | | | | | | | | | 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>
* po plugin: initial documentation, along with huge TODO listintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: reworked available optionsintrigeri2008-10-18
| | | | | | | - 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>
* po plugin: htmlize translated content as if it was the same type as the ↵intrigeri2008-10-18
| | | | | | master page Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: convert PO to master page's type in filter hookintrigeri2008-10-18
| | | | | | | 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>
* po plugin: factorize most checks into a new match_istranslation PageSpecintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* po plugin: initial workintrigeri2008-10-18
| | | | | | | | - .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>
* added the targetpage hookintrigeri2008-10-18
| | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* Revert "fix"intrigeri2008-10-18
| | | | This reverts commit 40757bfa154d816f0843af468c9085d5b041c95b.
* fixintrigeri2008-10-18
|