Changeset 848 for trunk/Modules/User


Ignore:
Timestamp:
Jan 17, 2016, 12:10:35 PM (9 years ago)
Author:
chronos
Message:
  • Renamed: .htaccess file is different for each installation so provide just example in .htacces.sample file.
  • Renamed: File global.php and system.php to first uppercase letter for naming unification.
  • Modified: More translatable strings.
  • Added: Translation group items translatable.
  • Renamed: admin directory is not Application directory where all application related files should be placed.

This is different to includes directory where just general libraries should be placed.
Version.php file should be located in Application directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/Options.php

    r816 r848  
    55  function UserOptionsFrom()
    66  {
    7     $Output = '<form action="Options.php?action=save" method="post">
    8     <fieldset><legend>Nastavení uživatele</legend>
     7    $Output = '<form action="'.$this->System->Link('/options/?action=save').'" method="post">
     8    <fieldset><legend>'.T('User settings').'</legend>
    99    <table>
    10     <tr><td>Email:</td><td><input type="text" name="Email" value="'.$this->System->User->Email.'" /></td></tr>
    11     <tr><td>Původní heslo:</td><td><input type="password" name="OldPass" /></td></tr>
    12     <tr><td>Nové heslo:</td><td><input type="password" name="NewPass" /></td></tr>
    13     <tr><td>Nové heslo pro potvrzení: </td><td><input type="password" name="NewPass2" /></td></tr>
    14     <tr><td>Normálně budu překládat do: </td><td>'.WriteLanguages($this->System->User->Language).'</td></tr>
    15     <tr><td>Po uložení překladu přesměrovat: </td><td>';
     10    <tr><td>'.T('E-mail').':</td><td><input type="text" name="Email" value="'.$this->System->User->Email.'" /></td></tr>
     11    <tr><td>'.T('Original password').':</td><td><input type="password" name="OldPass" /></td></tr>
     12    <tr><td>'.T('New password').':</td><td><input type="password" name="NewPass" /></td></tr>
     13    <tr><td>'.T('New password confirmation').': </td><td><input type="password" name="NewPass2" /></td></tr>
     14    <tr><td>'.T('I will translate normally to').': </td><td>'.WriteLanguages($this->System->User->Language).'</td></tr>
     15    <tr><td>'.T('After save translation redirect to').': </td><td>';
    1616    $Output .= '<select name="redirecting">'.
    17         '<option value="0">Nikam</option>'.
     17        '<option value="0">'.T('Nowhere').'</option>'.
    1818        '<option value="1"';
    1919    if($this->System->User->Redirecting == '1') $Output .= ' selected="selected"';
    20     $Output .= '>Na nepřeložené</option>';
     20    $Output .= '>'.T('To untranslated').'</option>';
    2121    $Output .= '<option value="2"';
    2222    if($this->System->User->Redirecting == '2') $Output .= ' selected="selected"';
    23     $Output .= '>Na další překlad</option>';
     23    $Output .= '>'.T('To next translation').'</option>';
    2424    $Output .= '<option value="3"';
    2525    if($this->System->User->Redirecting == '3') $Output .= ' selected="selected"';
    26     $Output .= '>Na předchozí překlad</option>';
     26    $Output .= '>'.T('To previous translation').'</option>';
    2727    $Output .= '</select>';
    2828
    2929    $Output .= '</td></tr>'.
    30         '<tr><td>Upřednostněná verze klienta: </td><td>'.ClientVersionSelection($this->System->User->PreferredVersion).'</td></tr>'.
    31         '<tr><td>Veřejný text profilu:</td><td>'.
    32         '<textarea name="info" cols="60" rows="10">'.$this->System->User->Info.'</textarea></td></tr>';
    33 
     30      '<tr><td>'.T('Preferred client version').': </td><td>'.ClientVersionSelection($this->System->User->PreferredVersion).'</td></tr>'.
     31      '<tr><td>'.T('Public profile text').':</td><td>'.
     32      '<textarea name="info" cols="60" rows="10">'.$this->System->User->Info.'</textarea></td></tr>';
    3433
    3534    $Output .= '<tr><td>';
    3635    $Query = 'SELECT * FROM UserTagType';
    3736    $DbResult = $this->Database->query($Query);
    38     $Output .= 'Překladatel se řídí zaškrtnutými pravidly:</td><td>';
     37    $Output .= T('User obey selected rules').':</td><td>';
    3938    while ($UserTag = $DbResult->fetch_array()) {
    4039     $Query = 'SELECT * FROM `UserTag` '.
     
    5049    $Output .= '</td></tr>';
    5150
    52     $Output .= '<tr><td colspan="2"><input type="submit" value="Uložit" /></td></tr>'.
     51    $Output .= '<tr><td colspan="2"><input type="submit" value="'.T('Save').'" /></td></tr>'.
    5352        '</table></fieldset>'.
    5453        '</form>';
    5554
    56     $Output .= '  <fieldset><legend>Překladatelský tým</legend>';
     55    $Output .= '  <fieldset><legend>'.T('Translation team').'</legend>';
    5756    $DbResult = $this->Database->query('SELECT `Id`, `Name` FROM `Team`');
    58     $Output .= '<a href="team/?action=create">Vytvořit tým</a><br />'.
    59         '<a href="team/?action=leave">Opustit tým</a><br />'.
     57    $Output .= '<a href="team/?action=create">'.T('Create team').'</a><br />'.
     58        '<a href="team/?action=leave">'.T('Leave team').'</a><br />'.
    6059        '<br /><form action="team/" method="get">'.
    6160        '<input type="hidden" name="action" value="gointeam"/>'.
     
    6766      $Output .= '>'.$LineTeam['Name'].'</option>';
    6867    }
    69     $Output .= '</select> <input type="submit" value="Vstoupit" />
     68    $Output .= '</select> <input type="submit" value="'.T('Enter').'" />
    7069    </form>';
    7170    $Output .= '</fieldset>';
Note: See TracChangeset for help on using the changeset viewer.