Plugin Directory

Changeset 1201736


Ignore:
Timestamp:
07/18/2015 06:24:31 PM (11 years ago)
Author:
ShippeR
Message:
  • Added option to change heading HTML tag.
  • Some files changed location to folder /includes/.
  • Better optimalization for translate.
  • Fixed some strings where gaps was missing between words.
Location:
encryption-contest
Files:
123 added
7 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • encryption-contest/trunk/encryption-contest.php

    r1195613 r1201736  
    66    License: GNU General Public License v2 or later
    77    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    8     Version: 1.0
     8    Version: 1.1
    99    */
    1010defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1111add_shortcode( 'encryption-contest', array('EncryptionContest', 'displayShortcode') );
    1212add_action( 'plugins_loaded', array('EncryptionContest', 'loadMultilangualDomain') );
    13 require_once ( 'ec-codes.php' );    // Class for translating right solution to code
    14 require_once ( 'ec-options.php' );  // Class for generating options page in admin site
    15 require_once ( 'ec-menu.php' );     // Class for generating page in main admin menu - place, where admin can create and manage tasks
     13require_once ( 'includes/ec-codes.php' );    // Class for translating right solution to code
     14require_once ( 'includes/ec-options.php' );  // Class for generating options page in admin site
     15require_once ( 'includes/ec-menu.php' );     // Class for generating page in main admin menu - place, where admin can create and manage tasks
    1616
    1717
     
    4343      $settings['emailAdress'] = get_option('admin_email');
    4444      $settings['pageLink'] = site_url( '/encryption-contest/' );
    45       $settings['rightSolutionPicture'] = plugin_dir_url( __FILE__  ) .'smile.png';
     45      $settings['rightSolutionPicture'] = plugin_dir_url( __FILE__  ) .'includes/smile.png';
     46      $settings['titleTag'] = '3';
    4647      $settings['capabilityList'] = 'activate_plugins';
    4748      $settings['highest_task'] = 1;
     
    9596      $headers = 'From: '.get_option( 'blogname' ).' - Encryption contest plugin <'.get_option( 'admin_email' ).'> "\r\n"';
    9697
    97       $body .= __('Dear user,<br>time for displaying task ', 'encrypt') .$ending_task_number. __(' has already ended. ', 'encrypt');
     98      $body .= __('Dear user,<br>time for displaying task', 'encrypt') .' '.$ending_task_number. __(' has already ended.', 'encrypt') .' ';
    9899      if ( $ending_task_number < $next_task_number )
    99           $body .= __('From this moment it is displaying task ', 'encrypt') .$next_task_number. __('. It will be displaying to midnight ', 'encrypt').$next_task_date;
     100          $body .= __('From this moment it is displaying task', 'encrypt') .' '.$next_task_number. __('. It will be displaying to midnight', 'encrypt'). ' ' .$next_task_date;
    100101      else
    101102          $body .= __('On website is not displaying any futher task from this moment. Task is not set or delay between tasks is longer than 1 day.', 'encrypt');
    102       $body .= '<br>'.__('Here are results of ended task ', 'encrypt').$ending_task_number.':';
     103      $body .= '<br>'.__('Here are results of ended task', 'encrypt'). ' ' .$ending_task_number.':';
    103104      $body .= '<br><b>'.__('Correct answer', 'encrypt').'</b>'.$correct_answer;
    104105      $body .= '<b>'.__('Wrong answer', 'encrypt').'</b>'.$wrong_answer;
    105       $body .= __('Correct answer was:', 'encrypt').' <b>'.$right_solution.'</b> <br>'.__('Answers can be accepted in ', 'encrypt').'<a href="'.$link.'"> '.__('administration interface', 'encrypt').'</a>.<br><br>';
    106       $body .= __('This email has been automaticaly generated by site ', 'encrypt') . get_bloginfo('siteurl');
     106      $body .= __('Correct answer was:', 'encrypt').' <b>'.$right_solution.'</b> <br>'.__('Answers can be accepted in', 'encrypt'). ' ' .'<a href="'.$link.'"> '.__('administration interface', 'encrypt').'</a>.<br><br>';
     107      $body .= __('This email has been automaticaly generated by site', 'encrypt'). ' ' . get_bloginfo('siteurl');
    107108      $body .= '<br>'.__('Have a nice day.', 'encrypt');       
    108109      add_filter('wp_mail_content_type', array('EncryptionContest', 'setEmailToHtml'));
     
    187188      $expiration = "$expiration[1]/$expiration[2]/$expiration[0]";     // MM-DD-YYYY
    188189     
    189       require_once ( 'countdown.php' );
     190      require_once ( 'includes/countdown.php' );
    190191      $content .= '<div id="odpocet" data-konec="'.$expiration.'" data-hlaska="" data-zbyva="';
    191192      $content .= __('Task will expirate in', 'encrypt');
     
    199200      $text = htmlspecialchars($text);
    200201      $text = mb_strtolower($text);
    201       $conversion_table = array ('ě'=>'e', 'š'=>'s', 'č'=>'c', 'ř'=>'r', 'ž'=>'z', 'ý'=>'y', 'á'=>'a', 'í'=>'i', 'é'=>'e',
    202                               'ú'=>'u', 'ů'=>'u', 'ó'=>'o', 'ť'=>'t', 'ď'=>'d', 'ň'=>'n', '. '=>'.', ','=>' ', '!'=>'', '?' => '', '-' => '', );
     202      $conversion_table = array ('ä'=>'a', 'ě'=>'e', 'š'=>'s', 'č'=>'c', 'ľ'=>'l', 'ĺ'=>'l', 'ř'=>'r', 'ž'=>'z', 'ý'=>'y', 'á'=>'a', 'í'=>'i', 'é'=>'e',
     203                              'ú'=>'u', 'ů'=>'u', 'ü'=>'u', 'ű'=>'u', 'ó'=>'o', 'ö'=>'o', 'ő'=>'o', 'ô'=>'o', 'ť'=>'t', 'ŕ'=>'r', 'ď'=>'d', 'ň'=>'n', '.
     204                              '=>'.', ','=>' ', '!'=>'', '?' => '', '-' => '', );
    203205      $text = strtr($text, $conversion_table);
    204206      return $text; 
     
    320322     
    321323      if ( $status == '' && $settings['published_task'] == $current_task )
    322           $content = '<textarea name="user_answer" id="user_answer" rows="4" placeholder="' . __('You can use all letters of english, commas and points.', 'encrypt') .'"></textarea>';         
     324          $content = '<textarea name="user_answer" id="user_answer" rows="4"></textarea>';         
    323325      elseif ($settings['published_task'] != $current_task)
    324326          $content = __('Time to do the task has expired. You can solve cypher only out of competition.', 'encrypt');     
     
    340342          $content .= '<p style="text-align: right"><input type="submit" class="button-primary" value="'. __('Submit', 'encrypt') .'" /></p>';
    341343      else
    342           $content .= '<p style="text-align: right">'. __('Try to solve it,', 'encrypt') .'<a href="'.site_url( '/wp-login.php/' ).'">'. __('login!', 'encrypt') .'</a></p>';
     344          $content .= '<p style="text-align: right">'. __('Try to solve it,', 'encrypt'). ' ' .'<a href="'.site_url( '/wp-login.php/' ).'">'. __('login!', 'encrypt') .'</a></p>';
    343345      return $content;
    344346  }
     
    375377      return $content;
    376378  }
     379 
     380  // Construct HTML tag for headers in frontend <h1></h1> - <h6></h6>
     381  public function titleTag() {
     382      $settings  = get_option('EcSettings');
     383      $number    = $settings['titleTag'];
     384      $tag_open  = '<h'.$number.'>';
     385      $tag_close = '</h'.$number.'>';
     386 
     387      return array( $tag_open, $tag_close );
     388  }
    377389
    378390  // Main function of plugin. Generate frontend
     
    384396      $classMenu = new EcMenu();
    385397      $classCodes = new EcCodes();     
    386       $current_task = $classEc->checkForCurrentTask();
     398      $current_task = $classEc->checkForCurrentTask();
     399      $title_tag = $classEc->titleTag();
    387400
    388401      if ( isset($_GET['task_preview']) ) {
    389402          $content .= '<p><b>';
    390           $content .= __('Preview of task number ', 'encrypt');
     403          $content .= __('Preview of task number', 'encrypt'). ' ';
    391404          $content .= $current_task.'</b></p>';
    392405      }   
     
    406419     
    407420         
    408           $content .= '<h6>' . __('Assignment', 'encrypt') . '</h6>';
     421          $content .= $title_tag[0] . __('Assignment', 'encrypt') . $title_tag[1];
    409422          $content .= $classEc->generateCode($current_task);
    410423          $content .= '<br><br>';
     
    414427     
    415428          $classEc->evaluateUserAnswer($current_task);
    416           $content .= '<h6><label for="user_answer">' . __('Decoded result', 'encrypt') . '</label></h6>';
     429          $content .= $title_tag[0] .'<label for="user_answer">' . __('Decoded result', 'encrypt') . '</label>'. $title_tag[1];
    417430          $content .= '<p>'. $classEc->showAnswerContent($current_task) .'</p>';
    418431     
    419432          $classEc->saveNotes();
    420           $content .= '<h6><label for="user_notes">' . __( 'Place for notes', 'encrypt') . '</label></h6>';
     433          $content .= $title_tag[0] .'<label for="user_notes">' . __( 'Place for notes', 'encrypt') . '</label>'. $title_tag[1];
    421434          $content .= '<textarea name="user_notes" id="user_notes" rows="3">'.get_user_meta( get_current_user_id(), 'ec_user_notes', true ).'</textarea>';
    422435     
     
    425438     
    426439          if ( $settings['showUsers'] ) {
    427               $content .= '<h6>' . __('Successfully resolved', 'encrypt') . '</h6>';
     440              $content .= $title_tag[0] . __('Successfully resolved', 'encrypt'). $title_tag[1];
    428441              $content .= $classEc->generateAvatars($current_task);
    429442          }
  • encryption-contest/trunk/languages/default.po

    r1195613 r1201736  
    22msgstr ""
    33"Project-Id-Version: encrypt\n"
    4 "POT-Creation-Date: 2015-07-02 19:48+0100\n"
    5 "PO-Revision-Date: 2015-07-02 19:48+0100\n"
     4"POT-Creation-Date: 2015-07-18 19:36+0100\n"
     5"PO-Revision-Date: 2015-07-18 19:37+0100\n"
    66"Last-Translator: Marek Vach <mvach@email.cz>\n"
    77"Language-Team: \n"
     
    8181
    8282#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:113
    83 msgid "The recommended start is in "
     83msgid "The recommended start is in"
    8484msgstr ""
    8585
     
    125125
    126126#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:175
    127 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:108
     127#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:127
    128128msgid "Save Changes"
    129129msgstr ""
     
    158158
    159159#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:322
    160 msgid "Tasks would continue one after another. "
     160msgid "Task would continue one after another."
    161161msgstr ""
    162162
     
    170170
    171171#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:334
    172 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:322
    173172msgid "You can use all letters of english, commas and points."
    174173msgstr ""
     
    252251msgstr ""
    253252
    254 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:69
     253#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
    255254msgid ""
    256255"Plugin is used by inserting shortcode <b>[encryption-contest]</b> anywhere "
    257256"on page. General settings are set right here. You can create tasks for all "
    258 "users "
    259 msgstr ""
    260 
    261 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:69
     257"users"
     258msgstr ""
     259
     260#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
    262261msgid "in main menu"
    263262msgstr ""
    264263
    265 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:76
     264#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:91
    266265msgid "Show list of preview tasks:"
    267266msgstr ""
    268267
    269 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:80
     268#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:95
    270269msgid "Show countdown:"
    271270msgstr ""
    272271
    273 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
     272#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:99
    274273msgid "Show successful users:"
    275274msgstr ""
    276275
    277 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:88
     276#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:103
    278277msgid "Send email with answers:"
    279278msgstr ""
    280279
    281 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:92
     280#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:107
    282281msgid "Email adress:"
    283282msgstr ""
    284283
    285 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:96
     284#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:111
    286285msgid "Link to page with shortcode:"
    287286msgstr ""
    288287
    289 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:100
     288#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:115
    290289msgid "Link to picture displayed after right answer:"
    291290msgstr ""
    292291
    293 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:104
     292#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:119
     293msgid "HTML tag title for shortcode:"
     294msgstr ""
     295
     296#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:123
    294297msgid "Minimum capability for creating tasks:"
    295298msgstr ""
     
    300303
    301304#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:97
    302 msgid "Dear user,<br>time for displaying task "
     305msgid "Dear user,<br>time for displaying task"
    303306msgstr ""
    304307
    305308#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:97
    306 msgid " has already ended. "
     309msgid " has already ended."
    307310msgstr ""
    308311
    309312#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:99
    310 msgid "From this moment it is displaying task "
     313msgid "From this moment it is displaying task"
    311314msgstr ""
    312315
    313316#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:99
    314 msgid ". It will be displaying to midnight "
     317msgid ". It will be displaying to midnight"
    315318msgstr ""
    316319
     
    322325
    323326#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:102
    324 msgid "Here are results of ended task "
     327msgid "Here are results of ended task"
    325328msgstr ""
    326329
     
    338341
    339342#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:105
    340 msgid "Answers can be accepted in "
     343msgid "Answers can be accepted in"
    341344msgstr ""
    342345
     
    346349
    347350#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:106
    348 msgid "This email has been automaticaly generated by site "
     351msgid "This email has been automaticaly generated by site"
    349352msgstr ""
    350353
     
    357360msgstr ""
    358361
    359 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:324
     362#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:325
    360363msgid ""
    361364"Time to do the task has expired. You can solve cypher only out of "
     
    363366msgstr ""
    364367
    365 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:327
     368#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:328
    366369msgid "Your answer is absolutely right. Good job!"
    367370msgstr ""
    368371
    369 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:330
     372#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:331
    370373msgid ""
    371374"In shelled cipher is a mistake! Just outside the game try to find where is "
     
    373376msgstr ""
    374377
    375 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:332
     378#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:333
    376379msgid "If your answer seems written properly, contact us via email."
    377380msgstr ""
    378381
    379 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:340
     382#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:341
    380383msgid "Submit"
    381384msgstr ""
    382385
    383 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:342
     386#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:343
    384387msgid "Try to solve it,"
    385388msgstr ""
    386389
    387 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:342
     390#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:343
    388391msgid "login!"
    389392msgstr ""
    390393
    391 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:390
    392 msgid "Preview of task number "
    393 msgstr ""
    394 
    395 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:398
     394#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:402
     395msgid "Preview of task number"
     396msgstr ""
     397
     398#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:410
    396399msgid ""
    397400"List of published tasks. You can browse previous tasks and get inspirate."
    398401msgstr ""
    399402
    400 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:408
     403#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:420
    401404msgid "Assignment"
    402405msgstr ""
    403406
    404 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:416
     407#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:428
    405408msgid "Decoded result"
    406409msgstr ""
    407410
    408 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:420
     411#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:432
    409412msgid "Place for notes"
    410413msgstr ""
    411414
    412 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:427
     415#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:439
    413416msgid "Successfully resolved"
    414417msgstr ""
    415418
    416 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:432
     419#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:444
    417420msgid "Sorry, currently there is no cyphre for answering."
    418421msgstr ""
  • encryption-contest/trunk/languages/encrypt-cs_CZ.po

    r1195613 r1201736  
    22msgstr ""
    33"Project-Id-Version: encrypt\n"
    4 "POT-Creation-Date: 2015-07-02 19:49+0100\n"
    5 "PO-Revision-Date: 2015-07-02 19:49+0100\n"
     4"POT-Creation-Date: 2015-07-18 19:37+0100\n"
     5"PO-Revision-Date: 2015-07-18 19:39+0100\n"
    66"Last-Translator: Marek Vach <mvach@email.cz>\n"
    77"Language-Team: \n"
     
    8282# Don't forget to do escape in the end of sentence
    8383#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:113
    84 msgid "The recommended start is in "
    85 msgstr "Doporučený začátek je "
     84msgid "The recommended start is in"
     85msgstr "Doporučený začátek je"
    8686
    8787#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:126
     
    126126
    127127#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:175
    128 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:108
     128#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:127
    129129msgid "Save Changes"
    130130msgstr "Uložit změny"
     
    159159
    160160#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:322
    161 msgid "Tasks would continue one after another. "
    162 msgstr "Úkoly by na sebe měly navazovat. "
     161msgid "Task would continue one after another."
     162msgstr "Úkoly by na sebe měly navazovat."
    163163
    164164#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:327
     
    171171
    172172#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-menu.php:334
    173 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:322
    174173msgid "You can use all letters of english, commas and points."
    175174msgstr "Používej plnohodnotnou češtinu, háčky a čárky."
     
    255254msgstr "Obnovit výchozí nastavení"
    256255
    257 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:69
     256#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
    258257msgid ""
    259258"Plugin is used by inserting shortcode <b>[encryption-contest]</b> anywhere "
    260259"on page. General settings are set right here. You can create tasks for all "
    261 "users "
     260"users"
    262261msgstr ""
    263262"Plugin se používá vložením shortcode <b>[encryption-contest]</b> kamkoliv na "
    264 "stránku. Nastavení pluginu je umístěno zde. Samotné úlohy můžeš vytvořit "
    265 
    266 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:69
     263"stránku. Nastavení pluginu je umístěno zde. Samotné úlohy můžeš vytvořit"
     264
     265#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
    267266msgid "in main menu"
    268267msgstr "v hlavním menu"
    269268
    270 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:76
     269#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:91
    271270msgid "Show list of preview tasks:"
    272271msgstr "Zobrazovat seznam předchozích úloh:"
    273272
    274 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:80
     273#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:95
    275274msgid "Show countdown:"
    276275msgstr "Zobrazovat odpočet:"
    277276
    278 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:84
     277#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:99
    279278msgid "Show successful users:"
    280279msgstr "Zobrazovat úspěšné řešitele:"
    281280
    282 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:88
     281#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:103
    283282msgid "Send email with answers:"
    284283msgstr "Posílat souhrné emaily:"
    285284
    286 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:92
     285#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:107
    287286msgid "Email adress:"
    288287msgstr "Emailová adresa:"
    289288
    290 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:96
     289#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:111
    291290msgid "Link to page with shortcode:"
    292291msgstr "Odkaz na stránku, kde se zobrazuje shortcode:"
    293292
    294 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:100
     293#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:115
    295294msgid "Link to picture displayed after right answer:"
    296295msgstr "Odkaz na obrázek zobrazující se po zadání správné odpovědi:"
    297296
    298 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:104
     297#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:119
     298msgid "HTML tag title for shortcode:"
     299msgstr "HTML tag pro nadpisy v shortcode:"
     300
     301#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/ec-options.php:123
    299302msgid "Minimum capability for creating tasks:"
    300303msgstr "Minimální oprávnění pro vytváření úloh:"
     
    305308
    306309#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:97
    307 msgid "Dear user,<br>time for displaying task "
    308 msgstr "Zdravím,<br>platnost úlohy číslo "
     310msgid "Dear user,<br>time for displaying task"
     311msgstr "Zdravím,<br>platnost úlohy číslo"
    309312
    310313#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:97
    311 msgid " has already ended. "
    312 msgstr " právě skončila. "
     314msgid " has already ended."
     315msgstr " právě skončila."
    313316
    314317#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:99
    315 msgid "From this moment it is displaying task "
    316 msgstr "V řadě nastoupila úloha "
     318msgid "From this moment it is displaying task"
     319msgstr "V řadě nastoupila úloha"
    317320
    318321#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:99
    319 msgid ". It will be displaying to midnight "
    320 msgstr ", která se bude zobrazovat do půlnoci "
     322msgid ". It will be displaying to midnight"
     323msgstr ", která se bude zobrazovat do půlnoci"
    321324
    322325#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:101
     
    329332
    330333#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:102
    331 msgid "Here are results of ended task "
    332 msgstr "Dále posílám výsledky výsledky skončeného úkolu "
     334msgid "Here are results of ended task"
     335msgstr "Dále posílám výsledky výsledky skončeného úkolu"
    333336
    334337#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:103
     
    345348
    346349#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:105
    347 msgid "Answers can be accepted in "
    348 msgstr "Odpovědi můžete schválit v "
     350msgid "Answers can be accepted in"
     351msgstr "Odpovědi můžete schválit v"
    349352
    350353#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:105
     
    353356
    354357#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:106
    355 msgid "This email has been automaticaly generated by site "
    356 msgstr "Email byl automaticky generován stránkou "
     358msgid "This email has been automaticaly generated by site"
     359msgstr "Email byl automaticky generován stránkou"
    357360
    358361#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:107
     
    364367msgstr "Tato šifra skončí za"
    365368
    366 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:324
     369#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:325
    367370msgid ""
    368371"Time to do the task has expired. You can solve cypher only out of "
     
    371374"Čas na vyluštění šifry vypršel. Šifru si můžeš vyluštit už jen mimo soutěž."
    372375
    373 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:327
     376#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:328
    374377msgid "Your answer is absolutely right. Good job!"
    375378msgstr "Šifru máš vyluštěnou zcela správně. Dobrá práce!"
    376379
    377 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:330
     380#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:331
    378381msgid ""
    379382"In shelled cipher is a mistake! Just outside the game try to find where is "
     
    383386"<br>Tvoje zadaná odpověď: "
    384387
    385 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:332
     388#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:333
    386389msgid "If your answer seems written properly, contact us via email."
    387390msgstr "Pokud se ti odpověď zdá napsaná správně, kontaktuj nás emailem."
    388391
    389 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:340
     392#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:341
    390393msgid "Submit"
    391394msgstr "Odeslat"
    392395
    393 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:342
     396#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:343
    394397msgid "Try to solve it,"
    395398msgstr "Zkus to vyluštit,"
    396399
    397 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:342
     400#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:343
    398401msgid "login!"
    399402msgstr "přihlaš se!"
    400403
    401 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:390
    402 msgid "Preview of task number "
    403 msgstr "Náhled úlohy číslo "
    404 
    405 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:398
     404#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:402
     405msgid "Preview of task number"
     406msgstr "Náhled úlohy číslo"
     407
     408#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:410
    406409msgid ""
    407410"List of published tasks. You can browse previous tasks and get inspirate."
    408411msgstr "Vyber šifru, o kterou se zajímáš:"
    409412
    410 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:408
     413#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:420
    411414msgid "Assignment"
    412415msgstr "Zadání šifry"
    413416
    414 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:416
     417#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:428
    415418msgid "Decoded result"
    416419msgstr "Vyluštěný výsledek"
    417420
    418 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:420
     421#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:432
    419422msgid "Place for notes"
    420423msgstr "Místo na poznámky"
    421424
    422 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:427
     425#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:439
    423426msgid "Successfully resolved"
    424427msgstr "Správně vyluštili"
    425428
    426 #: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:432
     429#: C:\xampp\htdocs\wordpress\wp-content\plugins\encryption-contest/encryption-contest.php:444
    427430msgid "Sorry, currently there is no cyphre for answering."
    428431msgstr "Momentálně není zadaná úloha, která by se dala luštit."
  • encryption-contest/trunk/readme.txt

    r1195805 r1201736  
    77Requires at least: 3.0.1
    88Tested up to: 4.2.2
    9 Stable tag: 1.0
     9Stable tag: 1.1
    1010
    1111
     
    24241. Go to admin menu on page Encryption contest and hit create new task.
    25251. Fill expirate date (from - to) with right solution, what user should answer.
    26 1. Choose code from checkbox and save it. So easy.
     261. Choose code from checkbox and save it.
    2727
    2828= Interface =
     
    1031033. Right answer - you can insert your own image
    1041044. Wrong answer - user can compare his answer with asignment himself
    105 5. Options page - generally plugin settings
    106 6. Admin menu page for creating tasks
     1055. Admin menu page for creating tasks
     1066. Options page - generally plugin settings
    1071077. Email results of ended task.
    108108
    109109== Changelog ==
     110= 1.1 =
     111* Added option to change heading HTML tag.
     112* Some files changed location to folder /includes/.
     113* Better optimalization for translate.
     114* Fixed some strings where gaps was missing between words.
     115
    110116= 1.0 =
    111117* Added translate folder, marked strings for translate, added czech language.
    112118
    113119== Upgrade Notice ==
     120= 1.1 =
     121* Recommended update. Added support for changing header tag (<h1>, <h2>...) in frontend.
     122* Better translate optimalization.
     123
    114124= 1.0 =
    115125* Added translate support.
Note: See TracChangeset for help on using the changeset viewer.