MultiLingualWiki
<< | Cookbook-V1 | >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
(:redirect Development.MultiLingualWiki:)
Contents
MultiLingualWiki
I thought about this feature the past days and this is what I would suggest.
Marking the language
The language could be stored in the address before the group:
De/Main/HomePage for german language En/Main/HomePage for english language ...
Syntax
I've considered two solutions and I am not sure which one is better.
Storing the language seperated in different files
This would be better for overview and it would be easier to find out what languages are supported.
Declaring a syntax to mark paragraphs as one language
Having a syntax for the language declaration would make it easier to synchronize the languages and to definig the default language which is displayed if no translation is present. Also there would be no additional file needed. Currently this is my favourite model..
Solution
It is no problem to extract the language information from the pathinfo. It is more difficult for me to rewrite the linking process to keep the languageinformation between the pages.
The syntax is not so easy to apply also. I would like to have a syntax which would mark the following lines as one language until another one begins. But it would have to be executed before anything else is processed.
-zet pmwiki-2.4.5 -- Last modified by {{}}?