Closed GoogleCodeExporter closed 9 years ago
php-gettext is a separate library. I'm not entirely clear what you mean. PHP
has a gettext module which is required to use translations. I don't know the
details of installing that and it's left to the server admin. php-gettext is a
library written in PHP which I can't bundle or depend on due to licensing
conflicts (it's GPL'd).
Thanks for your feedback. I've updated the INSTALL file to contain better
information on getting translations working.
Did you finally manage to get them working?
Original comment by sproctor@gmail.com
on 6 Apr 2011 at 4:55
Yes, I get them working :)
My point is there is (was ;)) no hint, that php-gettext is needed. Maybe other
distros installs this by default while installing php, at least on openSuSE its
a seperate package.
So i would recommend to change the INSTALL file to something like this:
.
.
.
---------------
4 Translations
---------------
Getting translations working is not automatic yet.
1) You will need to make sure that you have the locale for the desired language
installed. This is very much system dependent. On Debian run
'dpkg-reconfigure locales' as root and select the desired locale.
2) On some systems, you'll need to install gettext support for php, since its
not
included in default php installations. The corresponding package is often called
"php-gettext" or similar.
3) You will need to generate the messages.mo files for each language. In the
LC_MESSAGES directory for each language you will need to run the command
'msgfmt -o messages.mo messages.po' or point your webbrowser to
/install/translate.php
to translate all available languages.
.
.
.
Original comment by terw...@googlemail.com
on 7 Apr 2011 at 5:15
* brainstorming:
maybe let translate.php ask the user which languages to enable, instead of
simply compile all languages...
Original comment by terw...@googlemail.com
on 7 Apr 2011 at 5:21
I think better would be to enable/disable languages in config.
Sorry about the confusion with php-gettext. I didn't realize that's what the
package was called. It's a really unfortunate name, since there's a PHP script
by the same name. I'm not really clear on what the rules for using GPL code is.
I would like to bundle that script with mine and use that instead. It solves 2
problems: systems that can't control which modules and locales are installed,
and multiple users accessing the calendar with different languages at the same
time. I'm not going to try to explain how stupid gettext is in PHP, but it's
bad.
Anyway, I've updated the INSTALL doc, and I'll be releasing a new version soon.
http://code.google.com/p/php-calendar/source/browse/trunk/php-calendar/docs/INST
ALL
Original comment by sproctor@gmail.com
on 7 Apr 2011 at 7:27
Original issue reported on code.google.com by
terw...@googlemail.com
on 6 Mar 2011 at 3:39