[horde] Install without gettext

Michael Cochrane mike at graftonhall.co.nz
Wed Jun 26 07:13:24 PDT 2002


Well here's a diff for the quick hack version. :-) you'll probably want to lock
the language preference so the (non-working) option to change the language is
not displayed.

- Mike :-)

Index: lib/Horde.php
===================================================================
RCS file: /httpd/horde/horde/lib/Horde.php,v
retrieving revision 1.163
diff -I$Horde -I$Revision -I$Date -r1.163 Horde.php
746c746,768
< ?>
---
> 
> /* Quick Hack to allow Horde to work without gettext installed */
> if (!extension_loaded('gettext')) {
>     function _($input) 
>     {
>         return gettext($input);
>     }
> 
>     function gettext($input)
>     {
>         return $input;
>     }
> 
>     function bindtextdomain($domain, $directory)
>     {
>         return "";
>     }
> 
>     function textdomain($text_domain)
>     {
>         return "";
>     }
> }



Quoting Michael Accardo <mike at mbi.ufl.edu>:

> A workaround would be wonderful. :)
> Could you provide me with a quick hack?
> 
> -----Original Message-----
> From: Chuck Hagenbuch [mailto:chuck at horde.org]
> Sent: Tuesday, June 25, 2002 7:35 PM
> To: horde at lists.horde.org
> Subject: Re: [horde] Install without gettext
> 
> 
> Quoting Jan Schneider <jan at horde.org>:
> 
> > You will need it for IMP because it won't work without.
> 
> We could provide a workaround for this, if we wanted too. I'm not entirely 
> convinced, but it might be good for some folks...
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck at horde.org>
> "After a few minutes the most aromatic and nice smelling Italian coffee 
>  will come out of the exhaustpipe." - Our stove-top espresso pot
> 
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
> 
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org




-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/




More information about the horde mailing list