Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorSouthpaw
    • CommentTimeJun 17th 2011
     
    Well, my translation is working properly, but in top of my page there is error like this which says that something is wrong.

    Notice: Undefined property: gettext_reader::$ORIGINALS in /home/aaapeehe/public_html/toimintojentalo/testi/plog-includes/lib/gettext/gettext.php on line 83
    Notice: Undefined property: gettext_reader::$TRANSLATIONS in /home/aaapeehe/public_html/toimintojentalo/testi/plog-includes/lib/gettext/gettext.php on line 94

    I don't get what's the problem so can anyone help? There is the code but I just dont get it since I havent touch it at all so the code is original.

    81 function load_tables($translations=false) {
    82 // if tables are loaded do not load them again
    83 if (!is_array($this->ORIGINALS)) {
    84 $this->ORIGINALS = array();
    85 $this->STREAM->seekto($this->originals);
    86 for ($i=0; $i<$this->total; $i++) {
    87 $len = $this->readint();
    88 $ofs = $this->readint();
    89 $this->ORIGINALS[] = array($len,$ofs);
    90 }
    91 }
    92
    93 // similar for translations
    94 if ($translations and !is_array($this->TRANSLATIONS)) {
    95 $this->TRANSLATIONS = array();
    96 $this->STREAM->seekto($this->translations);
    97 for ($i=0; $i<$this->total; $i++) {
    98 $len = $this->readint();
    99 $ofs = $this->readint();
    100 $this->TRANSLATIONS[] = array($len,$ofs);