Changeset 603 for trunk/Modules


Ignore:
Timestamp:
Nov 26, 2013, 12:22:41 AM (11 years ago)
Author:
chronos
Message:
  • Added: Class Locale for handling interface translation. Texts are translated using global function T($Text). New config item Web-Locale added.
Location:
trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Modules/FrontPage/FrontPage.php

    r578 r603  
    138138        if(isset($_COOKIE['HideWelcome']) and ($_COOKIE['HideWelcome'] == 1))
    139139        {
    140                 $Action = '<a href="?Action=UnHideWelcome">Odkrýt úvod</a>';
     140                $Action = '<a href="?Action=UnHideWelcome">'.T('Show welcome').'</a>';
    141141                $HideWelcome = 'display: none';
    142142        } else
    143143        {
    144                 $Action = '<a href="?Action=HideWelcome">Skrýt úvod</a>';
     144                $Action = '<a href="?Action=HideWelcome">'.T('Hide welcome').'</a>';
    145145                $HideWelcome = '';
    146146        }
  • TabularUnified trunk/Modules/Team/Team.php

    r597 r603  
    106106                                $Output .= $this->ShowTeamList();
    107107                        } else $Output = ShowMessage('Nutno zadat id týmu.', MESSAGE_CRITICAL);
    108                 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL);
     108                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    109109                return($Output);
    110110        }
     
    133133                                } else $Output .= ShowMessage('Již existuje tým se stejným jménem', MESSAGE_CRITICAL);
    134134                        } else $Output .= ShowMessage('Chybí údaje formuláře', MESSAGE_CRITICAL);
    135                 } else $Output .= ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL);
     135                } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    136136                $Output .= $this->ShowTeamList();
    137137                return($Output);
     
    157157                                } else $Output = ShowMesage('Tým nenalezen.', MESSAGE_CRITICAL);
    158158                        } else $Output = ShowMessage('Nezadáno id týmu', MESSAGE_CRITICAL);
    159                 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL);
     159                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    160160                return($Output);
    161161        }
     
    183183                                } else $Output .= ShowMessage('Tým nenalezen nebo nemáte oprávnění.', MESSAGE_CRITICAL);
    184184                        } else $Output .= ShowMessage('Nezadáno id týmu nebo některé položky formuláře.', MESSAGE_CRITICAL);
    185                 } else $Output .= ShowMessage('Nemáte oprávnění.', MESSAGE_CRITICAL);
     185                } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    186186                $Output .= $this->ShowTeamList();
    187187                return($Output);
     
    199199                                        '<tr><td colspan="2"><input type="submit" value="Vytvořit a vstoupit" /></td></tr>'.
    200200                                        '</table></fieldset></form>';
    201                 } else $Output = ShowMessage('Nemáte oprávnění', MESSAGE_CRITICAL);
     201                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    202202                return($Output);
    203203        }
     
    311311       
    312312                        $Output .= $this->ShowTeamList();
    313                 } else $Output = ShowMessage('Nemáte oprávnění.', MESSAGE_CRITICAL);
     313                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    314314                return($Output);
    315315        }
Note: See TracChangeset for help on using the changeset viewer.