Joey Hess [Sun, 19 Oct 2008 19:45:29 +0000 (15:45 -0400)]
partial support for calling onload once the DOM is ready
This adds support for gecko and newer versions of opera
to call onload once the DOM is ready, rather than waiting for
all images in the page to load. Makes relativedate behave
somewhat better.
Dealing with this means jumping into the browser
incompatability waters that I prefer to avoid.
Full solutions for most of the major browsers are listed here:
http://dean.edwards.name/weblog/2006/06/again/
However, no *license* is listed there, so I can't use that code. Also, the more
involved code appears to have various issues (such as the inline IE code not
working via https). So I only added the simple call to a hook needed
for gecko/opera.
It seems that the only standards-compliant way to do this is using the
`defer` attribute to a `script` tag, using an external script that will be
loaded once the DOM is ready, and can call onload. However, that has
browser compatability issues of its own, since not all browsers honor
`defer`.
Perhaps I should really just be using one of the javascript frameworks, that
include code to solve this for the major browsers. But something about them
still puts me off, and this issue is minor enough that I'm willing to live
with incomplete support for now.
Joey Hess [Sun, 19 Oct 2008 19:17:00 +0000 (15:17 -0400)]
mark up date so relativedate will work
Joey Hess [Sun, 19 Oct 2008 16:59:35 +0000 (12:59 -0400)]
Updated French translation. Closes: #502694
tschwinge [Sun, 19 Oct 2008 16:14:08 +0000 (12:14 -0400)]
Correct copy&paste-o.
intrigeri [Sun, 19 Oct 2008 15:18:17 +0000 (17:18 +0200)]
po plugin: set every configuration item to unsafe
We will check later which ones are actually safe enough for websetup.
Signed-off-by: intrigeri <intrigeri@boum.org>
JoshTriplett [Sun, 19 Oct 2008 00:05:37 +0000 (20:05 -0400)]
Add links to the moin2iki code.
JoshTriplett [Sun, 19 Oct 2008 00:02:58 +0000 (20:02 -0400)]
JoshTriplett [Sun, 19 Oct 2008 00:02:28 +0000 (20:02 -0400)]
Update my contact info.
Joey Hess [Sat, 18 Oct 2008 23:11:57 +0000 (19:11 -0400)]
remove old dup div
intrigeri [Sat, 18 Oct 2008 22:15:44 +0000 (00:15 +0200)]
po plugin: doc fix
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sat, 18 Oct 2008 22:05:13 +0000 (00:05 +0200)]
po plugin: added ISTRANSLATION and ISTRANSLATABLE template variables
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sat, 18 Oct 2008 21:06:56 +0000 (23:06 +0200)]
po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
http://jblevins.org/ [Sat, 18 Oct 2008 20:53:28 +0000 (16:53 -0400)]
Tracking some issues on my user page
intrigeri [Sat, 18 Oct 2008 19:47:49 +0000 (21:47 +0200)]
po plugin(refreshpot): prevent PO references to be written
... else we can fall into some kind of nasty infinite loop, when two ikiwiki
instances don't store their working copy of the repository at the same place:
every POT file update in one repository would trigger an update of the same POT
file in the others repository, and so on.
Signed-off-by: intrigeri <intrigeri@boum.org>
http://jblevins.org/ [Sat, 18 Oct 2008 19:36:18 +0000 (15:36 -0400)]
Unclosed div
intrigeri [Sat, 18 Oct 2008 17:18:22 +0000 (19:18 +0200)]
po plugin: do not allow msgmerge to create backup files
Signed-off-by: intrigeri <intrigeri@boum.org>
Joey Hess [Sat, 18 Oct 2008 16:48:10 +0000 (12:48 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Sat, 18 Oct 2008 16:47:08 +0000 (12:47 -0400)]
allow ikiwiki.js to be loaded twice w/o clobbering previous hooks
Clearly it's suboptimal for it to be loaded twice, but this is a quick fix
at least.
intrigeri [Sat, 18 Oct 2008 14:22:37 +0000 (16:22 +0200)]
syntax.t: skip po since it uses a perl module not in build deps
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sat, 18 Oct 2008 00:49:32 +0000 (02:49 +0200)]
po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 05:23:06 +0000 (07:23 +0200)]
po plugin: only refresh private module variables when needed
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 05:12:28 +0000 (07:12 +0200)]
po plugin: add correct dependencies on pages using OTHERLANGUAGES
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 05:11:13 +0000 (07:11 +0200)]
po plugin: todo++
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 05:06:35 +0000 (07:06 +0200)]
po plugin: bugfix (OTHERLANGUAGES)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 04:47:06 +0000 (06:47 +0200)]
po plugin: initial implementation of automatic POT/PO update
The updated or created PO files are put under version control.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 03:36:24 +0000 (05:36 +0200)]
po plugin: todo++ more security checks needed
... when creating new files.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 03:27:28 +0000 (05:27 +0200)]
po plugin: rebuild %translations after having created missing POT/PO files
This is not needed yet, but when newly created POT/PO files are added to
%pagesources and other data structures, we'll need this.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 03:22:41 +0000 (05:22 +0200)]
po plugin: create missing POT/PO files in needsbuild hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 00:42:08 +0000 (02:42 +0200)]
po plugin: documentation work
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 00:25:34 +0000 (02:25 +0200)]
po plugin: added and documented PERCENTTRANSLATED template variable
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 15 Oct 2008 00:13:56 +0000 (02:13 +0200)]
po plugin: make translation percentage available in OTHERLANGUAGES loop
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 23:25:01 +0000 (01:25 +0200)]
po plugin: documented custom PageSpec tests, reorganized doc a bit
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 23:23:19 +0000 (01:23 +0200)]
po plugin: added currentlang() custom PageSpec function
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 23:05:22 +0000 (01:05 +0200)]
po plugin: todo update wrt. newly translatable pages
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 22:35:17 +0000 (00:35 +0200)]
po plugin: added lang() custom PageSpec function
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 22:34:25 +0000 (00:34 +0200)]
po plugin: todo++ : security note about system()
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 22:10:32 +0000 (00:10 +0200)]
po plugin: updated todo wrt. automatic POT/PO update/creation
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 22:05:52 +0000 (00:05 +0200)]
po plugin: make any slave page dependent on the corresponding master page
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 21:58:21 +0000 (23:58 +0200)]
po plugin: bugfix - only refresh POT/PO for translatable pages
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 21:55:46 +0000 (23:55 +0200)]
po plugin: do not trust po4a functions return value
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 21:54:26 +0000 (23:54 +0200)]
po plugin: todo++: create POT/PO when the plugin is enabled
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 15:21:03 +0000 (17:21 +0200)]
po plugin: updated doc to reflect current status of automatic PO files update
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 15:17:24 +0000 (17:17 +0200)]
po plugin: refresh PO files when a master page is updated
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 14:36:01 +0000 (16:36 +0200)]
po plugin: refresh POT files when a master page is updated
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 14 Oct 2008 13:24:58 +0000 (15:24 +0200)]
po plugin: build %translations in needsbuild hook rather than scan
... because we'll need this data to refresh POT/PO files in needsbuild hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 13 Oct 2008 20:07:21 +0000 (22:07 +0200)]
po plugin: created OTHERLANGUAGES template loop
It currently only provides basic translations/master pages links.
Updated documentation accordingly.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 13 Oct 2008 16:21:59 +0000 (18:21 +0200)]
po plugin: po_slave_languages is a hash, rather than a hash of hashes
The latter seems to be unsupported by ikiwiki config system.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 13 Oct 2008 15:22:49 +0000 (17:22 +0200)]
po plugin: fix formatting in documentation
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 13 Oct 2008 15:19:56 +0000 (17:19 +0200)]
po plugin: build %translations at scan time
... so that we can consider it as complete at preprocess time
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sat, 11 Oct 2008 01:41:12 +0000 (03:41 +0200)]
po plugin: memoize istranslatable and _istranslation
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>
intrigeri [Sat, 11 Oct 2008 01:02:43 +0000 (03:02 +0200)]
po plugin[filter]: avoid converting more than once per destfile
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>
intrigeri [Sat, 11 Oct 2008 01:01:59 +0000 (03:01 +0200)]
po plugin: bugfix (calling function in wrong module)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 19:56:40 +0000 (21:56 +0200)]
po plugin: added *.pot to wiki_file_prune_regexps
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 19:47:20 +0000 (21:47 +0200)]
po plugin: move translatable pages to setup file, refactor
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>
intrigeri [Fri, 10 Oct 2008 19:03:21 +0000 (21:03 +0200)]
po plugin: added note about not publishing .pot files
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 17:29:16 +0000 (19:29 +0200)]
po plugin: added todo note about optimization
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 16:08:00 +0000 (18:08 +0200)]
po plugin: allow pagestate update (bugfix)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 16:01:06 +0000 (18:01 +0200)]
po plugin: respect documented convention to store pagestate
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 15:39:28 +0000 (17:39 +0200)]
po plugin: update doc (move finished item from todo)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 15:37:14 +0000 (17:37 +0200)]
po plugin: implemented po_link_to=current
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 15:10:40 +0000 (17:10 +0200)]
po plugin: added istranslatable() pagespec function, and use it
(do not name non-translatable pages index.LL.html)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 13:48:35 +0000 (15:48 +0200)]
po plugin: implemented po_link_to=negotiated
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 13:35:55 +0000 (15:35 +0200)]
po plugin: rewrite internal linking specification
(not implemented yet)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 13:16:04 +0000 (15:16 +0200)]
po plugin: implement linking specification in one of the main cases
i.e. in case usedirs is enabled and po_link_to_current_language is disabled
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 12:46:48 +0000 (14:46 +0200)]
rename urlpath hook into tweakurlpath for consistency's sake
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 12:30:31 +0000 (14:30 +0200)]
added the tweakbestlink hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Fri, 10 Oct 2008 11:57:48 +0000 (13:57 +0200)]
po plugin: add po_link_to_current_language option, check config
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 8 Oct 2008 18:31:46 +0000 (20:31 +0200)]
po plugin: use pagespec_match() instead of direct match_istranslation calls
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 8 Oct 2008 13:02:30 +0000 (15:02 +0200)]
po plugin: added [[!translatable]] directive
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 8 Oct 2008 12:37:43 +0000 (14:37 +0200)]
po plugin: clearer file naming specs
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>
intrigeri [Wed, 8 Oct 2008 12:30:50 +0000 (14:30 +0200)]
po plugin: add one more pagespec function to the specification
(not implemented yet)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Wed, 8 Oct 2008 09:47:37 +0000 (11:47 +0200)]
po plugin: linking behavior specification
(no implementation yet)
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 7 Oct 2008 22:50:10 +0000 (00:50 +0200)]
added hook urlpath
This hook can be used to modify the internal urls generated by ikiwiki.
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 7 Oct 2008 20:39:17 +0000 (22:39 +0200)]
po plugin: switch to page.LL.html naming convention
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 7 Oct 2008 20:20:07 +0000 (22:20 +0200)]
po plugin: enhance documentation
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Tue, 7 Oct 2008 20:08:28 +0000 (22:08 +0200)]
po plugin: name rendered master pages like slave ones (page.html.LL)
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>
intrigeri [Mon, 6 Oct 2008 01:42:26 +0000 (03:42 +0200)]
po plugin: initial documentation, along with huge TODO list
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sun, 5 Oct 2008 19:34:43 +0000 (21:34 +0200)]
po plugin: reworked available options
- 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>
intrigeri [Sun, 5 Oct 2008 17:56:53 +0000 (19:56 +0200)]
po plugin: htmlize translated content as if it was the same type as the master page
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sun, 5 Oct 2008 17:42:43 +0000 (19:42 +0200)]
po plugin: convert PO to master page's type in filter hook
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>
intrigeri [Sun, 5 Oct 2008 15:14:30 +0000 (17:14 +0200)]
po plugin: factorize most checks into a new match_istranslation PageSpec
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sun, 5 Oct 2008 02:11:02 +0000 (04:11 +0200)]
po plugin: initial work
- .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>
intrigeri [Sun, 5 Oct 2008 02:05:24 +0000 (04:05 +0200)]
added the targetpage hook
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Sat, 4 Oct 2008 14:11:08 +0000 (16:11 +0200)]
intrigeri [Sat, 4 Oct 2008 14:10:39 +0000 (16:10 +0200)]
fix
http://hendry.iki.fi/ [Sat, 18 Oct 2008 13:21:24 +0000 (09:21 -0400)]
google plugin linked
http://xma.myopenid.com/ [Sat, 18 Oct 2008 11:10:10 +0000 (07:10 -0400)]
Joey Hess [Sat, 18 Oct 2008 02:04:43 +0000 (22:04 -0400)]
fix url
Joey Hess [Sat, 18 Oct 2008 01:59:27 +0000 (21:59 -0400)]
update
Joey Hess [Sat, 18 Oct 2008 01:54:42 +0000 (21:54 -0400)]
tweak recentchanges permalink code
Need to handle the case where url is not set.
Joey Hess [Sat, 18 Oct 2008 01:49:55 +0000 (21:49 -0400)]
Patch for anchor-based change permalinks in recent changes feed
from JasonBlevins
Joey Hess [Sat, 18 Oct 2008 01:29:05 +0000 (21:29 -0400)]
add missing getsetup hook
Joey Hess [Sat, 18 Oct 2008 01:21:07 +0000 (21:21 -0400)]
make relativedate work for the dates on the recentchanges page
Having a always current relative date on recentchanges is very, very nice.
Joey Hess [Sat, 18 Oct 2008 01:16:27 +0000 (21:16 -0400)]
response
Joey Hess [Sat, 18 Oct 2008 01:02:12 +0000 (21:02 -0400)]
response
Joey Hess [Sat, 18 Oct 2008 00:47:32 +0000 (20:47 -0400)]
relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself.
Joey Hess [Sat, 18 Oct 2008 00:28:24 +0000 (20:28 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Sat, 18 Oct 2008 00:28:18 +0000 (20:28 -0400)]
Add an underlay for javascript, and add ikiwiki.js containing some utility code.
* 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.
Joey Hess [Fri, 17 Oct 2008 23:53:04 +0000 (19:53 -0400)]
add_underlay: avoid adding the same underlay twice
http://jblevins.org/ [Fri, 17 Oct 2008 23:52:42 +0000 (19:52 -0400)]
Patch for anchor-based change permalinks in recent changes feed