Ignore:
Timestamp:
Feb 10, 2014, 7:11:06 PM (10 years ago)
Author:
maron
Message:
  • Added: Translate same pages to English
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Forum/Forum.php

    r774 r790  
    3030    $this->System->RegisterMenuItem(array(
    3131      'Title' => T('Forum'),
    32       'Hint' => 'Forum na debatování ohledně překladu wow',
     32      'Hint' => T('Forum about translation wow'),
    3333      'Link' => $this->System->Link('/forum/'),
    3434      'Permission' => LICENCE_ANONYMOUS,
     
    7878                $DbResult = $this->System->Database->query('UPDATE `ForumText` SET `Text`="'.$_POST['text'].'" WHERE `User` = '.$this->System->User->Id.' AND `ID` = '.$_GET['Edit']);
    7979   
    80     $Output .= ShowMessage('Text upraven.');
     80    $Output .= ShowMessage(T('Text edited.'));
    8181
    8282       
     
    9393        $DbRow = $DbResult->fetch_assoc();
    9494                                $Output .= '<form action="?Edit='.$_GET['Edit'].'" method="post">'.
    95                                                 '<fieldset><legend>Editovat zprávu</legend>'.
     95                                                '<fieldset><legend>'.T('Edit message').'</legend>'.
    9696                                                'Uživatel: ';
    9797                                if($this->System->User->Licence(LICENCE_USER)) $Output .= '<b>'.$this->System->User->Name.'</b><br />';
    9898                                else $Output .= '<input type="text" name="user" /><br />';
    99                         $Output .= 'Text zprávy: (Můžete využít <a href="http://www.bbcode.org/reference.php">BB kód</a>)<br/>'.                         
     99                        $Output .= T('Message text').': ('.T('You can use').' <a href="http://www.bbcode.org/reference.php">'.T('BB code').'</a>)<br/>'.                         
    100100                        '<textarea onkeydown="ResizeTextArea(this)" rows="8" name="text" cols="80">'.$DbRow['Text'].'</textarea> <br/>'.
    101101                        '<input type="hidden" name="a" value="add2"/>'.
    102                           '<input type="submit" value="Odeslat" /><br /></fieldset>'.
     102                          '<input type="submit" value="'.T('Send').'" /><br /></fieldset>'.
    103103                          '</form>';
    104                   }     else $Output .= ShowMessage('Pro vkládaní zpráv musíte byt registrováni.', MESSAGE_CRITICAL);
    105     }   else $Output .= ShowMessage('Editovat můžete pouze své zprávy', MESSAGE_CRITICAL);
     104                  }     else $Output .= ShowMessage(T('You have to be registered for adding message.'), MESSAGE_CRITICAL);
     105    }   else $Output .= ShowMessage(T('You can edit only your own message.'), MESSAGE_CRITICAL);
    106106          return($Output);     
    107107        }
     
    207207                        '<input type="submit" value="Odeslat" /><br /></fieldset>'.
    208208                        '</form>';
    209                 }       else $Output .= ShowMessage('Pro vkládaní zpráv musíte byt registrováni.', MESSAGE_CRITICAL);
     209                }       else $Output .= ShowMessage(T('You have to be registered for adding message.'), MESSAGE_CRITICAL);
    210210          return($Output);     
    211211        }
     
    226226                        '<input type="submit" value="Odeslat" /><br /></fieldset>'.
    227227                        '</form>';
    228                 }       else $Output .= ShowMessage('Pro vkládaní zpráv musíte byt registrováni.', MESSAGE_CRITICAL);
     228                }       else $Output .= ShowMessage(T('You have to be registered for adding message.'), MESSAGE_CRITICAL);
    229229          return($Output);     
    230230        }
     
    251251                                        } else $DbRow['Text'] = '';
    252252                       
    253                                         if($DbRow['Text'] == $Text) $Output .= ShowMessage('Nelze vložit stejnou zprávu vícekrát za sebou.', MESSAGE_WARNING);
     253                                        if($DbRow['Text'] == $Text) $Output .= ShowMessage(T('You can\' add same message twice.'), MESSAGE_WARNING);
    254254                                        else
    255255                                        {
     
    267267                                                                ' VALUES ('.$this->System->User->Id.', "'.$this->System->User->Name.
    268268                                                                '", "'.$Text.'", NOW(), "'.$_SERVER['REMOTE_ADDR'].'")');
    269                                                 $Output .= ShowMessage('Vloženo.');
     269                                                $Output .= ShowMessage(T('Added.'));
    270270                                        }
    271271                                }
    272                         } else $Output .= ShowMessage('Nezadán text pro novou zprávu.', MESSAGE_CRITICAL);                             
     272                        } else $Output .= ShowMessage(T('You have to specified new message.'), MESSAGE_CRITICAL);                               
    273273                        $Output .= '<br/>';
    274                 } else $Output .= ShowMessage('Pro vkládaní zpráv musíte byt registrováni.', MESSAGE_CRITICAL);
     274                } else $Output .= ShowMessage(T('You have to be registered for adding message.'), MESSAGE_CRITICAL);
    275275                return($Output);
    276276        }       
Note: See TracChangeset for help on using the changeset viewer.