From: Jean-Philippe G. <jpg...@ou...> - 2003-02-20 21:39:04
|
Jean-Philippe Georget <jpg...@ou...> a =E9crit : > I trie to use PhpWiki on sourceforge.net with $LANG=3D"fr" but links, > pages and HomePage are in english. >=20 > I make these changes to index.php : >=20 > line 419 : >=20 [...] > if (!isset($LANG)) { $LANG =3D "fr"; } > =20 > and add these lines : >=20 > if (!defined('HOME_PAGE')) > define('HOME_PAGE', "Accueil"); > if (!defined('DEFAULT_LANGUAGE')) > define('DEFAULT_LANGUAGE', 'fr'); > =20 > To have french pages, I change=20 >=20 > if (!defined('WIKI_PGSRC')) define('WIKI_PGSRC', 'pgsrc'); >=20 > into >=20 > if (!defined('WIKI_PGSRC')) define('WIKI_PGSRC', 'locale/fr/pgs= rc'); >=20 >=20 >=20 > In lib/config.php, I comment : >=20 >=20 > if (!defined('HOME_PAGE')) > define('HOME_PAGE', _("HomePage")); > if (!defined('DEFAULT_LANGUAGE')) > define('DEFAULT_LANGUAGE', 'fr'); >=20 >=20 >=20 >=20 > Perhaps there is a more simple way to do this ? Yes : don't use configurator.php and modify index.php directly.=20 --=20 Jean-Philippe Georget jpg...@ou... - http://jpgeorget.ouvaton.org/ |