intrigeri [Fri, 2 Jan 2009 16:51:17 +0000 (17:51 +0100)]
po: first attempt to replace cansave hook with form validate tweaks
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 16:25:54 +0000 (17:25 +0100)]
po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 16:24:54 +0000 (17:24 +0100)]
po/i18n: move the function names out of the translatable strings
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 15:54:03 +0000 (16:54 +0100)]
po: updated copyright years
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 14:50:47 +0000 (15:50 +0100)]
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>
intrigeri [Fri, 2 Jan 2009 14:14:58 +0000 (15:14 +0100)]
po: avoid warnings and possible bugs with nested named subroutines
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 14:01:06 +0000 (15:01 +0100)]
po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 14:00:34 +0000 (15:00 +0100)]
po: gettext-ize error messages
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 13:18:40 +0000 (14:18 +0100)]
po/todo: remove silly ideas.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 12:43:40 +0000 (13:43 +0100)]
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>
intrigeri [Fri, 2 Jan 2009 12:43:08 +0000 (13:43 +0100)]
po/todo: added better implementation ideas
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 11:50:51 +0000 (12:50 +0100)]
po/todo: remove completed item
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 11:35:46 +0000 (12:35 +0100)]
po: cosmetic changes to percent translated display
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 11:27:10 +0000 (12:27 +0100)]
po(formbuilder_setup): use a template to display the warning
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 11:15:21 +0000 (12:15 +0100)]
po: test formbuilder_setup hook to warn about new master page's language
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 11:14:55 +0000 (12:14 +0100)]
po/todo: added bugreport about new page's type
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 2 Jan 2009 10:22:54 +0000 (11:22 +0100)]
po: require ikiwiki plugin interface 3.0
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 22:36:57 +0000 (23:36 +0100)]
po/todo: update
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 22:33:16 +0000 (23:33 +0100)]
po: send msgfmt output to /dev/null, else it creates messages.mo files
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 22:32:52 +0000 (23:32 +0100)]
po: fix error messages
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 22:10:16 +0000 (23:10 +0100)]
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>
intrigeri [Thu, 1 Jan 2009 21:28:20 +0000 (22:28 +0100)]
debian/control: suggest gettext, which is used by the po plugin
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 21:20:54 +0000 (22:20 +0100)]
skeleton plugin: added the canrename and canremove hooks
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 21:18:27 +0000 (22:18 +0100)]
po(TODO): the plugin code will need to be gettextized, at some point
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 21:16:43 +0000 (22:16 +0100)]
po(cansave): use po_to_markup to check PO validity
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 20:56:36 +0000 (21:56 +0100)]
po: move most of filter code to its own function
Allow this new po_to_markup function to run in non-fatal mode,
we need this in our cansave hook.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 18:48:48 +0000 (19:48 +0100)]
po: register a (dummy) cansave hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 18:48:27 +0000 (19:48 +0100)]
editpage: added a cansave hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 17:04:37 +0000 (18:04 +0100)]
Pass src, srcfile, dest and destfile to the canrename hook.
This is not needed by the use I'm doing of it, but seems more consistent to me.
Future users of this hook may need this data to make their mind.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 16:56:51 +0000 (17:56 +0100)]
po: bugfix
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 16:49:10 +0000 (17:49 +0100)]
po: fix canrename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 16:47:20 +0000 (17:47 +0100)]
rename: pass the CGI and session to the rename hook
The po plugin remame + canrename hook combination will need this.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 15:50:24 +0000 (16:50 +0100)]
po: use the new canrename hook to prevent translation renames in the CGI
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 15:48:43 +0000 (16:48 +0100)]
rename: implemented new canrename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 15:38:16 +0000 (16:38 +0100)]
remove: implemented a new canremove hook; use it in the po plugin
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 15:18:37 +0000 (16:18 +0100)]
po(todo): test results for markup languages support, thoughts about renaming/deleting
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 12:34:00 +0000 (13:34 +0100)]
Merge commit 'upstream/master' into prv/po
intrigeri [Thu, 1 Jan 2009 12:07:08 +0000 (13:07 +0100)]
Render.pm: also use 'our' for $backlinks_calculated
Since %backlinks are now declared with 'our', this variable must be as well.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Thu, 1 Jan 2009 00:14:06 +0000 (01:14 +0100)]
po(myurlto): more robust run_by_editpage logic
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 23:58:06 +0000 (00:58 +0100)]
po: some code/comments refactoring
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 22:54:21 +0000 (23:54 +0100)]
po: follow new coding style (removed Vim folding markers
)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 21:27:12 +0000 (22:27 +0100)]
po: added postscan hook, to make pages depend on the pages linking to them
... 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>
JoshTriplett [Wed, 31 Dec 2008 23:10:18 +0000 (18:10 -0500)]
Fix version.
Joey Hess [Wed, 31 Dec 2008 20:43:14 +0000 (15:43 -0500)]
formatting
Joey Hess [Wed, 31 Dec 2008 20:33:10 +0000 (15:33 -0500)]
fix link
Joey Hess [Wed, 31 Dec 2008 20:32:12 +0000 (15:32 -0500)]
fix link
Joey Hess [Wed, 31 Dec 2008 20:30:41 +0000 (15:30 -0500)]
3.0 annoucement
Joey Hess [Wed, 31 Dec 2008 20:28:03 +0000 (15:28 -0500)]
formatting
Joey Hess [Wed, 31 Dec 2008 20:27:52 +0000 (15:27 -0500)]
formatting
Joey Hess [Wed, 31 Dec 2008 20:26:28 +0000 (15:26 -0500)]
add news item for ikiwiki 3.00
Joey Hess [Wed, 31 Dec 2008 20:21:40 +0000 (15:21 -0500)]
releasing version 3.00
Joey Hess [Wed, 31 Dec 2008 19:54:22 +0000 (14:54 -0500)]
fix moveprefs transition
Joey Hess [Wed, 31 Dec 2008 19:12:37 +0000 (14:12 -0500)]
move to correct location
Joey Hess [Wed, 31 Dec 2008 19:08:15 +0000 (14:08 -0500)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Wed, 31 Dec 2008 18:33:10 +0000 (13:33 -0500)]
Merge branch 'next'
intrigeri [Wed, 31 Dec 2008 10:53:15 +0000 (11:53 +0100)]
need_global_renamepage_hook: proposed solution implemented in my po branch
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 16:10:33 +0000 (17:10 +0100)]
po/todo: reflect current link-related work status
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 15:45:55 +0000 (16:45 +0100)]
po: new po_translation_status_in_links option
... to make configurable the last implemented feature.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 15:34:08 +0000 (16:34 +0100)]
po(nicepagetitle): forgot to display %
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 15:31:18 +0000 (16:31 +0100)]
po(percenttranslated): fix issue with leading /
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 14:45:05 +0000 (15:45 +0100)]
po(nicepagetitle): append translation status to links to translated pages
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 14:37:25 +0000 (15:37 +0100)]
po: inject our own (currently a no-op) nicepagetitle function
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 14:23:59 +0000 (15:23 +0100)]
po/todo: reflect current status of links-related work
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 31 Dec 2008 12:02:48 +0000 (13:02 +0100)]
po: fix redirect after edit, using a somehow tricky hack
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 30 Dec 2008 23:38:47 +0000 (00:38 +0100)]
po: delete translations of deleted master pages
Signed-off-by: intrigeri <intrigeri@boum.org>
http://ptecza.myopenid.com/ [Wed, 31 Dec 2008 08:43:43 +0000 (03:43 -0500)]
* Now unofficial Ikiwiki backports for Ubuntu Intrepid
Joey Hess [Wed, 31 Dec 2008 05:44:54 +0000 (00:44 -0500)]
websetup: Avoid a crash when a new array setup item has been added in a new ikiwiki release, and is thus not present in the setup file yet.
This happened with camelcase_ignore. The code tried to convert the undef
value for it into an array.
Joey Hess [Wed, 31 Dec 2008 05:08:46 +0000 (00:08 -0500)]
make sure value is defined before using it as an array
intrigeri [Tue, 30 Dec 2008 22:10:12 +0000 (23:10 +0100)]
po: remove debug statements
intrigeri [Tue, 30 Dec 2008 22:00:46 +0000 (23:00 +0100)]
po: remove renamed pages special handling, not needed anymore
Thanks to the new rename hook behaviour, the whole renaming work is now done
by the rename plugin, and we don't need to remember which pages were renamed.
intrigeri [Tue, 30 Dec 2008 21:55:04 +0000 (22:55 +0100)]
the rename hook can now change the list of pages to rename
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 30 Dec 2008 20:36:40 +0000 (21:36 +0100)]
renamed the renamepage hook to renamelink, added rename hook
Signed-off-by: intrigeri <intrigeri@boum.org>
Joey Hess [Tue, 30 Dec 2008 18:38:27 +0000 (13:38 -0500)]
French translation update from Philippe Batailler. Closes: #510216
intrigeri [Tue, 30 Dec 2008 17:55:32 +0000 (18:55 +0100)]
po.t: adapted a few tests to match the current ikiwiki behaviour
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 30 Dec 2008 17:24:36 +0000 (18:24 +0100)]
Merge commit 'upstream/master' into prv/po
Conflicts:
debian/control
debian/copyright
doc/ikiwiki/pagespec.mdwn
Signed-off-by: intrigeri <intrigeri@boum.org>
http://smcv.pseudorandom.co.uk/ [Mon, 29 Dec 2008 22:25:12 +0000 (17:25 -0500)]
planning a future plugin
Joey Hess [Mon, 29 Dec 2008 20:58:20 +0000 (15:58 -0500)]
update
Joey Hess [Mon, 29 Dec 2008 20:08:32 +0000 (15:08 -0500)]
Merge branch 'master' into next
Joey Hess [Mon, 29 Dec 2008 20:08:18 +0000 (15:08 -0500)]
htmlbalance: Demand-load HTML::TreeBuilder to avoid failing test suite if it is not present.
Joey Hess [Mon, 29 Dec 2008 19:59:48 +0000 (14:59 -0500)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Mon, 29 Dec 2008 19:58:54 +0000 (14:58 -0500)]
some initial instructions for publishing wikis on github
http://blog.mithis.net/ [Mon, 29 Dec 2008 07:01:49 +0000 (02:01 -0500)]
http://blog.mithis.net/ [Mon, 29 Dec 2008 06:26:34 +0000 (01:26 -0500)]
Joey Hess [Mon, 29 Dec 2008 03:31:22 +0000 (22:31 -0500)]
1st comment spam
Joey Hess [Mon, 29 Dec 2008 03:23:15 +0000 (22:23 -0500)]
formatting
Joey Hess [Mon, 29 Dec 2008 03:20:22 +0000 (22:20 -0500)]
comments: Add cache avoidance.
This got lost when we added the jump-to-comment anchor.
Joey Hess [Mon, 29 Dec 2008 03:03:34 +0000 (22:03 -0500)]
clarify cgiurl setting
Joey Hess [Sun, 28 Dec 2008 21:19:47 +0000 (16:19 -0500)]
Replace blank OpenID placeholder logo with an unofficial OpenID logo developed by Anna Hess. The official logo does not seem destined to be free.
Joey Hess [Sun, 28 Dec 2008 20:12:11 +0000 (15:12 -0500)]
Merge branch 'master' into next
Conflicts:
debian/changelog
po/ikiwiki.pot
Joey Hess [Sun, 28 Dec 2008 20:05:33 +0000 (15:05 -0500)]
add news item for ikiwiki 2.72
Joey Hess [Sun, 28 Dec 2008 20:05:05 +0000 (15:05 -0500)]
releasing version 2.72
Joey Hess [Sat, 27 Dec 2008 02:45:12 +0000 (21:45 -0500)]
typo
Joey Hess [Fri, 26 Dec 2008 21:11:13 +0000 (16:11 -0500)]
Merge branch 'master' into next
Joey Hess [Fri, 26 Dec 2008 21:08:33 +0000 (16:08 -0500)]
inline: Run format hook first
inline has a format hook that is an optimisation hack. Until this hook
runs, the inlined content is not present on the page. This can prevent
other format hooks, that process that content, from acting on inlined
content. In bug ##509710, we discovered this happened commonly for the
embed plugin, but it could in theory happen for many other plugins (color,
cutpaste, etc) that use format to fill in special html after sanitization.
The ordering was essentially random (hash key order). That's kinda a good
thing, because hooks should be independent of other hooks and able to run
in any order. But for things like inline, that just doesn't work.
To fix the immediate problem, let's make hooks able to be registered as
running "first". There was already the ability to make them run "last".
Now, this simple first/middle/last ordering is obviously not going to work
if a lot of things need to run first, or last, since then we'll be back to
being unable to specify ordering inside those sets. But before worrying about
that too much, and considering dependency ordering, etc, observe how few
plugins use last ordering: Exactly one needs it. And, so far, exactly one
needs first ordering. So for now, KISS.
Another implementation note: I could have sorted the plugins with
first/last/middle as the primary key, and plugin name secondary, to get a
guaranteed stable order. Instead, I chose to preserve hash order. Two
opposing things pulled me toward that decision:
1. Since has order is randomish, it will ensure that no accidental
ordering assumptions are made.
2. Assume for a minute that ordering matters a lot more than expected.
Drastically changing the order a particular configuration uses could
result in a lot of subtle bugs cropping up. (I hope this assumption is
false, partly due to #1, but can't rule it out.)
Joey Hess [Fri, 26 Dec 2008 20:29:04 +0000 (15:29 -0500)]
update
Joey Hess [Fri, 26 Dec 2008 20:27:49 +0000 (15:27 -0500)]
deprecate embed plugin too
I see that this plugin's lists of safe content are already well out of
date, and htmlscrubber_skip offers a non whitelist based approach, so let's
deprecate this plugin for 3.0.
Joey Hess [Fri, 26 Dec 2008 20:06:00 +0000 (15:06 -0500)]
add link to untrusted git push
Joey Hess [Fri, 26 Dec 2008 19:07:25 +0000 (14:07 -0500)]
Merge branch 'master' into next
Joey Hess [Fri, 26 Dec 2008 19:07:19 +0000 (14:07 -0500)]
comments: Deal with users entering unqualified or partial urls.
People seem to be able to expect to enter www.foo.com and get away with it.
The resulting my.wiki/www.foo.com link was not ideal.
To fix it, use URI::Heuristic to expand such things into a real url. It
even looks up hostnames in the DNS if necessary.
Joey Hess [Thu, 25 Dec 2008 21:36:16 +0000 (16:36 -0500)]
Merge branch 'master' into next
Conflicts:
IkiWiki/Plugin/googlecalendar.pm