X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fl10n%2Fgettext.class.php;h=d42dc08c068b6517ee569e59f7946ebc08cf0dc7;hp=23429014e007f6fd3516423e7ee4edd3ba3fc51a;hb=16dd8736f68b753f06df30ff39892ef18579e2ce;hpb=47ccfad452e8d345542d09e59112cac317cffed8;ds=sidebyside diff --git a/class/l10n/gettext.class.php b/class/l10n/gettext.class.php index 23429014..d42dc08c 100644 --- a/class/l10n/gettext.class.php +++ b/class/l10n/gettext.class.php @@ -19,7 +19,7 @@ * along with PHP-gettext; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * @copyright © 2004-2006 The SquirrelMail Project Team + * @copyright 2004-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -229,7 +229,7 @@ class gettext_reader { else { $header = $this->get_translation_number(0); - if (eregi("plural-forms: (.*)\n",$header,$regs)) { + if (preg_match('/plural-forms: (.*)\n/i',$header,$regs)) { $expr = $regs[1]; } else { $expr = "nplurals=2; plural=n == 1 ? 0 : 1;"; @@ -288,4 +288,3 @@ class gettext_reader { } } } -?> \ No newline at end of file