From: <sbe...@mo...> - 2000-06-29 16:06:09
|
> > I wish I could help, and I was thinking in translating the original > > pages in french, or at least the more important one. Would you be > > interested ? > > Absolutely. If you want to translate all the pages in pgsrc/ to > French, I would definitely include it in the distribution, with full > credit to you. > Ok, I will. Just to show how well written is phpwiki, I did some modifications on it you can see on http://www.grinibiz.com/phpwiki/ This is a prototype site still. It took me a very small on hour. I did include in the first line of index.php3 an include of a procedures files: <include "procedures.php3">; In this file, I have functions, like this one: <? // procedures.php3 // this is a personal file. I can have n functions in it. include("../parametres.php3"); include("../templates/proceduresmenu.php"); function function1() { // friendly links $strReturn = ""; include("../friendly/string_friendly.php"); return $strReturn ; } function function2() { // menu Haut global $Appel_News, $Appel_Reports; return RetourneMenu('','fr',2,'../'.$Appel_News, '../'.$Appel_Reports); } ?> In your wiki_stdlib.php3, function generatePage: I include these lines: $page = str_replace("#$FieldSeparator#RESULT1#$FieldSeparator#", function1(), $page); $page = str_replace("#$FieldSeparator#RESULT2#$FieldSeparator#", function2(), $page); as many I need, and in the templates: ###RESULT1###, ###RESULT2###, ###RESULTn### It is not very elegant, I am sure there is better way to do it ... And it is going to allow me to organize themes and languages on the left side nav. I dont like the way TheLinks LooksLike, I am going to look and see if there is not something else to do ! Of course if I continue, I will credit the phpwiki team (and the others). ------------------------ Sébastien BERNARD, sbe...@mo..., http://www.mouzaia.com/ |