diff --git a/admin/logs.php b/admin/logs.php index ca60653..8feb6bb 100644 --- a/admin/logs.php +++ b/admin/logs.php @@ -26,6 +26,6 @@ $content = ob_get_clean(); $smarty->assign('title', _('Administration')); $smarty->assign('logs', $content); -$smarty->assign('title', __('Admin\\Logs')); +$smarty->assign('title', __('Admin', 'Logs')); $smarty->display('admin/logs.tpl'); \ No newline at end of file diff --git a/admin/migration.php b/admin/migration.php index 4d3f042..1551e9d 100644 --- a/admin/migration.php +++ b/admin/migration.php @@ -102,6 +102,6 @@ $smarty->assign('countSkipped', $countSkipped); $smarty->assign('countTotal', $countTotal); $smarty->assign('time', $total_time = round((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT']), 4)); -$smarty->assign('title', __('Admin\\Migration')); +$smarty->assign('title', __('Admin', 'Migration')); $smarty->display('admin/migration.tpl'); diff --git a/admin/polls.php b/admin/polls.php index e9fbeef..3759347 100644 --- a/admin/polls.php +++ b/admin/polls.php @@ -95,6 +95,6 @@ $smarty->assign('crsf', $securityService->getToken('admin')); $smarty->assign('search', $search); $smarty->assign('search_query', buildSearchQuery($search)); -$smarty->assign('title', __('Admin\\Polls')); +$smarty->assign('title', __('Admin', 'Polls')); $smarty->display('admin/polls.tpl'); diff --git a/admin/purge.php b/admin/purge.php index a799256..0ef29b9 100644 --- a/admin/purge.php +++ b/admin/purge.php @@ -53,6 +53,6 @@ if ($action === 'purge' && $securityService->checkCsrf('admin', $_POST['csrf'])) $smarty->assign('message', $message); $smarty->assign('crsf', $securityService->getToken('admin')); -$smarty->assign('title', __('Admin\\Purge')); +$smarty->assign('title', __('Admin', 'Purge')); $smarty->display('admin/purge.tpl'); \ No newline at end of file diff --git a/adminstuds.php b/adminstuds.php index 0ce2961..38c92bf 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -52,7 +52,7 @@ if (!empty($_GET['poll']) && strlen($_GET['poll']) === 24) { } if (!$poll) { - $smarty->assign('error', __('Error\\This poll doesn\'t exist !')); + $smarty->assign('error', __('Error', 'This poll doesn\'t exist !')); $smarty->display('error.tpl'); exit; } @@ -120,9 +120,9 @@ if (isset($_POST['update_poll_info'])) { // Update poll in database if ($updated && $adminPollService->updatePoll($poll)) { - $message = new Message('success', __('adminstuds\\Poll saved')); + $message = new Message('success', __('adminstuds', 'Poll saved')); } else { - $message = new Message('danger', __('Error\\Failed to save poll')); + $message = new Message('danger', __('Error', 'Failed to save poll')); $poll = $pollService->findById($poll_id); } } @@ -145,19 +145,19 @@ if (!empty($_POST['save'])) { // Save edition of an old vote $choices = $inputService->filterArray($_POST['choices'], FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => CHOICE_REGEX]]); if (empty($editedVote)) { - $message = new Message('danger', __('Error\\Something is going wrong...')); + $message = new Message('danger', __('Error', 'Something is going wrong...')); } if (count($choices) != count($_POST['choices'])) { - $message = new Message('danger', __('Error\\There is a problem with your choices')); + $message = new Message('danger', __('Error', 'There is a problem with your choices')); } if ($message == null) { // Update vote $result = $pollService->updateVote($poll_id, $editedVote, $name, $choices); if ($result) { - $message = new Message('success', __('adminstuds\\Vote updated')); + $message = new Message('success', __('adminstuds', 'Vote updated')); } else { - $message = new Message('danger', __('Error\\Update vote failed')); + $message = new Message('danger', __('Error', 'Update vote failed')); } } } elseif (isset($_POST['save'])) { // Add a new vote @@ -165,19 +165,19 @@ if (!empty($_POST['save'])) { // Save edition of an old vote $choices = $inputService->filterArray($_POST['choices'], FILTER_VALIDATE_REGEXP, ['options' => ['regexp' => CHOICE_REGEX]]); if (empty($name)) { - $message = new Message('danger', __('Error\\The name is invalid')); + $message = new Message('danger', __('Error', 'The name is invalid')); } if (count($choices) != count($_POST['choices'])) { - $message = new Message('danger', __('Error\\There is a problem with your choices')); + $message = new Message('danger', __('Error', 'There is a problem with your choices')); } if ($message == null) { // Add vote $result = $pollService->addVote($poll_id, $name, $choices); if ($result) { - $message = new Message('success', __('adminstuds\\Vote added')); + $message = new Message('success', __('adminstuds', 'Vote added')); } else { - $message = new Message('danger', __('Error\\Adding vote failed')); + $message = new Message('danger', __('Error', 'Adding vote failed')); } } } @@ -189,9 +189,9 @@ if (!empty($_POST['save'])) { // Save edition of an old vote if (!empty($_POST['delete_vote'])) { $vote_id = filter_input(INPUT_POST, 'delete_vote', FILTER_VALIDATE_INT); if ($adminPollService->deleteVote($poll_id, $vote_id)) { - $message = new Message('success', __('adminstuds\\Vote deleted')); + $message = new Message('success', __('adminstuds', 'Vote deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete the vote')); + $message = new Message('danger', __('Error', 'Failed to delete the vote')); } } @@ -202,15 +202,15 @@ if (!empty($_POST['delete_vote'])) { if (isset($_POST['remove_all_votes'])) { $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); - $smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); + $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->display('confirm/delete_votes.tpl'); exit; } if (isset($_POST['confirm_remove_all_votes'])) { if ($adminPollService->cleanVotes($poll_id)) { - $message = new Message('success', __('adminstuds\\All votes deleted')); + $message = new Message('success', __('adminstuds', 'All votes deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete all votes')); + $message = new Message('danger', __('Error', 'Failed to delete all votes')); } } @@ -223,16 +223,16 @@ if (isset($_POST['add_comment'])) { $comment = strip_tags($_POST['comment']); if (empty($name)) { - $message = new Message('danger', __('Error\\The name is invalid')); + $message = new Message('danger', __('Error', 'The name is invalid')); } if ($message == null) { // Add comment $result = $pollService->addComment($poll_id, $name, $comment); if ($result) { - $message = new Message('success', __('Comments\\Comment added')); + $message = new Message('success', __('Comments', 'Comment added')); } else { - $message = new Message('danger', __('Error\\Comment failed')); + $message = new Message('danger', __('Error', 'Comment failed')); } } @@ -246,9 +246,9 @@ if (!empty($_POST['delete_comment'])) { $comment_id = filter_input(INPUT_POST, 'delete_comment', FILTER_VALIDATE_INT); if ($adminPollService->deleteComment($poll_id, $comment_id)) { - $message = new Message('success', __('adminstuds\\Comment deleted')); + $message = new Message('success', __('adminstuds', 'Comment deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete the comment')); + $message = new Message('danger', __('Error', 'Failed to delete the comment')); } } @@ -259,15 +259,15 @@ if (!empty($_POST['delete_comment'])) { if (isset($_POST['remove_all_comments'])) { $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); - $smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); + $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->display('confirm/delete_comments.tpl'); exit; } if (isset($_POST['confirm_remove_all_comments'])) { if ($adminPollService->cleanComments($poll_id)) { - $message = new Message('success', __('All comments deleted')); + $message = new Message('success', __('adminstuds', 'All comments deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete all comments')); + $message = new Message('danger', __('Error', 'Failed to delete all comments')); } } @@ -278,19 +278,19 @@ if (isset($_POST['confirm_remove_all_comments'])) { if (isset($_POST['delete_poll'])) { $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); - $smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); + $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->display('confirm/delete_poll.tpl'); exit; } if (isset($_POST['confirm_delete_poll'])) { if ($adminPollService->deleteEntirePoll($poll_id)) { - $message = new Message('success', __('Generic\\Poll fully deleted')); + $message = new Message('success', __('adminstuds', 'Poll fully deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete the poll')); + $message = new Message('danger', __('Error', 'Failed to delete the poll')); } $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); - $smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); + $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->assign('message', $message); $smarty->display('poll_deleted.tpl'); exit; @@ -316,9 +316,9 @@ if (!empty($_POST['delete_column'])) { } if ($result) { - $message = new Message('success', __('Column deleted')); + $message = new Message('success', __('adminstuds', 'Column deleted')); } else { - $message = new Message('danger', __('Error\\Failed to delete the column')); + $message = new Message('danger', __('Error', 'Failed to delete the column')); } } @@ -330,7 +330,7 @@ if (isset($_POST['add_slot'])) { $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); $smarty->assign('format', $poll->format); - $smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); + $smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->display('add_slot.tpl'); exit; } @@ -347,9 +347,9 @@ if (isset($_POST['confirm_add_slot'])) { } if ($result) { - $message = new Message('success', __('adminstuds\\Choice added')); + $message = new Message('success', __('adminstuds', 'Choice added')); } else { - $message = new Message('danger', __('Error\\Failed to add the column')); + $message = new Message('danger', __('Error', 'Failed to add the column')); } } @@ -363,7 +363,7 @@ $comments = $pollService->allCommentsByPollId($poll_id); $smarty->assign('poll_id', $poll_id); $smarty->assign('admin_poll_id', $admin_poll_id); $smarty->assign('poll', $poll); -$smarty->assign('title', __('Generic\\Poll') . ' - ' . $poll->title); +$smarty->assign('title', __('Generic', 'Poll') . ' - ' . $poll->title); $smarty->assign('expired', strtotime($poll->end_date) < time()); $smarty->assign('deletion_date', $poll->end_date + PURGE_DELAY * 86400); $smarty->assign('slots', $poll->format === 'D' ? $pollService->splitSlots($slots) : $slots); diff --git a/app/inc/i18n.php b/app/inc/i18n.php index 0ba5ad5..bd4a332 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -39,11 +39,11 @@ if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang' $html_lang = substr($locale, 0, 2); /* Date Format */ -$date_format['txt_full'] = __('Date\\FULL'); //summary in create_date_poll.php and removal date in choix_(date|autre).php -$date_format['txt_short'] = __('Date\\SHORT'); // radio title -$date_format['txt_day'] = __('Date\\DAY'); -$date_format['txt_date'] = __('Date\\DATE'); -$date_format['txt_month_year'] = __('Date\\MONTH_YEAR'); +$date_format['txt_full'] = __('Date', 'FULL'); //summary in create_date_poll.php and removal date in choix_(date|autre).php +$date_format['txt_short'] = __('Date', 'SHORT'); // radio title +$date_format['txt_day'] = __('Date', 'DAY'); +$date_format['txt_date'] = __('Date', 'DATE'); +$date_format['txt_month_year'] = __('Date', 'MONTH_YEAR'); if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { //%e can't be used on Windows platform, use %#d instead foreach ($date_format as $k => $v) { $date_format[$k] = preg_replace('#(? 1){ echo '
- + - +
'; } echo ' -

' . $img . '

+

' . $img . '

'. $titre .'

@@ -48,7 +48,7 @@ function bandeau_titre($titre) $tables = $connect->allTables(); $diff = array_diff([Utils::table('comment'), Utils::table('poll'), Utils::table('slot'), Utils::table('vote')], $tables); if (0 != count($diff)) { - echo '
'. __('Error\\Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') .'
'; + echo '
'. __('Error', 'Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') .'
'; bandeau_pied(); die(); } diff --git a/create_classic_poll.php b/create_classic_poll.php index 0089adb..f35c1fc 100644 --- a/create_classic_poll.php +++ b/create_classic_poll.php @@ -125,8 +125,8 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( } // Step 3/4 : Confirm poll creation and choose a removal date else if (isset($_POST['fin_sondage_autre'])) { - Utils::print_header(__('Step 3\\Removal date and confirmation (3 on 3)')); - bandeau_titre(__('Step 3\\Removal date and confirmation (3 on 3)')); + Utils::print_header(__('Step 3', 'Removal date and confirmation (3 on 3)')); + bandeau_titre(__('Step 3', 'Removal date and confirmation (3 on 3)')); // Store choices in $_SESSION @@ -153,17 +153,17 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( preg_match_all('/\[(.*?)\]\((.*?)\)/', $choice->getName(), $md_a); // Markdown [text](href) if (isset($md_a_img[2][0]) && $md_a_img[2][0] != '' && isset($md_a_img[3][0]) && $md_a_img[3][0] != '') { // [![alt](src)](href) - $li_subject_text = (isset($md_a_img[1][0]) && $md_a_img[1][0] != '') ? stripslashes($md_a_img[1][0]) : __('Generic\\Choice') . ' ' . ($i + 1); + $li_subject_text = (isset($md_a_img[1][0]) && $md_a_img[1][0] != '') ? stripslashes($md_a_img[1][0]) : __('Generic', 'Choice') . ' ' . ($i + 1); $li_subject_html = '' . $li_subject_text . ''; } elseif (isset($md_img[2][0]) && $md_img[2][0] != '') { // ![alt](src) - $li_subject_text = (isset($md_img[1][0]) && $md_img[1][0] != '') ? stripslashes($md_img[1][0]) : __('Generic\\Choice') . ' ' . ($i + 1); + $li_subject_text = (isset($md_img[1][0]) && $md_img[1][0] != '') ? stripslashes($md_img[1][0]) : __('Generic', 'Choice') . ' ' . ($i + 1); $li_subject_html = '' . $li_subject_text . ''; } elseif (isset($md_a[2][0]) && $md_a[2][0] != '') { // [text](href) - $li_subject_text = (isset($md_a[1][0]) && $md_a[1][0] != '') ? stripslashes($md_a[1][0]) : __('Generic\\Choice') . ' ' . ($i + 1); + $li_subject_text = (isset($md_a[1][0]) && $md_a[1][0] != '') ? stripslashes($md_a[1][0]) : __('Generic', 'Choice') . ' ' . ($i + 1); $li_subject_html = '' . $li_subject_text . ''; } else { // text only @@ -184,33 +184,33 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (
-

' . __('Step 3\\List of your choices') . '

+

' . __('Step 3', 'List of your choices') . '

' . $summary . '
-

' . __('Step 3\\Your poll will be automatically removed after') . ' ' . $config['default_poll_duration'] . ' ' . __('Generic\\days') . '.
' . __('Step 3\\You can set a closer removal date for it.') . '

+

' . __('Step 3', 'Your poll will be automatically removed after') . ' ' . $config['default_poll_duration'] . ' ' . __('Generic', 'days') . '.
' . __('Step 3', 'You can set a closer removal date for it.') . '

- +
- +
- ' . __('Date\\dd/mm/yyyy') . ' + ' . __('Date', 'dd/mm/yyyy') . '
-

' . __('Step 3\\Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll.') . '

'; +

' . __('Step 3', 'Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll.') . '

'; if ($config['use_smtp'] == true) { echo ' -

' . __('Step 3\\Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.') . '

'; +

' . __('Step 3', 'Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.') . '

'; } echo '

- - + +

@@ -220,8 +220,8 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( // Step 2/4 : Select choices of the poll } else { - Utils::print_header(__('Step 2 classic\\Poll subjects (2 on 3)')); - bandeau_titre(__('Step 2 classic\\Poll subjects (2 on 3)')); + Utils::print_header(__('Step 2 classic', 'Poll subjects (2 on 3)')); + bandeau_titre(__('Step 2 classic', 'Poll subjects (2 on 3)')); echo '
@@ -229,10 +229,10 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (
'; echo '
-

' . __('Step 2 classic\\To make a generic poll you need to propose at least two choices between differents subjects.') . '

-

' . __('Step 2 classic\\You can add or remove additional choices with the buttons') . ' ' . __('Generic\\Remove') . ' ' . __('Generic\\Add') . '

'; +

' . __('Step 2 classic', 'To make a generic poll you need to propose at least two choices between differents subjects.') . '

+

' . __('Step 2 classic', 'You can add or remove additional choices with the buttons') . ' ' . __('Generic', 'Remove') . ' ' . __('Generic', 'Add') . '

'; if ($config['user_can_add_img_or_link']) { - echo '

' . __('Step 2 classic\\It\'s possible to propose links or images by using') . ' ' . __('Step 2 classic\\the Markdown syntax') . '.

'; + echo '

' . __('Step 2 classic', 'It\'s possible to propose links or images by using') . ' ' . __('Step 2 classic', 'the Markdown syntax') . '.

'; } echo '
' . "\n"; @@ -243,11 +243,11 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( $choice = isset($choices[$i]) ? $choices[$i] : new Choice(); echo '
- +
'; if ($config['user_can_add_img_or_link']) { - echo ' '; + echo ' '; } echo '
@@ -257,13 +257,13 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( echo '
- - + +
- ' . __('Generic\\Back') . ' - + ' . __('Generic', 'Back') . ' +
@@ -271,27 +271,27 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( diff --git a/create_date_poll.php b/create_date_poll.php index e39dbf7..365d053 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -43,13 +43,13 @@ if (is_readable('bandeaux_local.php')) { // Step 1/4 : error if $_SESSION from info_sondage are not valid if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || ($config['use_smtp'] && !isset($_SESSION['form']->admin_mail))) { - Utils::print_header ( __('Error\\Error!') ); - bandeau_titre(__('Error\\Error!')); + Utils::print_header ( __('Error', 'Error!') ); + bandeau_titre(__('Error', 'Error!')); echo '
-

' . __('Error\\You haven\'t filled the first section of the poll creation.') . ' !

-

' . __('Error\\Back to the homepage of') . ' ' . '' . NOMAPPLICATION . '.

+

' . __('Error', 'You haven\'t filled the first section of the poll creation.') . ' !

+

' . __('Error', 'Back to the homepage of') . ' ' . '' . NOMAPPLICATION . '.

'; @@ -94,20 +94,20 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || // Send confirmation by mail if enabled if ($config['use_smtp'] === true) { - $message = __("Mail\\This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll."); + $message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll."); $message .= "\n\n"; - $message .= stripslashes(html_entity_decode($_SESSION['form']->admin_name, ENT_QUOTES, 'UTF-8')) . ' ' . __('Mail\\hast just created a poll called') . ' : "' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)) . "\".\n"; - $message .= __('Mail\\Thanks for filling the poll at the link above') . " :\n\n%s\n\n" . __('Mail\\Thanks for your confidence.') . "\n" . NOMAPPLICATION; + $message .= stripslashes(html_entity_decode($_SESSION['form']->admin_name, ENT_QUOTES, 'UTF-8')) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)) . "\".\n"; + $message .= __('Mail', 'Thanks for filling the poll at the link above') . " :\n\n%s\n\n" . __('Mail', 'Thanks for your confidence.') . "\n" . NOMAPPLICATION; - $message_admin = __("Mail\\This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above"); - $message_admin .= " :\n\n" . "%s \n\n" . __('Mail\\Thanks for your confidence.') . "\n" . NOMAPPLICATION; + $message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above"); + $message_admin .= " :\n\n" . "%s \n\n" . __('Mail', 'Thanks for your confidence.') . "\n" . NOMAPPLICATION; $message = sprintf($message, Utils::getUrlSondage($poll_id)); $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true)); if ($mailService->isValidEmail($_SESSION['form']->admin_mail)) { - $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail\\Author\'s message') . '] ' . __('Generic\\Poll') . ' : ' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)), $message_admin); - $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail\\For sending to the polled users') . '] ' . __('Generic\\Poll') . ' : ' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)), $message); + $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Author\'s message') . '] ' . __('Generic', 'Poll') . ' : ' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)), $message_admin); + $mailService->send($_SESSION['form']->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'For sending to the polled users') . '] ' . __('Generic', 'Poll') . ' : ' . stripslashes(htmlspecialchars_decode($_SESSION['form']->title, ENT_QUOTES)), $message); } } @@ -154,8 +154,8 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || // Step 3/4 : Confirm poll creation if (!empty($_POST['choixheures']) && !isset($_SESSION['form']->totalchoixjour)) { - Utils::print_header ( __('Step 3\\Removal date and confirmation (3 on 3)') ); - bandeau_titre(__('Step 3\\Removal date and confirmation (3 on 3)')); + Utils::print_header ( __('Step 3', 'Removal date and confirmation (3 on 3)') ); + bandeau_titre(__('Step 3', 'Removal date and confirmation (3 on 3)')); $_SESSION['form']->sortChoices(); $last_date = $_SESSION['form']->lastChoice()->getName(); @@ -181,34 +181,34 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) ||
-

'. __('Step 3\\Confirm the creation of your poll') .'

+

'. __('Step 3', 'Confirm the creation of your poll') .'

-

'. __('Step 3\\List of your choices').'

+

'. __('Step 3', 'List of your choices').'

'. $summary .'
-

' . __('Step 3\\Your poll will be automatically removed after') . ' ' . $config['default_poll_duration'] . ' ' . __('Generic\\days') . ' ' .__('Step 3\\after the last date of your poll:') . '
' . __('Step 3\\You can set a closer removal date for it.') .'

+

' . __('Step 3', 'Your poll will be automatically removed after') . ' ' . $config['default_poll_duration'] . ' ' . __('Generic', 'days') . ' ' .__('Step 3', 'after the last date of your poll:') . '
' . __('Step 3', 'You can set a closer removal date for it.') .'

- +
- +
- ('. __("Date\\dd/mm/yyyy") .') + ('. __('Date', 'dd/mm/yyyy') .')
-

'. __('Step 3\\Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll.'). '

'; +

'. __('Step 3', 'Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll.'). '

'; if($config['use_smtp'] == true) { - echo '

' . __('Step 3\\Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.') .'

'; + echo '

' . __('Step 3', 'Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.') .'

'; } echo '

- - + +

@@ -218,18 +218,18 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || // Step 2/4 : Select dates of the poll } else { - Utils::print_header(__('Step 2 date\\Poll dates (2 on 3)')); - bandeau_titre(__('Step 2 date\\Poll dates (2 on 3)')); + Utils::print_header(__('Step 2 date', 'Poll dates (2 on 3)')); + bandeau_titre(__('Step 2 date', 'Poll dates (2 on 3)')); echo '
-

'. __('Step 2 date\\Choose the dates of your poll') .'

+

'. __('Step 2 date', 'Choose the dates of your poll') .'

-

'. __('Step 2 date\\To schedule an event you need to propose at least two choices (two hours for one day or two days).').'

-

'. __('Step 2 date\\You can add or remove additionnal days and hours with the buttons') .' '. __('Remove') .' '. __('Add') .'

-

'. __('Step 2 date\\For each selected day, you can choose, or not, meeting hours (e.g.: "8h", "8:30", "8h-10h", "evening", etc.)').'

+

'. __('Step 2 date', 'To schedule an event you need to propose at least two choices (two hours for one day or two days).').'

+

'. __('Step 2 date', 'You can add or remove additionnal days and hours with the buttons') .' '. __('Remove') .' '. __('Add') .'

+

'. __('Step 2 date', 'For each selected day, you can choose, or not, meeting hours (e.g.: "8h", "8:30", "8h-10h", "evening", etc.)').'

'; // Fields days : 3 by default @@ -240,12 +240,12 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) ||
- +
- +
- ('. __('Date\\dd/mm/yyyy') .') + ('. __('Date', 'dd/mm/yyyy') .')
'."\n"; // Fields hours : 3 by default @@ -254,38 +254,38 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || $hour_value = isset($_SESSION['horaires'.$i][$j]) ? $_SESSION['horaires'.$i][$j] : ''; echo '
- - + +
'."\n"; } echo '
- - + +
'; } echo '
- +
- - + +
diff --git a/infos_sondage.php b/infos_sondage.php index d3fbc87..c22592e 100644 --- a/infos_sondage.php +++ b/infos_sondage.php @@ -110,14 +110,14 @@ if (!empty($_POST['poursuivre'])) { } else { // Title Erreur ! - Utils::print_header( __('Generic\\Error!').' - '.__('Step 1\\Poll creation (1 on 3)') ); + Utils::print_header( __('Generic', 'Error!').' - '.__('Step 1', 'Poll creation (1 on 3)') ); } } else { // Title OK (formulaire pas encore rempli) - Utils::print_header( __('Step 1\\Poll creation (1 on 3)') ); + Utils::print_header( __('Step 1', 'Poll creation (1 on 3)') ); } -bandeau_titre( __('Step 1\\Poll creation (1 on 3)') ); +bandeau_titre( __('Step 1', 'Poll creation (1 on 3)') ); /* * Préparation des messages d'erreur @@ -150,37 +150,37 @@ if (!empty($_POST['poursuivre'])) { if (empty($_POST['title'])) { $errors['title']['aria'] = 'aria-describeby="poll_title_error" '; $errors['title']['class'] = ' has-error'; - $errors['title']['msg'] = '

' . __('Error\\Enter a title') . '

'; + $errors['title']['msg'] = '

' . __('Error', 'Enter a title') . '

'; } elseif ($error_on_title) { $errors['title']['aria'] = 'aria-describeby="poll_title_error" '; $errors['title']['class'] = ' has-error'; - $errors['title']['msg'] = '

' . __('Error\\Something is wrong with the format') . '

'; + $errors['title']['msg'] = '

' . __('Error', 'Something is wrong with the format') . '

'; } if ($error_on_description) { $errors['description']['aria'] = 'aria-describeby="poll_comment_error" '; $errors['description']['class'] = ' has-error'; - $errors['description']['msg'] = '

' . __('Error\\Something is wrong with the format') . '

'; + $errors['description']['msg'] = '

' . __('Error', 'Something is wrong with the format') . '

'; } if (empty($_POST['name'])) { $errors['name']['aria'] = 'aria-describeby="poll_name_error" '; $errors['name']['class'] = ' has-error'; - $errors['name']['msg'] = '

' . __('Error\\Enter a name') . '

'; + $errors['name']['msg'] = '

' . __('Error', 'Enter a name') . '

'; } elseif ($error_on_name) { $errors['name']['aria'] = 'aria-describeby="poll_name_error" '; $errors['name']['class'] = ' has-error'; - $errors['name']['msg'] = '

' . __('Error\\Something is wrong with the format') . '

'; + $errors['name']['msg'] = '

' . __('Error', 'Something is wrong with the format') . '

'; } if (empty($_POST['mail'])) { $errors['email']['aria'] = 'aria-describeby="poll_name_error" '; $errors['email']['class'] = ' has-error'; - $errors['email']['msg'] = '

' . __('Error\\Enter an email address') . '

'; + $errors['email']['msg'] = '

' . __('Error', 'Enter an email address') . '

'; } elseif ($error_on_mail) { $errors['email']['aria'] = 'aria-describeby="poll_email_error" '; $errors['email']['class'] = ' has-error'; - $errors['email']['msg'] = '

' . __('Error\\The address is not correct! You should enter a valid email address (like r.stallman@outlock.com) in order to receive the link to your poll.') . '

'; + $errors['email']['msg'] = '

' . __('Error', 'The address is not correct! You should enter a valid email address (like r.stallman@outlock.com) in order to receive the link to your poll.') . '

'; } } /* @@ -220,25 +220,25 @@ echo '
-

'. __('Step 1\\You are in the poll creation section.').'
'.__('Step 1\\Required fields cannot be left blank.') .'

+

'. __('Step 1', 'You are in the poll creation section.').'
'.__('Step 1', 'Required fields cannot be left blank.') .'

- +
'.$errors['title']['msg'].'
- +
'.$errors['description']['msg'].'
- +
'.$input_name.'
@@ -247,7 +247,7 @@ echo ' if ($config['use_smtp']==true) { echo '
- +
'.$input_email.'
@@ -259,7 +259,7 @@ echo '
@@ -269,7 +269,7 @@ if ($config['use_smtp']==true) {
@@ -278,7 +278,7 @@ if ($config['use_smtp']==true) {
@@ -287,7 +287,7 @@ if ($config['use_smtp']==true) { echo '

- +

@@ -297,11 +297,11 @@ echo '
'; diff --git a/locale/de.json b/locale/de.json index 418dc18..03f6540 100644 --- a/locale/de.json +++ b/locale/de.json @@ -161,6 +161,7 @@ "Poll saved": "Umfrage gespeichert", "Vote added": "vote hinzugefügt", "Vote updated": "vote aktualisiert", + "Poll fully deleted": "Umfrage vollständig gelöscht", "Vote deleted": "vote gelöscht", "All votes deleted": "Alle Stimmen werden gelöscht", "Back to the poll": "Zurück zur Umfrage", @@ -173,6 +174,8 @@ "Confirm removal of all comments of the poll": "Entfernen aller Kommentare der Umfrage bestätigen", "Keep the comments": "Halten Sie die Kommentare", "Remove the comments": "Entfernen Sie die Kommentare", + "Comment deleted": "Kommentar gelöscht", + "All comments deleted": "Alle Kommentare gelöscht", "The poll has been deleted": "Die Umfrage wurde gelöscht", "Keep votes": "Halten Stimmen", "Keep comments": "Halten Sie Kommentare", diff --git a/locale/en.json b/locale/en.json index b1b56ce..5403eef 100644 --- a/locale/en.json +++ b/locale/en.json @@ -160,6 +160,7 @@ "Keep the poll": "Keep the poll", "Your poll has been removed!": "Your poll has been removed!", "Poll saved": "Poll saved", + "Poll fully deleted": "Poll fully deleted", "Vote added": "Vote added", "Vote updated": "Vote updated", "Vote deleted": "Vote deleted", @@ -172,6 +173,8 @@ "Keep the votes": "Keep the votes", "Remove the votes": "Remove the votes", "Confirm removal of all comments of the poll": "Confirm removal of all comments of the poll", + "Comment deleted": "Comment deleted", + "All comments deleted": "All comments deleted", "Keep the comments": "Keep the comments", "Remove the comments": "Remove the comments", "The poll has been deleted": "The poll has been deleted", diff --git a/locale/es.json b/locale/es.json index 3f2bc58..a11b5c7 100644 --- a/locale/es.json +++ b/locale/es.json @@ -160,6 +160,7 @@ "Your poll has been removed!": "Su encuesta ha sido borrado!", "Poll saved": "ES_Sondage sauvegardé", "Vote added": "ES_Vote ajouté", + "Poll fully deleted": "ES_Sondage complètement supprimé", "Vote updated": "ES_Vote mis à jour", "Vote deleted": "ES_Vote supprimé", "All votes deleted": "ES_Tous les votes ont été supprimés", @@ -173,6 +174,8 @@ "Confirm removal of all comments of the poll": "ES_Confirmer la suppression de tous les commentaires de ce sondage", "Keep the comments": "ES_Garder les commentaires", "Remove the comments": "ES_Supprimer les commentaires", + "Comment deleted": "ES_Commentaire supprimé", + "All comments deleted": "ES_Tous les commentaires ont été supprimés", "The poll has been deleted": "ES_Le sondage a été supprimé", "Keep votes": "ES_Garder les votes", "Keep comments": "ES_Garder les commentaires", diff --git a/locale/fr.json b/locale/fr.json index 0ebbc20..a962f1a 100644 --- a/locale/fr.json +++ b/locale/fr.json @@ -159,6 +159,7 @@ "Keep the poll": "Je garde le sondage", "Your poll has been removed!": "Votre sondage a été supprimé !", "Poll saved": "Sondage sauvegardé", + "Poll fully deleted": "Sondage complètement supprimé", "Vote added": "Vote ajouté", "Vote updated": "Vote mis à jour", "Vote deleted": "Vote supprimé", @@ -173,6 +174,8 @@ "Confirm removal of all comments of the poll": "Confirmer la suppression de tous les commentaires de ce sondage", "Keep the comments": "Garder les commentaires", "Remove the comments": "Supprimer les commentaires", + "Comment deleted": "Commentaire supprimé", + "All comments deleted": "Tous les commentaires ont été supprimés", "The poll has been deleted": "Le sondage a été supprimé", "Keep votes": "Garder les votes", "Keep comments": "Garder les commentaires", diff --git a/tpl/add_slot.tpl b/tpl/add_slot.tpl index be359ca..a8593e1 100644 --- a/tpl/add_slot.tpl +++ b/tpl/add_slot.tpl @@ -3,36 +3,36 @@ {block name=main}
-

{__('adminstuds\\Column\'s adding')}

+

{__('adminstuds', 'Column\'s adding')}

{if $format === 'D'}
- +
- +
- ({__('Date\\dd/mm/yyyy')}) + ({__('Date', 'dd/mm/yyyy')})
- +
{else}
- +
{/if}
- - + +
diff --git a/tpl/admin/admin_page.tpl b/tpl/admin/admin_page.tpl index 9dc1e27..76ec946 100644 --- a/tpl/admin/admin_page.tpl +++ b/tpl/admin/admin_page.tpl @@ -3,8 +3,8 @@ {block 'main'} {block 'admin_main'}{/block} -{/block} \ No newline at end of file +{/block} diff --git a/tpl/admin/index.tpl b/tpl/admin/index.tpl index 2f3fa8a..7d6eedb 100644 --- a/tpl/admin/index.tpl +++ b/tpl/admin/index.tpl @@ -3,18 +3,18 @@ {block 'main'} -{/block} \ No newline at end of file +{/block} diff --git a/tpl/admin/migration.tpl b/tpl/admin/migration.tpl index 3883f13..b508264 100644 --- a/tpl/admin/migration.tpl +++ b/tpl/admin/migration.tpl @@ -3,37 +3,37 @@ {block 'admin_main'}
-

{__('Admin\\Summary')}

- {__('Admin\\Succeeded:')} {$countSucceeded|html} / {$countTotal|html} +

{__('Admin', 'Summary')}

+ {__('Admin', 'Succeeded:')} {$countSucceeded|html} / {$countTotal|html}
- {__('Admin\\Failed:')} {$countFailed|html} / {$countTotal|html} + {__('Admin', 'Failed:')} {$countFailed|html} / {$countTotal|html}
- {__('Admin\\Skipped:')} {$countSkipped|html} / {$countTotal|html} + {__('Admin', 'Skipped:')} {$countSkipped|html} / {$countTotal|html}
-

{__('Admin\\Success')}

+

{__('Admin', 'Success')}

    {foreach $success as $s}
  • {$s|html}
  • {foreachelse} -
  • {__('Admin\\Nothing')}
  • +
  • {__('Admin', 'Nothing')}
  • {/foreach}
-

{__('Admin\\Fail')}

+

{__('Admin', 'Fail')}

    {foreach $fail as $f}
  • {$f|html}
  • {foreachelse} -
  • {__('Admin\\Nothing')}
  • +
  • {__('Admin', 'Nothing')}
  • {/foreach}
- {__('Generic\\Page generated in')} {$time} {__('Generic\\seconds')} + {__('Generic', 'Page generated in')} {$time} {__('Generic', 'seconds')}
-{/block} \ No newline at end of file +{/block} diff --git a/tpl/admin/polls.tpl b/tpl/admin/polls.tpl index 4ec28de..e26e3ae 100644 --- a/tpl/admin/polls.tpl +++ b/tpl/admin/polls.tpl @@ -6,31 +6,31 @@ {block 'admin_main'} @@ -39,13 +39,13 @@ {if $poll_to_delete}
-

{__('adminstuds\\Confirm removal of the poll')} "{$poll_to_delete->id|html}"

+

{__('adminstuds', 'Confirm removal of the poll')} "{$poll_to_delete->id|html}"

+ name="annullesuppression">{__('adminstuds', 'Keep the poll')} + class="btn btn-danger">{__('adminstuds', 'Delete the poll')}

{/if} @@ -53,31 +53,31 @@
- {$count} / {$total} {__('Admin\\polls in the database at this time')} + {$count} / {$total} {__('Admin', 'polls in the database at this time')}
- - - - - - - + + + + + + + {foreach $polls as $poll} @@ -92,25 +92,25 @@ + class="sr-only">{__('Admin', 'See the poll')} + class="sr-only">{__('Admin', 'Change the poll')} {/foreach}
{__('Admin\\Title')}{__('Admin\\Author')}{__('Admin\\Email')}{__('Admin\\Expiration date')}{__('Admin\\Votes')}{__('Admin\\Poll ID')}{__('Admin\\Actions')}{__('Admin', 'Title')}{__('Admin', 'Author')}{__('Admin', 'Email')}{__('Admin', 'Expiration date')}{__('Admin', 'Votes')}{__('Admin', 'Poll ID')}{__('Admin', 'Actions')}
{if $poll->format === 'D'} - {__('Generic\\Date')} + title="{__('Generic', 'Date')}"> + {__('Generic', 'Date')} {else} - {__('Generic\\Classic')} + title="{__('Generic', 'Classic')}"> + {__('Generic', 'Classic')} {/if} {$poll->title|html}{$poll->votes|html} {$poll->id|html} {__('Admin\\See the poll')} {__('Admin\\Change the poll')}
- {__('Admin\\Pages:')} + {__('Admin', 'Pages:')} {for $p=1 to $pages} {if $p===$page}
-{/block} \ No newline at end of file +{/block} diff --git a/tpl/admin/purge.tpl b/tpl/admin/purge.tpl index 0c6b78c..3033c08 100644 --- a/tpl/admin/purge.tpl +++ b/tpl/admin/purge.tpl @@ -7,7 +7,7 @@
- +
-{/block} \ No newline at end of file +{/block} diff --git a/tpl/confirm/delete_comments.tpl b/tpl/confirm/delete_comments.tpl index 264a4ae..c94bf10 100644 --- a/tpl/confirm/delete_comments.tpl +++ b/tpl/confirm/delete_comments.tpl @@ -3,9 +3,9 @@ {block name=main}
-

{__('adminstuds\\Confirm removal of all comments of the poll')}

-

-

+

{__('adminstuds', 'Confirm removal of all comments of the poll')}

+

+

{/block} \ No newline at end of file diff --git a/tpl/confirm/delete_poll.tpl b/tpl/confirm/delete_poll.tpl index 70c0dde..9db0777 100644 --- a/tpl/confirm/delete_poll.tpl +++ b/tpl/confirm/delete_poll.tpl @@ -3,9 +3,9 @@ {block name=main}
-

{__('adminstuds\\Confirm removal of the poll')}

-

-

+

{__('adminstuds', 'Confirm removal of the poll')}

+

+

{/block} \ No newline at end of file diff --git a/tpl/confirm/delete_votes.tpl b/tpl/confirm/delete_votes.tpl index 530266e..ed863b1 100644 --- a/tpl/confirm/delete_votes.tpl +++ b/tpl/confirm/delete_votes.tpl @@ -3,9 +3,9 @@ {block name=main}
-

{__('adminstuds\\Confirm removal of all votes of the poll')}

-

-

+

{__('adminstuds', 'Confirm removal of all votes of the poll')}

+

+

{/block} \ No newline at end of file diff --git a/tpl/error.tpl b/tpl/error.tpl index 601e0a4..af34871 100644 --- a/tpl/error.tpl +++ b/tpl/error.tpl @@ -3,6 +3,6 @@ {block name=main}
{/block} diff --git a/tpl/header.tpl b/tpl/header.tpl index 53adb2f..84d8852 100644 --- a/tpl/header.tpl +++ b/tpl/header.tpl @@ -2,19 +2,19 @@ {if count($langs)>1}
- {foreach $langs as $lang_key=>$lang_value} {/foreach} - +
{/if} -

{$APPLICATION_NAME|html}

+

{$APPLICATION_NAME|html}

{if !empty($title)}

{$title|html}

{/if} diff --git a/tpl/part/comments.tpl b/tpl/part/comments.tpl index 57a21ff..8f3efba 100644 --- a/tpl/part/comments.tpl +++ b/tpl/part/comments.tpl @@ -4,11 +4,11 @@ {* Comment list *} {if $comments|count > 0} -

{__('Comments\\Comments of polled people')}

+

{__('Comments', 'Comments of polled people')}

{foreach $comments as $comment}
{if $admin && !$expired} - + {/if} {$comment->name|html}  {nl2br($comment->comment|html)} @@ -20,17 +20,17 @@ {if $active && !$expired}
-
{__('Comments\\Add a comment to the poll')} +
{__('Comments', 'Add a comment to the poll')}
- +
- +
- +
diff --git a/tpl/part/poll_hint.tpl b/tpl/part/poll_hint.tpl index 3e493e5..309b2ca 100644 --- a/tpl/part/poll_hint.tpl +++ b/tpl/part/poll_hint.tpl @@ -1,11 +1,11 @@ {if $active}
-

{__('studs\\If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.')}

- +

{__('studs', 'If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.')}

+
{else}
-

{__('studs\\POLL_LOCKED_WARNING')}

- +

{__('studs', 'POLL_LOCKED_WARNING')}

+
{/if} \ No newline at end of file diff --git a/tpl/part/poll_hint_admin.tpl b/tpl/part/poll_hint_admin.tpl index ac8ffda..977152d 100644 --- a/tpl/part/poll_hint_admin.tpl +++ b/tpl/part/poll_hint_admin.tpl @@ -1,7 +1,7 @@
-

{__('adminstuds\\As poll administrator, you can change all the lines of this poll with this button')} {_('Edit')}, - {__('adminstuds\\remove a column or a line with')} {_('Remove')} - {__('adminstuds\\and add a new column with')} {_('Add a column')}.

-

{__('adminstuds\\Finally, you can change the informations of this poll like the title, the comments or your email address.')}

- +

{__('adminstuds', 'As poll administrator, you can change all the lines of this poll with this button')} {_('Edit')}, + {__('adminstuds', 'remove a column or a line with')} {_('Remove')} + {__('adminstuds', 'and add a new column with')} {_('Add a column')}.

+

{__('adminstuds', 'Finally, you can change the informations of this poll like the title, the comments or your email address.')}

+
\ No newline at end of file diff --git a/tpl/part/poll_info.tpl b/tpl/part/poll_info.tpl index d3c62d5..93e43b6 100644 --- a/tpl/part/poll_info.tpl +++ b/tpl/part/poll_info.tpl @@ -4,15 +4,15 @@
-

{$poll->title|html}{if $admin && !$expired} {/if}

+

{$poll->title|html}{if $admin && !$expired} {/if}

{if $admin && !$expired} @@ -20,17 +20,17 @@
- - {__('PollInfo\\Export to CSV')} + + {__('PollInfo', 'Export to CSV')} {if $admin && !$expired} {/if}
@@ -38,16 +38,16 @@
-

{__('PollInfo\\Initiator of the poll')}

-

{$poll->admin_name|html}{if $admin && !$expired} {/if}

+

{__('PollInfo', 'Initiator of the poll')}

+

{$poll->admin_name|html}{if $admin && !$expired} {/if}

{if $admin && !$expired} @@ -58,15 +58,15 @@ {if $admin}
-

{$poll->admin_mail|html}{if !$expired} {/if}

+

{$poll->admin_mail|html}{if !$expired} {/if}

{if !$expired} @@ -75,14 +75,14 @@
{/if}
-

{__('Generic\\Description')}{if $admin && !$expired} {/if}

+

{__('Generic', 'Description')}{if $admin && !$expired} {/if}

{$poll->description|html}

{if $admin && !$expired} {/if}
@@ -90,25 +90,25 @@
{if $admin}
-

{__('PollInfo\\Expiration date')}

-

{$poll->end_date|date_format:$date_format['txt_date']|html}{if !$expired} {/if}

+

{__('PollInfo', 'Expiration date')}

+

{$poll->end_date|date_format:$date_format['txt_date']|html}{if !$expired} {/if}

{if !$expired} @@ -124,30 +124,30 @@ {if $poll->editable} {$rule_id = 2} {$rule_icon = ''} - {$rule_txt = __('PollInfo\\Votes are editable')} + {$rule_txt = __('PollInfo', 'Votes are editable')} {else} {$rule_id = 1} {$rule_icon = ''} - {$rule_txt = __('PollInfo\\Votes and comments are open')} + {$rule_txt = __('PollInfo', 'Votes and comments are open')} {/if} {else} {$rule_id = 0} {$rule_icon = ''} - {$rule_txt = __('PollInfo\\Votes and comments are locked')} + {$rule_txt = __('PollInfo', 'Votes and comments are locked')} {/if} -

{$rule_icon} {$rule_txt|html}{if !$expired} {/if}

+

{$rule_icon} {$rule_txt|html}{if !$expired} {/if}

{if !$expired} diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index 6f8a2b6..2c3a48b 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -2,23 +2,23 @@ {$best_choices = [0]} {/if} -

{__('Poll results\\Votes of the poll')}

+

{__('Poll results', 'Votes of the poll')}

- + {if $admin && !$expired} {foreach $slots as $id=>$slot} {/foreach} {/if} @@ -40,7 +40,7 @@ @@ -50,26 +50,26 @@
  • -
  • -
  • -
{/foreach} - + {else} {* Voted line *} @@ -79,23 +79,23 @@ {foreach $vote->choices as $id=>$choice} {if $choice==2} - + {elseif $choice==1} - + {else} - + {/if} {/foreach} {if $active && $poll->editable && !$expired} @@ -113,7 +113,7 @@ {foreach $slots as $id=>$slot} @@ -121,26 +121,26 @@
  • -
  • -
  • -
{/foreach} - + {/if} @@ -149,7 +149,7 @@ {$max = max($best_choices)} {if $max > 0} - + {foreach $best_choices as $best_choice} {if $max == $best_choice} {$count_bests = $count_bests +1} @@ -173,13 +173,13 @@ {if $max > 0}
{if $count_bests == 1} -

{__('Poll results\\Best choice')}

+

{__('Poll results', 'Best choice')}

-

{__('Poll results\\The best choice at this time is:')}

+

{__('Poll results', 'The best choice at this time is:')}

{elseif $count_bests > 1} -

{__('Poll results\\Best choices')}

+

{__('Poll results', 'Best choices')}

-

{__('Poll results\\The bests choices at this time are:')}

+

{__('Poll results', 'The bests choices at this time are:')}

{/if} @@ -192,7 +192,7 @@ {$i = $i+1} {/foreach} -

{__('Generic\\with')} {$max|html} {if $max==1}{__('Generic\\vote')}{else}{__('Generic\\votes')}{/if}.

+

{__('Generic', 'with')} {$max|html} {if $max==1}{__('Generic', 'vote')}{else}{__('Generic', 'votes')}{/if}.

{/if} \ No newline at end of file diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 2ddf2d9..9262183 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -2,12 +2,12 @@ {$best_choices = [0]} {/if} -

{__('Poll results\\Votes of the poll')}

+

{__('Poll results', 'Votes of the poll')}

{__('Poll results\\Votes of the poll')} {$poll->title|html}{__('Poll results', 'Votes of the poll')} {$poll->title|html}
- + - +
- +
{__('Generic\\Yes')}{__('Generic', 'Yes')}(){__('Generic\\Ifneedbe')}(){__('Generic', 'Ifneedbe')}{__('Generic\\No')}{__('Generic', 'No')} - {if $admin} - {/if}
- +
{__('Poll results\\Addition')}{__('Poll results', 'Addition')}
- + {if $admin && !$expired} @@ -16,13 +16,13 @@ {foreach $slots as $slot} {foreach $slot->moments as $id=>$moment} {$headersDCount = $headersDCount+1} {/foreach} {/foreach} {/if} @@ -86,7 +86,7 @@ @@ -96,26 +96,26 @@
  • -
  • -
  • -
{/foreach} - + {else} {* Voted line *} @@ -125,23 +125,23 @@ {foreach $vote->choices as $k=>$choice} {if $choice==2} - + {elseif $choice==1} - + {else} - + {/if} {/foreach} {if $active && $poll->editable && !$expired} @@ -159,7 +159,7 @@ {$i = 0} @@ -169,20 +169,20 @@
  • -
  • -
  • -
@@ -190,7 +190,7 @@ {$i = $i+1} {/foreach} {/foreach} - + {/if} @@ -199,7 +199,7 @@ {$max = max($best_choices)} {if $max > 0} - + {foreach $best_choices as $best_moment} {if $max == $best_moment} {$count_bests = $count_bests +1} @@ -223,13 +223,13 @@ {if $max > 0}
{if $count_bests == 1} -

{__('Poll results\\Best choice')}

+

{__('Poll results', 'Best choice')}

-

{__('Poll results\\The best choice at this time is:')}

+

{__('Poll results', 'The best choice at this time is:')}

{elseif $count_bests > 1} -

{__('Poll results\\Best choices')}

+

{__('Poll results', 'Best choices')}

-

{__('Poll results\\The bests choices at this time are:')}

+

{__('Poll results', 'The bests choices at this time are:')}

{/if} @@ -244,7 +244,7 @@ {/foreach} {/foreach} -

{__('Generic\\with')} {$max|html} {if $max==1}{__('Generic\\vote')}{else}{__('Generic\\votes')}{/if}.

+

{__('Generic', 'with')} {$max|html} {if $max==1}{__('Generic', 'vote')}{else}{__('Generic', 'votes')}{/if}.

{/if} \ No newline at end of file diff --git a/tpl/poll_deleted.tpl b/tpl/poll_deleted.tpl index 6fc2c01..79174ec 100644 --- a/tpl/poll_deleted.tpl +++ b/tpl/poll_deleted.tpl @@ -2,7 +2,7 @@ {block name=main}
-

{__('adminstuds\\The poll has been deleted')}

-

{__('Generic\\Back to the homepage of')} {$APPLICATION_NAME|html}

+

{__('adminstuds', 'The poll has been deleted')}

+

{__('Generic', 'Back to the homepage of')} {$APPLICATION_NAME|html}

{/block} \ No newline at end of file diff --git a/tpl/studs.tpl b/tpl/studs.tpl index 2c9b381..10d1c04 100644 --- a/tpl/studs.tpl +++ b/tpl/studs.tpl @@ -12,7 +12,7 @@ {/if}
- + {* Global informations about the current poll *} @@ -22,8 +22,8 @@ {* Information about voting *} {if $expired}
-

{__('studs\\The poll is expired, it will be deleted soon.')}

-

{__('studs\\Deletion date:')} {$deletion_date|date_format:$date_format['txt_short']|html}

+

{__('studs', 'The poll is expired, it will be deleted soon.')}

+

{__('studs', 'Deletion date:')} {$deletion_date|date_format:$date_format['txt_short']|html}

{else} {if $admin} @@ -37,10 +37,10 @@
{__('Poll results\\Votes of the poll')} {$poll->title|html}{__('Poll results', 'Votes of the poll')} {$poll->title|html}
- + - +
- +
{__('Generic\\Yes')}{__('Generic', 'Yes')}(){__('Generic\\Ifneedbe')}(){__('Generic', 'Ifneedbe')}{__('Generic\\No')}{__('Generic', 'No')} - {if $admin} - {/if}
- +
{__('Poll results\\Addition')}{__('Poll results', 'Addition')}