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/User/Profile.php

    r837 r843  
    159159        T('Level:').' <strong>'.$XP['Level'].'</strong> '.T('experience:').' '.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'<br/>';
    160160      if($UserLine['TeamName'] != '')
    161         $Output .= T('Member of team:').' <a href="team/?action=team&amp;id='.$UserLine['Team'].'"><strong>'.$UserLine['TeamName'].'</strong></a><br />';
     161        $Output .= T('Member of team:').' <a href="'.$this->System->Link('/team/?action=team&amp;id='.$UserLine['Team']).'"><strong>'.$UserLine['TeamName'].'</strong></a><br />';
    162162
    163163      // User tags
     
    222222          'Prohlížeč: <strong>'.$UserLine['UserAgent'].'</strong><br />'.
    223223          'Email: <strong>'.$UserLine['Email'].'</strong><br />';
    224       $Output .= '<br/><form action="user.php" method="post"><div>'.
     224      $Output .= '<br/><form action="'.$this->System->Link('/user/').'" method="post"><div>'.
    225225        'Napsat E-mail:'.
    226226        '<input type="text" name="email" value="'.$UserLine['Email'].'" /><br/>'.
Note: See TracChangeset for help on using the changeset viewer.