Skip to content

Commit 593d39c

Browse files
committed
Fix missing keys
1 parent e26af38 commit 593d39c

15 files changed

+65
-164
lines changed

OPSession.inc.zip

-879 Bytes
Binary file not shown.

admin/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919

2020
require_once '../app/inc/init.php';
2121

22-
$smarty->assign('title', _('Administration'));
22+
$smarty->assign('title', __('Admin', 'Administration'));
2323
$smarty->assign('logsAreReadable', is_readable('../' . LOG_FILE));
2424
$smarty->display('admin/index.tpl');

admin/logs.php

-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
is_readable('../' . LOG_FILE) ? readfile('../' . LOG_FILE) : null;
2424
$content = ob_get_clean();
2525

26-
$smarty->assign('title', _('Administration'));
2726
$smarty->assign('logs', $content);
28-
2927
$smarty->assign('title', __('Admin', 'Logs'));
3028

3129
$smarty->display('admin/logs.tpl');

admin/purge.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
if ($action === 'purge' && $securityService->checkCsrf('admin', $_POST['csrf'])) {
4848
$count = $purgeService->purgeOldPolls();
49-
$message = _('Purged:') . ' ' . $count;
49+
$message = __('Admin', 'Purged:') . ' ' . $count;
5050
}
5151

5252
// Assign data to template

app/classes/Framadate/Services/MailService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function send($to, $subject, $body, $param = '') {
3939
$headers .= "Auto-Submitted:auto-generated\n";
4040
$headers .= 'Return-Path: <>';
4141

42-
$body = html_entity_decode($body, ENT_QUOTES, 'UTF-8') . _("\n--\n\n« La route est longue, mais la voie est libre… »\nFramasoft ne vit que par vos dons (déductibles des impôts).\nMerci d'avance pour votre soutien http://soutenir.framasoft.org.");
42+
$body = html_entity_decode($body, ENT_QUOTES, 'UTF-8') . __('Mail', "\n--\n\n« La route est longue, mais la voie est libre… »\nFramasoft ne vit que par vos dons (déductibles des impôts).\nMerci d'avance pour votre soutien http://soutenir.framasoft.org.");
4343

4444
mail($to, $subject, $body, $headers, $param);
4545
}

creation_sondage.php

-122
This file was deleted.

doc/TREEVIEW.md

-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ Here are the main files and directories you need to know in order to develop on
3333
* La page de création (2/2) pour un sondage pour déterminer une date
3434
* crete_classic_poll.php
3535
* La page de création (2/2) pour un sondage sur un sujet quelconque
36-
* creation_sondage.php
37-
* Le fichier qui récupérent les informations des pages précédentes pour procéder à l'insertion du nouveau sondage dans la base PostgreSQL
3836
* bandeaux.php
3937
* Le fichier contenant tous les bandeaux des pages PHP de l'application
4038
* favicon.ico

