Ignore:
Timestamp:
Nov 26, 2013, 10:45:01 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Some czech texts transformed to translated.
  • Modified: Improved locale processing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Locale.php

    r608 r609  
    2929        function Translate($Text)
    3030        {               
    31                 if(array_key_exists($Text, $this->Texts->Data))
     31                if(array_key_exists($Text, $this->Texts->Data) and ($this->Texts->Data[$Text] != ''))
    3232                  return($this->Texts->Data[$Text]);
    3333                  else return($Text);
     
    9696          '  function Load()'."\n".
    9797          '  {'."\n".
    98           '    $this->Code = \'cs\';'."\n".
     98          '    $this->Code = \''.$this->Texts->Code.'\';'."\n".
    9999                '    $this->Data = array('."\n";
    100100                foreach($this->Texts->Data as $Index => $Item)
Note: See TracChangeset for help on using the changeset viewer.