summaryrefslogtreecommitdiff
path: root/doc/plugins/po.mdwn
AgeCommit message (Collapse)Author
2009-01-01po(cansave): check PO validity using new isvalidpo functionintrigeri
... because Po4a's parser does not care about malformed PO data. Use gettext's msgfmt program instead. Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01po(TODO): the plugin code will need to be gettextized, at some pointintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01po: use the new canrename hook to prevent translation renames in the CGIintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01po(todo): test results for markup languages support, thoughts about ↵intrigeri
renaming/deleting Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01po: added postscan hook, to make pages depend on the pages linking to themintrigeri
... so that nicepagetitle hook's effects, such as translation status displayed in links, are updated when the linked page changes. The replacement of 'my %backlinks' with 'our %backlinks' in Render.pm made this work: previously, every postscan hook was called with an almost empty %backlinks, which defeated all my attempts to implement this feature. This feature hits performance a bit. Its cost was quite small in my real-world use-cases (a few percents bigger refresh time), but could be bigger in worst cases. Time will tell. NB: this hack could also be used by my meta branch. It may even be a ikiwiki optional feature. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-31po/todo: reflect current link-related work statusintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-31po/todo: reflect current status of links-related workintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-31po: fix redirect after edit, using a somehow tricky hackintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-31po: delete translations of deleted master pagesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-13po/todo: added test resultsintrigeri
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(change): flush Memoize cache, to fix bug after rename/removeintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po/todo: first pass of robustness tests, added todo for remove/renameintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-12po/todo: added robustness tests that have to be doneintrigeri
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-11patch and a few commentsJoey Hess
2008-11-11po/todo: bug report about linking to subpages from translation pagesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po/todo: fixed internal linksintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po/todo: added note about backlinks not being updatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po/todo: updateintrigeri
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/todo: added bug report for weird Perl warningsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po/todo: updated page formats, broken links, documentationintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-11po/doc: first fuzzy-testing results for po4a and msgmergeintrigeri
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-10po/doc: more security research resultsintrigeri
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-08po/todo(security): many research resultsintrigeri
... and some questions to Joey (hint: look for your name) Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08po/todo++: support other file formats than markdownintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08po/todo: mostly security researchintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-08po: started research on gettext/po4a securityintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
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: write detailed specification of wished backlinks behaviourintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
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>
2008-11-06po: redesign (once more) automatic POT/PO files updateintrigeri
Now use the change hook to update these files, check them into VCS, and trigger IkiWiki::refresh as needed. The needsbuild hook's help was required to prevent infinite looping. This more rigorous way of doing this fixes recentchanges (that was previously not updated in some cases), and probably is a better long-term solution than the two previously tested ones. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: doc/todo updateintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: use prep_writefile before creating any files in refreshpot and refreshpointrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: reported parentlinks misbehaviour in special caseintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: po_link_to is safe, and fallbacks to a working value if neededintrigeri
warnings are displayed if it is set to an invalid or incompatible value (e.g. po_link_to=negotiated and disabled usedirs) Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: mark po_translatable_pages as a safe configuration settingintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: po_master_language and po_slave_languages are safe config settingsintrigeri
... and check their validity in checkconfig Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06po: added license and copyrightintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-06Merge commit 'upstream/po' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/po.pm doc/plugins/po.mdwn Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-05need licenseJoey Hess
2008-11-05responseJoey Hess
2008-11-05fixed one security problem, two more need reviewJoey Hess
2008-11-05avoid hitting the shell with system()Joey Hess
2008-11-05minor wording improvements/changesJoey Hess
2008-11-05po plugin: more detailed backlinks todo itemintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>