2006-07-11 22:40:22 +02:00
|
|
|
|
From [[Recai]]:
|
|
|
|
|
> Here is my initial work on ikiwiki l10n infrastructure (I'm sending it
|
|
|
|
|
> before finalizing, there may be errors).
|
|
|
|
|
|
|
|
|
|
I've revised the patches (tested OK):
|
|
|
|
|
|
|
|
|
|
- $config{lang} patch:
|
|
|
|
|
|
2006-07-26 22:28:36 +02:00
|
|
|
|
<http://people.debian.org/~roktas/patches/ikiwiki/ikiwiki-lang.diff>
|
2006-07-11 22:40:22 +02:00
|
|
|
|
|
|
|
|
|
+ Support for CGI::FormBuilder.
|
|
|
|
|
+ Modify Makefile.PL for l10n.
|
|
|
|
|
|
|
|
|
|
- l10n infrastructure from Koha project. (This patch must be applied with
|
|
|
|
|
'-p1', also, it needs a 'chmod +x l10n/*.pl' after patching.)
|
|
|
|
|
|
|
|
|
|
+ Leave templates dir untouched, use a temporary translations directory
|
|
|
|
|
instead.
|
|
|
|
|
+ Fix Makefile (it failed to update templates).
|
|
|
|
|
|
2007-10-08 21:43:01 +02:00
|
|
|
|
<http://people.debian.org/~roktas/patches/ikiwiki/ikiwiki-l10n.diff>
|
2006-07-11 22:40:22 +02:00
|
|
|
|
|
|
|
|
|
However...
|
|
|
|
|
|
|
|
|
|
> fine. Also a final note, I haven't examined the quality of generated
|
|
|
|
|
> templates yet.
|
|
|
|
|
|
|
|
|
|
Looks like, tmpl_process3 cannot preserve line breaks in template files.
|
|
|
|
|
For example, it processed the following template:
|
|
|
|
|
|
|
|
|
|
Someone[1], possibly you, requested that you be emailed the password for
|
|
|
|
|
user
|
|
|
|
|
<TMPL_VAR USER_NAME> on <TMPL_VAR WIKINAME>[2].
|
|
|
|
|
|
|
|
|
|
The password is: <TMPL_VAR USER_PASSWORD>
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
ikiwiki
|
|
|
|
|
|
|
|
|
|
[1] The user requesting the password was at IP address <TMPL_VAR
|
|
|
|
|
REMOTE_ADDR>
|
|
|
|
|
[2] Located at <TMPL_VAR WIKIURL>
|
|
|
|
|
|
|
|
|
|
as (in Turkish):
|
|
|
|
|
|
|
|
|
|
Birisi[1], ki muhtemelen bu sizsiniz, <TMPL_VAR WIKINAME>[2] üzerindeki
|
|
|
|
|
<TMPL_VAR USER_NAME> kullanıcısına ait parolanın epostalanması isteğinde
|
|
|
|
|
bulundu. Parola: <TMPL_VAR USER_PASSWORD> -- ikiwiki [1] Parolayı isteyen
|
|
|
|
|
kullanıcının ait IP adresi: <TMPL_VAR REMOTE_ADDR>[2] <TMPL_VAR WIKIURL>
|
|
|
|
|
|
|
|
|
|
> Looks like, tmpl_process3 cannot preserve line breaks in template files.
|
|
|
|
|
> For example, it processed the following template:
|
|
|
|
|
|
|
|
|
|
This could be easily worked around in tmpl_process3, but I wouldn't like to
|
|
|
|
|
maintain a separate utility.
|
2006-12-29 05:38:40 +01:00
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
As to the hardcoded strings in ikiwiki, I've internationalized the program,
|
|
|
|
|
and there is a po/ikiwiki.pot in the source that can be translated.
|
|
|
|
|
--[[Joey]]
|
2007-10-17 02:55:12 +02:00
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
2007-10-21 23:59:41 +02:00
|
|
|
|
Danish l10n of templates and basewiki is available with the following commands:
|
|
|
|
|
|
|
|
|
|
git clone http://source.jones.dk/ikiwiki.git newsite
|
|
|
|
|
cd newsite
|
2007-11-03 15:48:31 +01:00
|
|
|
|
make
|
2007-10-21 23:59:41 +02:00
|
|
|
|
|
2007-11-03 15:48:31 +01:00
|
|
|
|
Updates are retrieved with this single command:
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
2008-08-04 03:25:21 +02:00
|
|
|
|
l10n is maintained using po4a for basewiki, smiley and templates - please send me PO files if you
|
|
|
|
|
translate to other languagess than the few I know about myself: <dr@jones.dk>
|
2007-11-03 15:48:31 +01:00
|
|
|
|
|
|
|
|
|
As upstream ikiwiki is now maintained in GIT too, keeping the master mirror in sync with upstream
|
|
|
|
|
could probably be automated even more - but an obstacle seems to be that content is not maintained
|
|
|
|
|
separately but as an integral part of upstream source (GIT seems to not support subscribing to
|
|
|
|
|
only parts of a repository).
|
|
|
|
|
|
2007-11-03 16:09:27 +01:00
|
|
|
|
For example use, here's how to roll out a clone of the [Redpill support site](http://support.redpill.dk/):
|
|
|
|
|
|
|
|
|
|
mkdir -p ~/public_cgi/support.redpill.dk
|
2008-08-04 04:29:29 +02:00
|
|
|
|
git clone git://source.jones.dk/bin
|
|
|
|
|
bin/localikiwikicreatesite -o git://source.redpill.dk/support rpdemo
|
2007-11-03 16:09:27 +01:00
|
|
|
|
|
|
|
|
|
(Redpill support is inspired by <http://help.riseup.net> but needs to be reusable for several similarly configured networks)
|
|
|
|
|
|
2007-11-03 15:48:31 +01:00
|
|
|
|
--[[JonasSmedegaard]]
|
2008-08-04 20:53:11 +02:00
|
|
|
|
|
|
|
|
|
> I don't understand at all why you're using git the way you are.
|
|
|
|
|
>
|
|
|
|
|
> I think that this needs to be reworked into a patch against the regular
|
|
|
|
|
> ikiwiki tree, that adds the po4a stuff needed to generate the pot files for the
|
|
|
|
|
> basewiki and template content, as well as the stuff that generates the
|
|
|
|
|
> translated versions of those from the po files.
|
2009-07-19 12:57:32 +02:00
|
|
|
|
>
|
|
|
|
|
> The now merged po plugin also handles some of this.
|
2008-08-04 20:53:11 +02:00
|
|
|
|
> --[[Joey]]
|