On Mon, Jan 15, 2001 at 01:47:23PM +0100, Arno Hollosi wrote:
> > I give up. There must be some gettext bug. I can't get the gettext in
> > php to recognize translations. I have compiled and installed the
> > latest version of PHP and built it with --gettext but that didn't hel=
p
> > either.
>=20
> I had similar problems once - I don't know how I got rid of them.
> But be sure to check, that you ran translate.sh which creates the neces=
sary=20
> *.mo file in LC_MESSAGES. gettext() uses that *.mo file and not the *.p=
o=20
> files. *.po files are only "source-files" for creating *.mo
Check! I have a phpwiki.mo in locale/sv/LC_MESSAGES after running
translate.sh. But this is not case, because then I would be able to
change language to german, spanish or dutch and that doesn't work
either.
> Also, make sure that all permissions are ok (including directories).
Could be. Although I can't find any fault in the permissions. The web
server should be able to read every file in phpwiki/. If I point my
browser to http://localhost/phpwiki/locale/sv/LC_MESSAGES/phpwiki.mo I
can download the file. Also note that if I run an old version of php,
the gettext function reads phpwiki.php in LC_MESSAGES/ instead and
that works great. The not so great thing is that the server where I
want my phpwiki only supports PHP4.
--=20
___\ Jon =C5slund
|