Jump to content

arturoms

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

arturoms's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I am not very good at PHP and am trying to install a script but I have this problem that I just can't figure out... Code snippet: <?php // UTF-8 helper functions require(dirname(__FILE__) .'/includes/utf8.php'); include('Mail.php'); // Translation require(dirname(__FILE__) .'/includes/php-gettext/streams.php'); require(dirname(__FILE__) .'/includes/php-gettext/gettext.php'); $input = new FileReader(dirname(__FILE__) .'/locales/'. $locale .'.mo'); $l10n = new gettext_reader($input); // Standard wrappers for xgettext function T_($text) { global $l10n; return $l10n->translate($text); } function T_ngettext($single, $plural, $number) { global $l10n; return $l10n->ngettext($single, $plural, $number); } PHP throws 'Fatal error: Call to a member function on a non-object .. functions.inc.php on line 16' at me whenever I request this page. Code at line 16: return $l10n->translate($text); What am I doing wrong? Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.