Changeset 603 for trunk/includes


Ignore:
Timestamp:
Nov 26, 2013, 12:22:41 AM (11 years ago)
Author:
chronos
Message:
  • Added: Class Locale for handling interface translation. Texts are translated using global function T($Text). New config item Web-Locale added.
Location:
trunk/includes
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Version.php

    r602 r603  
    66// and system will need database update.
    77
    8 $Revision = 602; // Subversion revision
     8$Revision = 603; // Subversion revision
    99$DatabaseRevision = 600; // Database structure revision
    1010$ReleaseTime = '2013-11-25';
  • trunk/includes/global.php

    r596 r603  
    1010include_once(dirname(__FILE__).'/Version.php');
    1111include_once(dirname(__FILE__).'/AppModule.php');
     12include_once(dirname(__FILE__).'/Locale.php');
     13$Locale = new Locale();
     14$Locale->Dir = dirname(__FILE__).'/../locale';
     15$Locale->Load($Config['Web']['Locale']);
    1216
    1317// Include application modules
  • trunk/includes/system.php

    r602 r603  
    253253                                        'Heslo: <td><input type="password" name="LoginPass" size="8" /> '.
    254254                                        '<input type="submit" value="Přihlásit" /></form> &nbsp; '.
    255                                         '<a href="'.$this->System->Link('/registrace.php').'">Registrace</a></span>';
     255                                        '<a href="'.$this->System->Link('/registrace.php').'">'.T('Registration').'</a></span>';
    256256                }
    257257                $Output .= '</div>';
     
    303303        function ShowMainMenu()
    304304        {
    305                 $Output = '<strong>Nabídka:</strong>'.
     305                $Output = '<strong>'.T('Menu').':</strong>'.
    306306                                '<div class="verticalmenu"><ul>';
    307307                foreach($this->System->Menu as $MenuItem)
Note: See TracChangeset for help on using the changeset viewer.