aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-10 17:40:26 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-27 20:11:30 +0100
commit5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1 (patch)
tree2236e571035332a63f87a09222f2278b93f63515 /inc
parentb8e5a253ab5521ce2be6c0d3e04e0101527df3c1 (diff)
downloadShaarli-5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1.tar.gz
Shaarli-5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1.tar.zst
Shaarli-5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1.zip
Feature: bulk creation of bookmarks
This changes creates a new form in addlink page allowing to create multiple bookmarks at once more easily. It focuses on re-using as much existing code and template component as possible. These changes includes: - a new form in addlink (hidden behind a button by default), containing a text area for URL, and tags/private status to apply to created links - this form displays a new template called editlink.batch, itself including editlink template multiple times - User interation in this new templates are handle by a new JS script (shaare-batch.js) making AJAX requests, and therefore does not need page reloading - ManageShaareController has been split into 3 distinct controllers: + ShaareAdd: displays addlink template + ShaareManage: various operation applied on existing shaares (change visibility, pin, deletion, etc.) + ShaarePublish: handles creation/edit forms and saving Shaare's form - Updated translations Fixes #137
Diffstat (limited to 'inc')
-rw-r--r--inc/languages/fr/LC_MESSAGES/shaarli.po109
1 files changed, 74 insertions, 35 deletions
diff --git a/inc/languages/fr/LC_MESSAGES/shaarli.po b/inc/languages/fr/LC_MESSAGES/shaarli.po
index 6d4ff0bd..60ea7a97 100644
--- a/inc/languages/fr/LC_MESSAGES/shaarli.po
+++ b/inc/languages/fr/LC_MESSAGES/shaarli.po
@@ -347,43 +347,16 @@ 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:29
351#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13
352msgid "Shaare a new link"
353msgstr "Partager un nouveau lien"
354
355#: application/front/controller/admin/ManageShaareController.php:64 350#: application/front/controller/admin/ManageShaareController.php:64
356msgid "Note: "
357msgstr "Note : "
358
359#: application/front/controller/admin/ManageShaareController.php:95 351#: application/front/controller/admin/ManageShaareController.php:95
360#: application/front/controller/admin/ManageShaareController.php:193 352#: application/front/controller/admin/ManageShaareController.php:193
361#: application/front/controller/admin/ManageShaareController.php:262 353#: application/front/controller/admin/ManageShaareController.php:262
362#: application/front/controller/admin/ManageShaareController.php:302 354#: application/front/controller/admin/ManageShaareController.php:302
363#, php-format
364msgid "Bookmark with identifier %s could not be found."
365msgstr "Le lien avec l'identifiant %s n'a pas pu être trouvé."
366
367#: application/front/controller/admin/ManageShaareController.php:181 355#: application/front/controller/admin/ManageShaareController.php:181
368#: application/front/controller/admin/ManageShaareController.php:239 356#: application/front/controller/admin/ManageShaareController.php:239
369msgid "Invalid bookmark ID provided."
370msgstr "ID du lien non valide."
371
372#: application/front/controller/admin/ManageShaareController.php:247 357#: application/front/controller/admin/ManageShaareController.php:247
373msgid "Invalid visibility provided."
374msgstr "Visibilité du lien non valide."
375
376#: application/front/controller/admin/ManageShaareController.php:378 358#: application/front/controller/admin/ManageShaareController.php:378
377#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:171
378msgid "Edit"
379msgstr "Modifier"
380
381#: application/front/controller/admin/ManageShaareController.php:381 359#: application/front/controller/admin/ManageShaareController.php:381
382#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:28
383#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:28
384msgid "Shaare"
385msgstr "Shaare"
386
387#: application/front/controller/admin/ManageTagController.php:29 360#: application/front/controller/admin/ManageTagController.php:29
388#: tmp/changetag.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13 361#: tmp/changetag.b91ef64efc3688266305ea9b42e5017e.rtpl.php:13
389#: tmp/tools.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42 362#: tmp/tools.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42
@@ -456,6 +429,29 @@ msgstr "Le cache des miniatures a été vidé."
456msgid "Shaarli's cache folder has been cleared!" 429msgid "Shaarli's cache folder has been cleared!"
457msgstr "Le dossier de cache de Shaarli a été vidé !" 430msgstr "Le dossier de cache de Shaarli a été vidé !"
458 431
432#, php-format
433msgid "Bookmark with identifier %s could not be found."
434msgstr "Le lien avec l'identifiant %s n'a pas pu être trouvé."
435
436#: application/front/controller/admin/ShaareManageController.php:101
437msgid "Invalid visibility provided."
438msgstr "Visibilité du lien non valide."
439
440#: application/front/controller/admin/ShaarePublishController.php:154
441#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:171
442msgid "Edit"
443msgstr "Modifier"
444
445#: application/front/controller/admin/ShaarePublishController.php:157
446#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:28
447#: tmp/page.header.cedf684561d925457130839629000a81.rtpl.php:28
448msgid "Shaare"
449msgstr "Shaare"
450
451#: application/front/controller/admin/ShaarePublishController.php:184
452msgid "Note: "
453msgstr "Note : "
454
459#: application/front/controller/admin/ThumbnailsController.php:37 455#: application/front/controller/admin/ThumbnailsController.php:37
460#: tmp/thumbnails.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14 456#: tmp/thumbnails.b91ef64efc3688266305ea9b42e5017e.rtpl.php:14
461msgid "Thumbnails update" 457msgid "Thumbnails update"
@@ -941,6 +937,48 @@ msgstr "Désolé, il y a rien à voir ici."
941msgid "URL or leave empty to post a note" 937msgid "URL or leave empty to post a note"
942msgstr "URL ou laisser vide pour créer une note" 938msgstr "URL ou laisser vide pour créer une note"
943 939
940#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:29
941msgid "BULK CREATION"
942msgstr "CRÉATION DE MASSE"
943
944#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:40
945msgid "Metadata asynchronous retrieval is disabled."
946msgstr "La récupération asynchrone des meta-données est désactivée."
947
948#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:42
949msgid ""
950"We recommend that you enable the setting <em>general > "
951"enable_async_metadata</em> in your configuration file to use bulk link "
952"creation."
953msgstr ""
954"Nous recommandons d'activer le paramètre <em>general > "
955"enable_async_metadata</em> dans votre fichier de configuration pour utiliser "
956"la création de masse."
957
958#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:56
959msgid "Shaare multiple new links"
960msgstr "Partagez plusieurs nouveaux liens"
961
962#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:59
963msgid "Add one URL per line to create multiple bookmarks."
964msgstr "Ajouter une URL par ligne pour créer plusieurs marque-pages."
965
966#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:63
967#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:67
968msgid "Tags"
969msgstr "Tags"
970
971#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:73
972#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:83
973#: tmp/export.b91ef64efc3688266305ea9b42e5017e.rtpl.php:35
974#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:169
975msgid "Private"
976msgstr "Privé"
977
978#: tmp/addlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:78
979msgid "Add links"
980msgstr "Ajouter des liens"
981
944#: tmp/changepassword.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16 982#: tmp/changepassword.b91ef64efc3688266305ea9b42e5017e.rtpl.php:16
945msgid "Current password" 983msgid "Current password"
946msgstr "Mot de passe actuel" 984msgstr "Mot de passe actuel"
@@ -1187,15 +1225,7 @@ msgid "Description"
1187msgstr "Description" 1225msgstr "Description"
1188 1226
1189#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:58 1227#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:58
1190msgid "Tags"
1191msgstr "Tags"
1192
1193#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:74 1228#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:74
1194#: tmp/export.b91ef64efc3688266305ea9b42e5017e.rtpl.php:35
1195#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:169
1196msgid "Private"
1197msgstr "Privé"
1198
1199#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:80 1229#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:80
1200msgid "Description will be rendered with" 1230msgid "Description will be rendered with"
1201msgstr "La description sera générée avec" 1231msgstr "La description sera générée avec"
@@ -1209,9 +1239,18 @@ msgid "Markdown syntax"
1209msgstr "la syntaxe Markdown" 1239msgstr "la syntaxe Markdown"
1210 1240
1211#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:102 1241#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:102
1242msgid "Cancel"
1243msgstr "Annuler"
1244
1245#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:121
1212msgid "Apply Changes" 1246msgid "Apply Changes"
1213msgstr "Appliquer les changements" 1247msgstr "Appliquer les changements"
1214 1248
1249#: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:12
1250#: tmp/editlink.batch.b91ef64efc3688266305ea9b42e5017e.rtpl.php:23
1251msgid "Save all"
1252msgstr "Tout enregistrer"
1253
1215#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:107 1254#: tmp/editlink.b91ef64efc3688266305ea9b42e5017e.rtpl.php:107
1216#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:173 1255#: tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php:173
1217#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:147 1256#: tmp/page.header.b91ef64efc3688266305ea9b42e5017e.rtpl.php:147