[horde] change default language doesn't work

Peter Arien peter.arien at cc.kuleuven.ac.be
Mon Jul 29 06:11:29 PDT 2002


Jan Schneider <jan at horde.org> wrote on 2002-07-16 10:55:21
 > Doh, I took a closer look at the history of the Lang:: class
 > and discovered that someone changed the method name from
 > setDomain to setTextdomain _after_ the 2.0 release. That
 > broke backward compatibility of course.
 >
 > Fixed in cvs.


When I try to update my default language to anything else in IMP I get:

Fatal error: Call to undefined function: setdomain() in 
/usr/local/cvs/horde/imp/prefs.php on line 243

or in Turba:

Fatal error: Call to undefined function: setdomain() in 
/usr/local/cvs/horde/turba/prefs.php on line 122

I do have the correct locales installed.

I see that on lines 243 (imp) and 123 (turba) there's a call to
Lang::setDomain() which is not defined in /horde/lib/Lang.php
but Lang::setTextdomain is defined there.

Versions:
imp/prefs.php:
* $Horde: imp/prefs.php,v 2.146.2.20 2002/07/16 10:53:09 jan Exp $
turba/prefs.php:
* $Horde: turba/prefs.php,v 1.8.2.8 2002/07/16 10:53:09 jan Exp $
horde/lib/Lang.php:
// $Horde: horde/lib/Lang.php,v 1.13.2.10 2002/06/19 14:58:44 jan Exp $

Horde RELENG_2, imp RELENG_3 and turba RELENG_1, all updated today.

Did I mix up the different releases?

Changing Lang::setDomain to Lang::setTextdomain solves the problem.

Greetings

-- 
Peter

  K.U.Leuven - LUDIT             -=- Tel: +32 16 322219
  peter.arien at cc.kuleuven.ac.be  -=- http://pa.cc.kuleuven.ac.be



More information about the horde mailing list