exportcsv.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
if (!$poll) {
51-
$smarty->assign('error', _('This poll doesn\'t exist !'));
51+
$smarty->assign('error', __('Error', 'This poll doesn\'t exist !'));
5252
$smarty->display('error.tpl');
5353
exit;
5454
}
@@ -86,13 +86,13 @@
8686
foreach ($choices as $choice) {
8787
switch ($choice) {
8888
case 0:
89-
$text = _('No');
89+
$text = __('Generic', 'No');
9090
break;
9191
case 1:
92-
$text = _('Ifneedbe');
92+
$text = __('Generic', 'Ifneedbe');
9393
break;
9494
case 2:
95-
$text = _('Yes');
95+
$text = __('Generic', 'Yes');
9696
break;
9797
default:
9898
$text = 'unkown';

locale/de.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@
148148
"POLL_LOCKED_WARNING": "Die Administration gesperrt diese Umfrage. Bewertungen und Kommentare werden eingefroren, es ist nicht mehr möglich, teilzunehmen",
149149
"The poll is expired, it will be deleted soon.": "Die Umfrage ist abgelaufen, es wird bald gelöscht werden.",
150150
"Deletion date:": "Löschdatum:",
151-
"Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:": "DE_Votre vote a bien été pris en compte, mais faites attention : ce sondage n'autorise l'édition de votre vote qu'avec le lien personnalisé suivant ; conservez le précieusement ! "
151+
"Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:": "DE_Votre vote a bien été pris en compte, mais faites attention : ce sondage n'autorise l'édition de votre vote qu'avec le lien personnalisé suivant ; conservez le précieusement ! ",
152+
"Update vote succeeded": "Update Abstimmung gelungen"
152153
},
153154
"adminstuds": {
154155
"As poll administrator, you can change all the lines of this poll with this button": "Als Administrator der Umfrage, können Sie alle Zeilen der Umfrage über diesen Button ändern",
@@ -244,6 +245,7 @@
244245
},
245246
"Admin": {
246247
"Back to administration": "Zurück zur Verwaltung",
248+
"Administration": "Verwaltung",
247249
"Polls": "Umfragen",
248250
"Migration": "Migration",
249251
"Purge": "Säuberung",
@@ -267,6 +269,7 @@
267269
"Failed:": "fehlgeschlagen:",
268270
"Skipped:": "übersprungene:",
269271
"Pages:": "Seiten:",
272+
"Purged:": "gespült :",
270273
"Confirm removal of the poll": "Bestätigen Sie die Löschung ihrer Umfrage",
271274
"polls in the database at this time": "Umfragen derzeit in der Datenbank",
272275
"Purge the polls": "TRANSLATE_ Purge the polls"
@@ -290,21 +293,25 @@
290293
"Error": {
291294
"Error!": "Fehler!",
292295
"Enter a title": "Titel eingeben",
296+
"Something is going wrong...": "Etwas falsch läuft...",
293297
"Something is wrong with the format": "Something is wrong with the format",
294298
"Enter an email address": "Sie müssen eine E-Mail-Adresse eingeben",
295299
"The address is not correct! You should enter a valid email address (like [email protected]) in order to receive the link to your poll.": "Die Adresse ist nicht korrekt! Sie sollten eine funktionierende E-Mail-Adresse angeben, um den Link zu ihrer Umfrage zu erhalten",
300+
"There is a problem with your choices": "Es gibt ein Problem mit der Auswahl",
296301
"You haven't filled the first section of the poll creation.": "Sie haben den ersten Teil der Umfrageerstellung nicht ausgefüllt.",
297302
"Javascript is disabled on your browser. Its activation is required to create a poll.": "Javascript ist in Ihrem Browser deaktiviert. Seine Aktivierung ist erforderlich, um eine Umfrage zu erstellen.",
298303
"Cookies are disabled on your browser. Theirs activation is required to create a poll.": "Cookies werden auf Ihrem Browser deaktiviert. Deren Aktivierung ist erforderlich, um eine Umfrage zu erstellen.",
299304
"This poll doesn't exist !": "Diese Umfrage existiert nicht!",
300305
"Enter a name": "Geben Sie einen Namen ein",
306+
"Name is incorrect": "Name ist falsch",
301307
"The name you've chosen already exist in this poll!": "Der von Ihnen eingegebenen Name existiert bereits in dieser Umfrage",
302308
"Enter a name and a comment!": "Geben Sie einen Namen und ein Kommentar ein!",
303309
"Failed to insert the comment!": "Einfügen des Kommentars gescheitert!",
304310
"Framadate is not properly installed, please check the \"INSTALL\" to setup the database before continuing.": "Framadate ist nicht richtig installiert, überprüfen Sie bitte die Schaltfläche \"INSTALL\", um das Setup der Datenbank, bevor Sie fortfahren.",
305311
"Failed to save poll": "Fehlgeschlagen Umfrage sparen",
306312
"Update vote failed": "Update vote failed",
307313
"Adding vote failed": "Adding vote failed",
314+
"Comment failed": "Kommentar gescheitert",
308315
"You can't create a poll with hidden results with the following edition option:": "DE_Vous ne pouvez pas créer de sondage avec résulats cachés avec les options d'éditions suivantes : "
309316
}
310-
}
317+
}

