Re: Translation2 with MDB2 Container should probably be changed

From: Date: Sun, 27 Apr 2008 20:36:17 +0000
Subject: Re: Translation2 with MDB2 Container should probably be changed
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28840@lists.php.net to get a copy of this message
Hi Dmitri,
I am using Translation2 with MDB2 container to store the translation strings. It works fine, however I think that it's not a good idea to alter the table every time you want to add new language.
that's just an option, but you can have a different table for each language: http://pear.php.net/manual/en/package.internationalization.translation2.intro.php ====================================== $params = array(
    'strings_tables'  => array(
        'en' => 'i18n_en',
        'it' => 'i18n_it',
        'de' => 'i18n_de'
    ),
    // ...
); $tr =& Translation2::factory($driver, $dbinfo, $params); ====================================== HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 25 Mb, 150 Mb di spazio web e molto di piщ! Registrati gratis: http://www.quipo.it

« previous php.pear.general (#28840) next »