diff options
3 files changed, 48 insertions, 42 deletions
diff --git a/application/front/controller/admin/ShaareManageController.php b/application/front/controller/admin/ShaareManageController.php index 7ceb8d8a..2ed298f5 100644 --- a/application/front/controller/admin/ShaareManageController.php +++ b/application/front/controller/admin/ShaareManageController.php | |||
@@ -66,8 +66,8 @@ class ShaareManageController extends ShaarliAdminController | |||
66 | return $response->write('<script>self.close();</script>'); | 66 | return $response->write('<script>self.close();</script>'); |
67 | } | 67 | } |
68 | 68 | ||
69 | // Don't redirect to where we were previously because the datastore has changed. | 69 | // Don't redirect to permalink after deletion. |
70 | return $this->redirect($response, '/'); | 70 | return $this->redirectFromReferer($request, $response, ['shaare/']); |
71 | } | 71 | } |
72 | 72 | ||
73 | /** | 73 | /** |
diff --git a/inc/languages/fr/LC_MESSAGES/shaarli.po b/inc/languages/fr/LC_MESSAGES/shaarli.po index 60ea7a97..d5b01227 100644 --- a/inc/languages/fr/LC_MESSAGES/shaarli.po +++ b/inc/languages/fr/LC_MESSAGES/shaarli.po | |||
@@ -1,8 +1,8 @@ | |||
1 | msgid "" | 1 | msgid "" |
2 | msgstr "" | 2 | msgstr "" |
3 | "Project-Id-Version: Shaarli\n" | 3 | "Project-Id-Version: Shaarli\n" |
4 | "POT-Creation-Date: 2020-10-27 19:44+0100\n" | 4 | "POT-Creation-Date: 2020-11-03 11:51+0100\n" |
5 | "PO-Revision-Date: 2020-10-27 19:44+0100\n" | 5 | "PO-Revision-Date: 2020-11-03 11:55+0100\n" |
6 | "Last-Translator: \n" | 6 | "Last-Translator: \n" |
7 | "Language-Team: Shaarli\n" | 7 | "Language-Team: Shaarli\n" |
8 | "Language: fr_FR\n" | 8 | "Language: fr_FR\n" |
@@ -347,16 +347,6 @@ msgstr "" | |||
347 | "le serveur web peut accepter (%s). Merci de l'envoyer en parties plus " | 347 | "le serveur web peut accepter (%s). Merci de l'envoyer en parties plus " |
348 | "légères." | 348 | "légères." |
349 | 349 | ||
350 | #: application/front/controller/admin/ManageShaareController.php:64 | ||
351 | #: application/front/controller/admin/ManageShaareController.php:95 | ||
352 | #: application/front/controller/admin/ManageShaareController.php:193 | ||
353 | #: application/front/controller/admin/ManageShaareController.php:262 | ||
354 | #: application/front/controller/admin/ManageShaareController.php:302 | ||
355 | #: application/front/controller/admin/ManageShaareController.php:181 | ||
356 | #: application/front/controller/admin/ManageShaareController.php:239 | ||
357 | #: application/front/controller/admin/ManageShaareController.php:247 | ||
358 | #: application/front/controller/admin/ManageShaareController.php:378 | ||
359 | #: application/front/controller/admin/ManageShaareController.php:381 | ||
360 | #: application/front/controller/admin/ManageTagController.php:29 | 350 | #: application/front/controller/admin/ManageTagController.php:29 |
361 | #: tmp/changetag.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13 | 351 | #: tmp/changetag.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13 |
362 | #: tmp/tools.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42 | 352 | #: tmp/tools.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42 |
@@ -429,6 +419,20 @@ msgstr "Le cache des miniatures a été vidé." | |||
429 | msgid "Shaarli's cache folder has been cleared!" | 419 | msgid "Shaarli's cache folder has been cleared!" |
430 | msgstr "Le dossier de cache de Shaarli a été vidé !" | 420 | msgstr "Le dossier de cache de Shaarli a été vidé !" |
431 | 421 | ||
422 | #: application/front/controller/admin/ShaareAddController.php:26 | ||
423 | #: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13 | ||
424 | msgid "Shaare a new link" | ||
425 | msgstr "Partagez un nouveau lien" | ||
426 | |||
427 | #: application/front/controller/admin/ShaareManageController.php:35 | ||
428 | #: application/front/controller/admin/ShaareManageController.php:93 | ||
429 | msgid "Invalid bookmark ID provided." | ||
430 | msgstr "L'ID du marque-page fourni n'est pas valide." | ||
431 | |||
432 | #: application/front/controller/admin/ShaareManageController.php:47 | ||
433 | #: application/front/controller/admin/ShaareManageController.php:116 | ||
434 | #: application/front/controller/admin/ShaareManageController.php:156 | ||
435 | #: application/front/controller/admin/ShaarePublishController.php:82 | ||
432 | #, php-format | 436 | #, php-format |
433 | msgid "Bookmark with identifier %s could not be found." | 437 | msgid "Bookmark with identifier %s could not be found." |
434 | msgstr "Le lien avec l'identifiant %s n'a pas pu être trouvé." | 438 | msgstr "Le lien avec l'identifiant %s n'a pas pu être trouvé." |
@@ -437,18 +441,18 @@ msgstr "Le lien avec l'identifiant %s n'a pas pu être trouvé." | |||
437 | msgid "Invalid visibility provided." | 441 | msgid "Invalid visibility provided." |
438 | msgstr "Visibilité du lien non valide." | 442 | msgstr "Visibilité du lien non valide." |
439 | 443 | ||
440 | #: application/front/controller/admin/ShaarePublishController.php:154 | 444 | #: application/front/controller/admin/ShaarePublishController.php:168 |
441 | #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:171 | 445 | #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:171 |
442 | msgid "Edit" | 446 | msgid "Edit" |
443 | msgstr "Modifier" | 447 | msgstr "Modifier" |
444 | 448 | ||
445 | #: application/front/controller/admin/ShaarePublishController.php:157 | 449 | #: application/front/controller/admin/ShaarePublishController.php:171 |
446 | #: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:28 | 450 | #: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:28 |
447 | #: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:28 | 451 | #: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:28 |
448 | msgid "Shaare" | 452 | msgid "Shaare" |
449 | msgstr "Shaare" | 453 | msgstr "Shaare" |
450 | 454 | ||
451 | #: application/front/controller/admin/ShaarePublishController.php:184 | 455 | #: application/front/controller/admin/ShaarePublishController.php:202 |
452 | msgid "Note: " | 456 | msgid "Note: " |
453 | msgstr "Note : " | 457 | msgstr "Note : " |
454 | 458 | ||
@@ -905,7 +909,7 @@ msgstr "Mauvaise réponse du hub %s" | |||
905 | msgid "Enable PubSubHubbub feed publishing." | 909 | msgid "Enable PubSubHubbub feed publishing." |
906 | msgstr "Active la publication de flux vers PubSubHubbub." | 910 | msgstr "Active la publication de flux vers PubSubHubbub." |
907 | 911 | ||
908 | #: plugins/qrcode/qrcode.php:73 plugins/wallabag/wallabag.php:70 | 912 | #: plugins/qrcode/qrcode.php:73 plugins/wallabag/wallabag.php:71 |
909 | msgid "For each link, add a QRCode icon." | 913 | msgid "For each link, add a QRCode icon." |
910 | msgstr "Pour chaque lien, ajouter une icône de QRCode." | 914 | msgstr "Pour chaque lien, ajouter une icône de QRCode." |
911 | 915 | ||
@@ -917,15 +921,15 @@ msgstr "" | |||
917 | "Erreur de l'extension Wallabag : Merci de définir le paramètre « " | 921 | "Erreur de l'extension Wallabag : Merci de définir le paramètre « " |
918 | "WALLABAG_URL » dans la page d'administration des extensions." | 922 | "WALLABAG_URL » dans la page d'administration des extensions." |
919 | 923 | ||
920 | #: plugins/wallabag/wallabag.php:47 | 924 | #: plugins/wallabag/wallabag.php:48 |
921 | msgid "Save to wallabag" | 925 | msgid "Save to wallabag" |
922 | msgstr "Sauvegarder dans Wallabag" | 926 | msgstr "Sauvegarder dans Wallabag" |
923 | 927 | ||
924 | #: plugins/wallabag/wallabag.php:71 | 928 | #: plugins/wallabag/wallabag.php:72 |
925 | msgid "Wallabag API URL" | 929 | msgid "Wallabag API URL" |
926 | msgstr "URL de l'API Wallabag" | 930 | msgstr "URL de l'API Wallabag" |
927 | 931 | ||
928 | #: plugins/wallabag/wallabag.php:72 | 932 | #: plugins/wallabag/wallabag.php:73 |
929 | msgid "Wallabag API version (1 or 2)" | 933 | msgid "Wallabag API version (1 or 2)" |
930 | msgstr "Version de l'API Wallabag (1 ou 2)" | 934 | msgstr "Version de l'API Wallabag (1 ou 2)" |
931 | 935 | ||
@@ -1165,7 +1169,7 @@ msgid "None" | |||
1165 | msgstr "Aucune" | 1169 | msgstr "Aucune" |
1166 | 1170 | ||
1167 | #: tmp/configure.b91ef64efc3688266305ea9b42e5017e.rtpl.php:355 | 1171 | #: tmp/configure.b91ef64efc3688266305ea9b42e5017e.rtpl.php:355 |
1168 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:102 | 1172 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:121 |
1169 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:139 | 1173 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:139 |
1170 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:199 | 1174 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:199 |
1171 | msgid "Save" | 1175 | msgid "Save" |
@@ -1196,27 +1200,27 @@ msgid_plural "" | |||
1196 | msgstr[0] ":type suivant" | 1200 | msgstr[0] ":type suivant" |
1197 | msgstr[1] "" | 1201 | msgstr[1] "" |
1198 | 1202 | ||
1199 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:21 | 1203 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30 |
1200 | msgid "Edit Shaare" | 1204 | msgid "Edit Shaare" |
1201 | msgstr "Modifier le Shaare" | 1205 | msgstr "Modifier le Shaare" |
1202 | 1206 | ||
1203 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:21 | 1207 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:30 |
1204 | msgid "New Shaare" | 1208 | msgid "New Shaare" |
1205 | msgstr "Nouveau Shaare" | 1209 | msgstr "Nouveau Shaare" |
1206 | 1210 | ||
1207 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:29 | 1211 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:38 |
1208 | msgid "Created:" | 1212 | msgid "Created:" |
1209 | msgstr "Création :" | 1213 | msgstr "Création :" |
1210 | 1214 | ||
1211 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:32 | 1215 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:41 |
1212 | msgid "URL" | 1216 | msgid "URL" |
1213 | msgstr "URL" | 1217 | msgstr "URL" |
1214 | 1218 | ||
1215 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:38 | 1219 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:47 |
1216 | msgid "Title" | 1220 | msgid "Title" |
1217 | msgstr "Titre" | 1221 | msgstr "Titre" |
1218 | 1222 | ||
1219 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:49 | 1223 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:58 |
1220 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42 | 1224 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42 |
1221 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:75 | 1225 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:75 |
1222 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:99 | 1226 | #: tmp/pluginsadmin.b91ef64efc3688266305ea9b42e5017e.rtpl.php:99 |
@@ -1224,21 +1228,19 @@ msgstr "Titre" | |||
1224 | msgid "Description" | 1228 | msgid "Description" |
1225 | msgstr "Description" | 1229 | msgstr "Description" |
1226 | 1230 | ||
1227 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:58 | 1231 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:89 |
1228 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:74 | ||
1229 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:80 | ||
1230 | msgid "Description will be rendered with" | 1232 | msgid "Description will be rendered with" |
1231 | msgstr "La description sera générée avec" | 1233 | msgstr "La description sera générée avec" |
1232 | 1234 | ||
1233 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:82 | 1235 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:91 |
1234 | msgid "Markdown syntax documentation" | 1236 | msgid "Markdown syntax documentation" |
1235 | msgstr "Documentation sur la syntaxe Markdown" | 1237 | msgstr "Documentation sur la syntaxe Markdown" |
1236 | 1238 | ||
1237 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83 | 1239 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:92 |
1238 | msgid "Markdown syntax" | 1240 | msgid "Markdown syntax" |
1239 | msgstr "la syntaxe Markdown" | 1241 | msgstr "la syntaxe Markdown" |
1240 | 1242 | ||
1241 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:102 | 1243 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:115 |
1242 | msgid "Cancel" | 1244 | msgid "Cancel" |
1243 | msgstr "Annuler" | 1245 | msgstr "Annuler" |
1244 | 1246 | ||
@@ -1246,12 +1248,7 @@ msgstr "Annuler" | |||
1246 | msgid "Apply Changes" | 1248 | msgid "Apply Changes" |
1247 | msgstr "Appliquer les changements" | 1249 | msgstr "Appliquer les changements" |
1248 | 1250 | ||
1249 | #: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:12 | 1251 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:126 |
1250 | #: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:23 | ||
1251 | msgid "Save all" | ||
1252 | msgstr "Tout enregistrer" | ||
1253 | |||
1254 | #: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:107 | ||
1255 | #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:173 | 1252 | #: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:173 |
1256 | #: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:147 | 1253 | #: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:147 |
1257 | #: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:147 | 1254 | #: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:147 |
@@ -1259,6 +1256,11 @@ msgstr "Tout enregistrer" | |||
1259 | msgid "Delete" | 1256 | msgid "Delete" |
1260 | msgstr "Supprimer" | 1257 | msgstr "Supprimer" |
1261 | 1258 | ||
1259 | #: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:21 | ||
1260 | #: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:32 | ||
1261 | msgid "Save all" | ||
1262 | msgstr "Tout enregistrer" | ||
1263 | |||
1262 | #: tmp/export.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16 | 1264 | #: tmp/export.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16 |
1263 | msgid "Export Database" | 1265 | msgid "Export Database" |
1264 | msgstr "Exporter les données" | 1266 | msgstr "Exporter les données" |
@@ -1472,7 +1474,7 @@ msgstr "Afficher uniquement les liens publics" | |||
1472 | #: tmp/linklist.paging.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18 | 1474 | #: tmp/linklist.paging.b91ef64efc3688266305ea9b42e5017e.rtpl.php:18 |
1473 | #: tmp/linklist.paging.cedf684561d925457130839629000a81.rtpl.php:18 | 1475 | #: tmp/linklist.paging.cedf684561d925457130839629000a81.rtpl.php:18 |
1474 | msgid "Filter untagged links" | 1476 | msgid "Filter untagged links" |
1475 | msgstr "Filtrer par liens privés" | 1477 | msgstr "Filtrer par liens sans tag" |
1476 | 1478 | ||
1477 | #: tmp/linklist.paging.b91ef64efc3688266305ea9b42e5017e.rtpl.php:24 | 1479 | #: tmp/linklist.paging.b91ef64efc3688266305ea9b42e5017e.rtpl.php:24 |
1478 | #: tmp/linklist.paging.cedf684561d925457130839629000a81.rtpl.php:24 | 1480 | #: tmp/linklist.paging.cedf684561d925457130839629000a81.rtpl.php:24 |
diff --git a/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php b/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php index 770a16d7..a276d988 100644 --- a/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php +++ b/tests/front/controller/admin/ShaareManageControllerTest/DeleteBookmarkTest.php | |||
@@ -38,6 +38,8 @@ class DeleteBookmarkTest extends TestCase | |||
38 | { | 38 | { |
39 | $parameters = ['id' => '123']; | 39 | $parameters = ['id' => '123']; |
40 | 40 | ||
41 | $this->container->environment['HTTP_REFERER'] = 'http://shaarli/subfolder/shaare/abcdef'; | ||
42 | |||
41 | $request = $this->createMock(Request::class); | 43 | $request = $this->createMock(Request::class); |
42 | $request | 44 | $request |
43 | ->method('getParam') | 45 | ->method('getParam') |
@@ -90,6 +92,8 @@ class DeleteBookmarkTest extends TestCase | |||
90 | { | 92 | { |
91 | $parameters = ['id' => '123 456 789']; | 93 | $parameters = ['id' => '123 456 789']; |
92 | 94 | ||
95 | $this->container->environment['HTTP_REFERER'] = 'http://shaarli/subfolder/?searchtags=abcdef'; | ||
96 | |||
93 | $request = $this->createMock(Request::class); | 97 | $request = $this->createMock(Request::class); |
94 | $request | 98 | $request |
95 | ->method('getParam') | 99 | ->method('getParam') |
@@ -152,7 +156,7 @@ class DeleteBookmarkTest extends TestCase | |||
152 | $result = $this->controller->deleteBookmark($request, $response); | 156 | $result = $this->controller->deleteBookmark($request, $response); |
153 | 157 | ||
154 | static::assertSame(302, $result->getStatusCode()); | 158 | static::assertSame(302, $result->getStatusCode()); |
155 | static::assertSame(['/subfolder/'], $result->getHeader('location')); | 159 | static::assertSame(['/subfolder/?searchtags=abcdef'], $result->getHeader('location')); |
156 | } | 160 | } |
157 | 161 | ||
158 | /** | 162 | /** |