summaryrefslogtreecommitdiff
path: root/doc/todo/l10n.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-10 13:44:27 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-10 13:44:27 -0400
commit81a9b5feffa241cea901c3633323bb446d61edf3 (patch)
tree27305271777ee0068075b06046c015bfbd17054f /doc/todo/l10n.mdwn
parent8c55424b11edbe1fd3e6ff1e20ec85c1f3c6e593 (diff)
parent98ed7cb1d7f99790821b99b3779d6685114fa662 (diff)
Merge branch 'master' into cvs
Diffstat (limited to 'doc/todo/l10n.mdwn')
-rw-r--r--doc/todo/l10n.mdwn18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/todo/l10n.mdwn b/doc/todo/l10n.mdwn
index fed3f63b6..a539f0424 100644
--- a/doc/todo/l10n.mdwn
+++ b/doc/todo/l10n.mdwn
@@ -14,6 +14,8 @@ and there is a po/ikiwiki.pot in the source that can be translated.
----
+## template i18n
+
From [[Recai]]:
> Here is my initial work on ikiwiki l10n infrastructure (I'm sending it
> before finalizing, there may be errors).
@@ -64,9 +66,19 @@ Birisi[1], ki muhtemelen bu sizsiniz, <TMPL_VAR WIKINAME>[2] üzerindeki
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.
+----
+
+Another way to approach this would be to write a small program that outputs
+the current set of templates. Now i18n of that program is trivial,
+and it can be run once per language to generate localized templates.
+
+Then it's just a matter of installing the templates somewhere, and having
+them be used when a different language is enabled.
+
+It would make sense to make the existing `locale` setting control which
+templates are used. But the [[plugins/po]] plugin would probably want to do
+something more, and use the actual language the page is written in.
+--[[Joey]]