Ignore:
Timestamp:
Jan 15, 2016, 10:24:05 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Now translation groups are also localized.
  • Modified: Translated team page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r845 r846  
    313313      $Output2 = '';
    314314      if((count($this->OnPageNotFound) == 2)
    315   and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1]))
     315        and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1]))
    316316        $Output2 = call_user_func_array($this->OnPageNotFound, array());
    317317     if($Output2 != '') $Output .= $this->BaseView->ShowPage($Output2);
     
    451451    {
    452452      $Output .= '<div id="menuitem-group'.$Group['Id'].'" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'.
    453           '<a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.str_replace(' ','&nbsp;',$Group['Name']).'</a></div>'.
    454           '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">';
    455       $Output .= '&nbsp;<a title="Zde můžete začít překládat" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user=0&amp;entry=&amp;text=').'">'.T('Untranslated').'</a><br />'.
    456           '&nbsp;<a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=2&amp;user=0&amp;entry=&amp;text=').'">'.T('Translated').'</a><br />';
     453        '<a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].
     454        '&amp;action=filter').'">'.str_replace(' ','&nbsp;', T($Group['Name'])).'</a></div>'.
     455        '<div id="group'.$Group['Id'].'" class="hidden-menu-item" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">';
     456      $Output .= '&nbsp;<a title="Zde můžete začít překládat" href="'.
     457        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user=0&amp;entry=&amp;text=').'">'.T('Untranslated').'</a><br />'.
     458        '&nbsp;<a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.
     459        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=2&amp;user=0&amp;entry=&amp;text=').'">'.T('Translated').'</a><br />';
    457460      if($this->System->User->Licence(LICENCE_USER))
    458461      {
    459         $Output .= '&nbsp;<a title="'.T('Unfinished translations').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=3').'">'.T('Unfinished').'</a><br />
    460         &nbsp;<a title="Všechny překlady, které jste přeložil" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user='.$this->System->User->Id).'&amp;entry=&amp;text=">'.T('Own').'</a><br />';
    461       }
    462       $Output .= '&nbsp;<a title="'.T('Compose special filter').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').'">'.T('Filter').'</a><br />';
     462        $Output .= '&nbsp;<a title="'.T('Unfinished translations').'" href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=3').'">'.T('Unfinished').'</a><br />'.
     463          '&nbsp;<a title="Všechny překlady, které jste přeložil" href="'.
     464          $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;state=1&amp;user='.
     465          $this->System->User->Id).'&amp;entry=&amp;text=">'.T('Own').'</a><br />';
     466      }
     467      $Output .= '&nbsp;<a title="'.T('Compose special filter').'" href="'.
     468        $this->System->Link('/TranslationList.php?group='.$Group['Id'].'&amp;action=filter').
     469        '">'.T('Filter').'</a><br />';
    463470      $Output .= '</div>';
    464471    }
Note: See TracChangeset for help on using the changeset viewer.