Ignore:
Timestamp:
Jan 17, 2016, 12:10:35 PM (8 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/Translation/Save.php

    r835 r848  
    77    $Output = '';
    88    $Table = $Group['TablePrefix'];
    9     $CompleteText = array('nedokončený', 'dokončený');
     9    $CompleteText = array(T('unfinished'), T('finished'));
    1010
    1111    // Get source text record from database by ID
     
    9393                $this->Database->query('UPDATE `'.$Table.'` SET '.$Values.' WHERE `ID` = '.$ExistedText['ID']);
    9494
    95                 $Output .= 'Změny v překladu <a href="'.$this->System->Link('/form.php?group='.
     95                $Output .= sprintf(T('Modifications in translation %s stored as %s'),
     96                  '<a href="'.$this->System->Link('/form.php?group='.
    9697                  $Group['Id'].'&amp;ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('.
    97                   $ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.<br />';
    98                 $this->System->ModuleManager->Modules['Log']->WriteLog('Změny v překladu <a href="'.
    99                   $this->System->Link('/form.php?group='.$Group['Id'].'&amp;ID='.$ExistedText['ID']).'">'.
    100                   $ExistedText['ID'].'</a> ('.$ExistedText['Entry'].') uloženy jako '.$CompleteText[$NewComplete].'.', LOG_TYPE_TRANSLATION);
     98                  $ExistedText['Entry'].')', $CompleteText[$NewComplete]).'<br/>';
     99                $this->System->ModuleManager->Modules['Log']->WriteLog(
     100                  sprintf(T('Modifications in translation %s stored as %s'),
     101                  '<a href="'.$this->System->Link('/form.php?group='.
     102                  $Group['Id'].'&amp;ID='.$ExistedText['ID']).'">'.$ExistedText['ID'].'</a> ('.
     103                  $ExistedText['Entry'].')', $CompleteText[$NewComplete]),
     104                  LOG_TYPE_TRANSLATION);
    101105              }
    102106            } else
     
    149153              $LastID = $this->Database->insert_id;
    150154
    151               $Output .= 'Text <a href="'.$this->System->Link('/form.php?group='.
    152                 $Group['Id'].'&amp;ID='.$LastID).'">'.$LastID.'</a> ze skupiny <a href="TranslationList.php?group='.
    153                 $Group['Id'].'&amp;user=0&amp;action=filter">'.$Group['Name'].'</a> uložen jako '.
    154                 $CompleteText[$NewComplete].'. Převzat z <a href="form.php?group='.$Group['Id'].'&amp;ID='.$TakeID.'">'.$TakeID.'</a>.<br/>';
    155               $this->System->ModuleManager->Modules['Log']->WriteLog('Text <a href="'.
    156                 $this->System->Link('/form.php?group='.$Group['Id'].'&amp;ID='.$LastID).'">'.
    157                 $LastID.'</a> ze skupiny <a href="TranslationList.php?group='.
    158                 $Group['Id'].'&amp;user=0&amp;text=&amp;entry=&amp;action=filter">'.
    159                 $Group['Name'].'</a> uložen jako '.$CompleteText[$NewComplete].
    160                 '. Převzat z <a href="form.php?group='.$Group['Id'].'&amp;ID='.$TakeID.'">'.$TakeID.'</a>.', LOG_TYPE_TRANSLATION);
     155              $Output .= sprintf(T('Text %s from group %s saved as %s. Handed over from %s.'),
     156                '<a href="'.$this->System->Link('/form.php?group='.
     157                $Group['Id'].'&amp;ID='.$LastID).'">'.$LastID.'</a>',
     158                '<a href="'.$this->System->Link('/TranslationList.php?group='.
     159                $Group['Id'].'&amp;user=0&amp;action=filter').'">'.$Group['Name'].'</a>',
     160                $CompleteText[$NewComplete], '<a href="'.$this->System->Link('/form.php?group='.$Group['Id'].'&amp;ID='.$TakeID).'">'.$TakeID.'</a>').
     161                '<br/>';
     162              $this->System->ModuleManager->Modules['Log']->WriteLog(sprintf(T('Text %s from group %s saved as %s. Handed over from %s.'),
     163                '<a href="'.$this->System->Link('/form.php?group='.
     164                $Group['Id'].'&amp;ID='.$LastID).'">'.$LastID.'</a>',
     165                '<a href="'.$this->System->Link('/TranslationList.php?group='.
     166                $Group['Id'].'&amp;user=0&amp;action=filter').'">'.$Group['Name'].'</a>',
     167                $CompleteText[$NewComplete], '<a href="'.$this->System->Link('/form.php?group='.$Group['Id'].'&amp;ID='.$TakeID).'">'.$TakeID.'</a>'),
     168                LOG_TYPE_TRANSLATION);
    161169            }
    162170          }
     
    214222        $Output .= '<table>'.
    215223          '<tr>'.
    216           '<td>Jméno: <input type="text" name="LoginUser" size="13" /></td>'.
     224          '<td>'.T('Name').': <input type="text" name="LoginUser" size="13" /></td>'.
    217225          '</tr><tr>'.
    218           '<td>Heslo: <input type="password" name="LoginPass" size="13" /></td>'.
     226          '<td>'.T('Password').': <input type="password" name="LoginPass" size="13" /></td>'.
    219227          '</tr><tr>'.
    220           '<th><input type="submit" value="Přihlásit a uložit překlad" /></th>'.
     228          '<th><input type="submit" value="'.T('Login and save translation').'" /></th>'.
    221229          '</tr>'.
    222230          '</table>';
     
    229237  {
    230238    // Address and redirecting
    231     $Output = '<br />Překládat: <a href="TranslationList.php?group='.$GroupId.'&amp;state=1&amp;user=0&entry=">Nepřeložené</a> ';
     239    $Output = '<br />'.T('Translate').': <a href="'.$this->System->Link('/TranslationList.php?group='.$GroupId.'&amp;state=1&amp;user=0&entry=').'">'.T('Not translated').'</a> ';
    232240
    233241    $prev = FollowingTran($TextID, $Table, $GroupId, True);
     
    258266    }
    259267
    260     $Output .= 'Z této stránky můžete být automaticky přesměrování. Nastavit kam chcete být přesměrování si můžete v <a href="'.
    261       $this->System->Link('/Options.php').'" title="Nastavení uživatele">Nastavení</a>';
     268    $Output .= sprintf(T('You can be redirected automatically from this page. You can set where you want to be transfered here: %s'), '<a href="'.
     269      $this->System->Link('/options/').'" title="'.T('User settings').'">'.T('Options').'</a>');
    262270    return($Output);
    263271  }
Note: See TracChangeset for help on using the changeset viewer.