locale/en.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"Remove all the votes": "Remove all the votes",
8686
"Print": "Print",
8787
"Export to CSV": "Export to CSV",
88-
"Remove the poll": "Remove the poll",
8988
"Title": "Title of the poll",
9089
"Edit the title": "Edit the title",
9190
"Save the new title": "Save the new title",
@@ -149,7 +148,8 @@
149148
"POLL_LOCKED_WARNING": "The administration locked this poll. Votes and comments are frozen, it is no longer possible to participate",
150149
"The poll is expired, it will be deleted soon.": "The poll is expired, it will be deleted soon.",
151150
"Deletion date:": "Deletion date:",
152-
"Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:": "Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote."
151+
"Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote:": "Your vote has been registered successfully, but be careful: regarding this poll options, you need to keep this personal link to edit your own vote.",
152+
"Update vote succeeded": "Update vote succeeded"
153153
},
154154
"adminstuds": {
155155
"As poll administrator, you can change all the lines of this poll with this button": "As poll administrator, you can change all the lines of this poll with this button",
@@ -245,6 +245,7 @@
245245
},
246246
"Admin": {
247247
"Back to administration": "Back to administration",
248+
"Administration": "Administration",
248249
"Polls": "Polls",
249250
"Migration": "Migration",
250251
"Purge": "Purge",
@@ -268,6 +269,7 @@
268269
"Failed:": "Failed:",
269270
"Skipped:": "Skipped:",
270271
"Pages:": "Pages:",
272+
"Purged:": "Purged:",
271273
"Confirm removal of the poll": "Confirm removal of the poll ",
272274
"polls in the database at this time": "polls in the database at this time",
273275
"Purge the polls": "Purge the polls"
@@ -291,21 +293,25 @@
291293
"Error": {
292294
"Error!": "Error!",
293295
"Enter a title": "Enter a title",
296+
"Something is going wrong...": "Something is going wrong...",
294297
"Something is wrong with the format": "Something is wrong with the format",
295298
"Enter an email address": "Enter an email address",
296299
"The address is not correct! You should enter a valid email address (like [email protected]) in order to receive the link to your poll.": "The address is not correct! You should enter a valid email address (like [email protected]) in order to receive the link to your poll.",
300+
"There is a problem with your choices": "There is a problem with your choices",
297301
"You haven't filled the first section of the poll creation.": "You haven't filled the first section of the poll creation.",
298302
"Javascript is disabled on your browser. Its activation is required to create a poll.": "Javascript is disabled on your browser. Its activation is required to create a poll.",
299303
"Cookies are disabled on your browser. Theirs activation is required to create a poll.": "Cookies are disabled on your browser. Theirs activation is required to create a poll.",
300304
"This poll doesn't exist !": "This poll doesn't exist !",
301305
"Enter a name": "Enter a name",
306+
"Name is incorrect": "Name is incorrect",
302307
"The name you've chosen already exist in this poll!": "The name you've chosen already exist in this poll!",
303308
"Enter a name and a comment!": "Enter a name and a comment!",
304309
"Failed to insert the comment!": "Failed to insert the comment!",
305310
"Framadate is not properly installed, please check the \"INSTALL\" to setup the database before continuing.": "Framadate is not properly installed, please check the 'INSTALL' to setup the database before continuing.",
306311
"Failed to save poll": "Failed to save poll",
307312
"Update vote failed": "Update vote failed",
308313
"Adding vote failed": "Adding vote failed",
314+
"Comment failed": "Comment failed",
309315
"You can't create a poll with hidden results with the following edition option:": "You can't create a poll with hidden results with the following edition option: "
310316
}
311-
}
317+
}

0 commit comments

Comments
 (0)