Ignore:
Timestamp:
Jan 14, 2016, 10:25:47 PM (8 years ago)
Author:
chronos
Message:
  • Added: Support for translatable URLs. Now each language can have URL in its language.

This requires to all links inside web to use System->Link function which is responsible for translation.
All links need to be written in english so they can be translated to other language.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/ClientVersion/ClientVersion.php

    r838 r843  
    4444    {
    4545      $YesNo = array('Ne', 'Ano');
    46       $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion WHERE Id='.($_GET['id']*1));
     46      $DbResult = $this->System->Database->query('SELECT * FROM `ClientVersion` WHERE `Id`='.($_GET['id']*1));
    4747      if($DbResult->num_rows > 0)
    4848      {
     
    6161        $Output .= '<div><a href="?">'.T('All versions list').'</a></div>';
    6262        if($Version['Imported'])
    63           $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='.$Version['Version']).'">'.T('Progress').'</a></div>';
     63          $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='.
     64            $Version['Version']).'">'.T('Progress').'</a></div>';
    6465      } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL);
    6566    } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL);
Note: See TracChangeset for help on using the changeset viewer.