Am Donnerstag, den 29.04.2010, 10:03 +0200 schrieb Peter Allgeyer:
> Am Mittwoch, den 28.04.2010, 15:05 +0200 schrieb Yuri D'Elia:
>
> > That is normal, since de_DE is available as a system locale
> > on your system. The 'real' gettext is used (and it doesn't work for
> > some reason - like a missing localegen invocation or something). That's
> > difficult to tell, since I would need the exact PHP and gettext
> > versions of your system.
> Is there a way to force not to use the 'real' gettext?
Ok, the problem lies anywhere here (gettext.inc):
/**
* Checks if the current locale is supported on this system.
*/
function _check_locale_and_function($function=false) {
global $EMULATEGETTEXT;
if ($function and !function_exists($function))
return false;
return !$EMULATEGETTEXT;
}
I can return false instead of !$EMULATEGETTEXT and anything works
correctly. So, you're right assuming that the 'real' gettext is used and
it doesn't work for some reason. Maybe we can find the reason, in the
meantime I change the return value to always being false.
Regards, P. Allgeyer
--
Peter Allgeyer Salzburg|Research Forschungsgesellschaft mbH
Dipl.-Inform. Univ. Jakob-Haringer-Strasse 5/III
phone +43.662.2288-264 5020 Salzburg | Austria
fax +43.662.2288-222 http://www.salzburgresearch.at