On Thu, 29 Apr 2010 10:21:11 +0200
Peter Allgeyer <[email protected]> wrote:
> > 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.
If real gettext doesn't work, there is an underlying issue with the
locale configuration of the system - I would recommend looking into it.
real gettext is of course preferred if available since its faster (by
my measure, the difference is larger than tenfold).