[chora] Horde w/o Gettext, WAS: Workarounds for non-local cvsroot?

Jon Parise jon at horde.org
Wed May 28 21:21:14 PDT 2003


On Wed, May 28, 2003 at 03:38:34PM -0500, Ryan Gallagher wrote:

> > > Aside: If you want to know how to set horde up without gettext (provided
> > you
> > > can
> > > live with just the index language), i've done that.  And it only required
> > > about
> > > 15 lines of rather silly new code. ;-)
> > 
> > I've only had one request for this ever, so it doesn't seem to be a common
> > request.  But I wouldn't mind seeing your solution anyway.
> 
> My solution, if you can call it that, is quite obsurd.  I simply defined my own
> equivs for the various gettext functions in global space.  They may not all be
> listed below as I have not done extensive testing yet.  But tossing this bit
> into the top of the /horde/config/registry.php file got me off the ground and
> running.  test.php appears to be the only script that "truely" checks for the
> existence of the gettext module, lucky for me. =)
> 
> at first i had it in /horde/config/horde.php but for some reason that doesn't
> seem to load on "every" page request.  Just tried registry.php and got lucky.
 
That's a reasonable solution.  I've used something similar to it in
the past.  You can use PHP's auto_prepend_file INI option to ensure
that it is always included before any of the Horde source files.

-- 
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)


More information about the chora mailing list