Commit Graph

1117 Commits (51badc960d933f6d0670cc76390c332a31b35d63)

Author SHA1 Message Date
intrigeri 51badc960d rename hook: instead of modifying the passed-by-name array, return a copy
This is intended to solve Joey's concerns expressed on
http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it
possible to use this hook from external plugins.

A plugin using this hook still can add/modify/remove elements of the
@torename array.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27 17:08:55 +01:00
intrigeri ca9e45c3ba po: make the "backlinks involve dependencies" feature optional
It can now be configured with the po_strictly_refresh_backlinks setting.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27 00:25:46 +01:00
intrigeri 03ab262319 revert renamepage's hook original name
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-27 00:00:00 +01:00
intrigeri 190ea1d47f plugins/po: talk about the po4a version in the first lines
... as it seems it can be missed if I keep it only in the security section.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26 23:12:16 +01:00
intrigeri 78a095aa42 only pass named parameters to the canremove hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26 23:07:19 +01:00
intrigeri f02672c113 only pass named parameters to the canrename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26 23:02:31 +01:00
intrigeri fcaa7f6237 Merge commit 'upstream/master' into prv/po 2009-01-26 22:51:50 +01:00
intrigeri dfc50165dd po and doc/todo/need_global_renamepage_hook: response
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26 22:32:59 +01:00
Joey Hess 96073d77af review 2009-01-26 14:13:52 -05:00
Joey Hess 53be24789e don't add new exported warning function
Nothing in the po plugin actually uses this function.

The benefit of adding the function in general is debatable, but I'd
prefer to keep the changes involved in merging po at a minimum.
2009-01-26 13:37:57 -05:00
Joey Hess 12eb056b33 Merge branch 'master' into po 2009-01-26 13:05:38 -05:00
Joey Hess 51cd34afff update 2009-01-25 23:02:11 -05:00
Joey Hess ff9a61b481 update 2009-01-25 22:59:20 -05:00
Joey Hess 7a7e28c55f add a button to prefs page for comment moderation 2009-01-25 19:04:45 -05:00
Joey Hess c154fa5d6c comments: If comment content checks fail, store the comment (in .ikiwiki/comments_pending) for moderator review. 2009-01-25 15:42:13 -05:00
intrigeri daaf488538 po: let's walk the last steps needed before merge!
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-20 00:54:38 +01:00
intrigeri f8c306a21b remove cansave plugin, now replaced by Joey's checkcontent one
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-19 19:53:32 +01:00
intrigeri a3726968bc make checkcontent compatible with hooks that need the full content
Always pass the full (modified) content in `content` named parameter. When the
user edits an existing wiki page, also pass a `diff` named parameter, which
includes only the lines that they added to the page, or modified.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-19 19:44:39 +01:00
http://smcv.pseudorandom.co.uk/ e98f1b246a fix typo, mention git branch 2009-01-18 11:40:57 -05:00
http://smcv.pseudorandom.co.uk/ 5f80ac3202 underlay plugin, a command-line interface for add_underlay() 2009-01-18 09:52:51 -05:00
intrigeri e9e75f5f29 Merge commit 'upstream/master' into prv/po
Conflicts:

	t/syntax.t
2009-01-18 00:38:31 +01:00
PaulePanter c727e23fdb Typo. 2009-01-17 09:56:50 -05:00
intrigeri 832d4d31d1 Merge commit 'upstream/master' into prv/po
Conflicts:

	IkiWiki/Plugin/editpage.pm
	IkiWiki/Plugin/skeleton.pm.example
	doc/plugins/write.mdwn
	t/syntax.t
2009-01-17 14:01:53 +01:00
intrigeri 40de619d49 po(doc): moved security analysis to its own page
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-17 13:50:19 +01:00
Joey Hess a214d537b3 mention dep 2009-01-16 23:07:02 -05:00
Joey Hess 26fc2dde44 add link to options list 2009-01-16 22:46:10 -05:00
Joey Hess 7ee92cab40 blogspam: New plugin, adding spam filtering for page editing / comment posting using the BlogSpam.net API. 2009-01-16 22:39:11 -05:00
Joey Hess f7b2cfcf50 checkcontent: New hook, can be used to implement arbitrary content filters, including spam filters. 2009-01-16 20:46:55 -05:00
intrigeri df82b5e62a po: when possible, disable use of Text::WrapI18N in po4a; else warn about too old po4a
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-16 15:07:05 +01:00
intrigeri 1c53179e97 add a warning (exported) function to the core
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-16 15:06:42 +01:00
intrigeri 7919e70282 po(todo): more test results
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-15 23:06:11 +01:00
intrigeri 3ba976d1d3 po: pages in underlay dirs are not translatable
Fixes build break due to read-only underlay dirs, e.g. basewiki.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-15 23:04:57 +01:00
intrigeri 7ca396d6ee po/todo: some testing results
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-15 21:32:22 +01:00
intrigeri 48de7f9c7b po: more security-related reports
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-15 20:01:54 +01:00
intrigeri 82197bd0ea Merge commit 'upstream/master' into prv/po 2009-01-13 12:26:43 +01:00
Joey Hess 81b088866b repolist: New plugin to support the rel=vcs-* microformat.
* repolist: New plugin to support the rel=vcs-* microformat.
* goodstuff: Include repolist by default. (But it does nothing until
  configured with the repository locations.)
2009-01-07 16:07:46 -05:00
intrigeri c8e3136d00 po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 18:59:07 +01:00
intrigeri 226c61f1aa po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 17:25:54 +01:00
intrigeri ba47fe4246 po: added note about now implemented feature
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 16:05:27 +01:00
intrigeri 0bf9ea723a meta branch merge required
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 16:05:27 +01:00
intrigeri fae3cef41a po(formbuilder_setup): remove the rename/remove buttons on slave pages
This has to be done after the rename/remove plugins have added
their buttons, so we set this hook to be run last.

The canrename/canremove hooks already ensure this is forbidden
at the backend level, so this is only UI sugar.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 16:02:25 +01:00
intrigeri 226abb373a po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 15:14:49 +01:00
intrigeri 586e6e3362 po/todo: remove silly ideas.
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 14:18:40 +01:00
intrigeri 724dbabc4a po: do not allow to create pages of type po
The main reason to do so is to bypass the "favor the type of linking page on
page creation" logic, which is unsuitable when a broken link is clicked on
a slave (PO) page.

Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 14:09:34 +01:00
intrigeri 12178c2a64 po/todo: added better implementation ideas
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 13:43:08 +01:00
intrigeri 07c6a6a1fc po/todo: remove completed item
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 12:50:51 +01:00
intrigeri f0e2ce4360 po/todo: added bugreport about new page's type
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-02 12:14:55 +01:00
intrigeri 6fe1e3b66d po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01 23:36:57 +01:00
intrigeri c821cee108 po(cansave): check PO validity using new isvalidpo function
... 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-01 23:12:08 +01:00
intrigeri 09d0321f15 po(TODO): the plugin code will need to be gettextized, at some point
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-01 22:18:27 +01:00