aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-11-05 15:28:36 +0100
committerNicolas Lœuillet <nicolas@loeuillet.org>2020-04-28 10:13:57 +0200
commiteb7b632ee6f898dbe5c861623f59fa62fc4d5235 (patch)
tree9ff38b5481718f705a2eb866cd947c349360642f
parent96295ec84796551590d24a3516ccbba43469b6f6 (diff)
downloadwallabag-eb7b632ee6f898dbe5c861623f59fa62fc4d5235.tar.gz
wallabag-eb7b632ee6f898dbe5c861623f59fa62fc4d5235.tar.zst
wallabag-eb7b632ee6f898dbe5c861623f59fa62fc4d5235.zip
Added translations and tweak parameters
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php6
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.da.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.de.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.en.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.es.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml12
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.it.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml10
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig9
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig2
15 files changed, 129 insertions, 10 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index ff90957b..5407d065 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -532,9 +532,9 @@ class EntryController extends Controller
532 $searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : ''); 532 $searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : '');
533 $currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : ''); 533 $currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : '');
534 534
535 $sortBy = 'id'; 535 $sortBy = 'createdAt';
536 if (in_array($request->get('sort', 'id'), ['id', 'created_at', 'title', 'updated_at'], true)) { 536 if (in_array($request->get('sort', 'createdAt'), ['id', 'createdAt', 'title', 'updatedAt'], true)) {
537 $sortBy = $request->get('sort', 'id'); 537 $sortBy = $request->get('sort', 'createdAt');
538 } 538 }
539 539
540 $direction = 'DESC' === $request->get('direction') ? 'DESC' : 'ASC'; 540 $direction = 'DESC' === $request->get('direction') ? 'DESC' : 'ASC';
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
index 670c7f9d..0c35f2f9 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 # export: 'Export' 43 # export: 'Export'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Indtast søgning' 47 input_label: 'Indtast søgning'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Ryd' 258 clear: 'Ryd'
258 filter: 'Filter' 259 filter: 'Filter'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 # back_to_top: 'Back to top' 271 # back_to_top: 'Back to top'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
index 92984f46..73ecebb9 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 export: 'Exportieren' 43 export: 'Exportieren'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Suchbegriff hier eingeben' 47 input_label: 'Suchbegriff hier eingeben'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Zurücksetzen' 258 clear: 'Zurücksetzen'
258 filter: 'Filtern' 259 filter: 'Filtern'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Nach oben' 271 back_to_top: 'Nach oben'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
index 0a5af085..d5173707 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
@@ -42,6 +42,7 @@ menu:
42 random_entry: Jump to a random entry from that list 42 random_entry: Jump to a random entry from that list
43 export: 'Export' 43 export: 'Export'
44 account: 'My account' 44 account: 'My account'
45 sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Enter your search here' 47 input_label: 'Enter your search here'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Clear' 258 clear: 'Clear'
258 filter: 'Filter' 259 filter: 'Filter'
260 sort:
261 title: 'Sort options'
262 status_label: 'Sort by'
263 by:
264 creation_date: 'Creation date'
265 title: 'Title'
266 last_updated: 'Last updated'
267 ascending: 'Asencending'
268 descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Back to top' 271 back_to_top: 'Back to top'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
index cdc51a2b..1d834290 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
@@ -42,6 +42,7 @@ menu:
42 random_entry: 'Ir a un artículo aleatório de esta lista' 42 random_entry: 'Ir a un artículo aleatório de esta lista'
43 export: 'Exportar' 43 export: 'Exportar'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Introduzca su búsqueda aquí' 47 input_label: 'Introduzca su búsqueda aquí'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Limpiar' 258 clear: 'Limpiar'
258 filter: 'Filtrar' 259 filter: 'Filtrar'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Regrese al principio' 271 back_to_top: 'Regrese al principio'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
index 581e053a..46e96c04 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 export: 'برون‌بری' 43 export: 'برون‌بری'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'جستجوی خود را این‌جا بنویسید:' 47 input_label: 'جستجوی خود را این‌جا بنویسید:'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'از نو' 258 clear: 'از نو'
258 filter: 'فیلتر' 259 filter: 'فیلتر'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'بازگشت به بالای صفحه' 271 back_to_top: 'بازگشت به بالای صفحه'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
index 2dd92456..dc75f5c1 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
@@ -42,6 +42,7 @@ menu:
42 random_entry: Aller à un article aléatoire de cette liste 42 random_entry: Aller à un article aléatoire de cette liste
43 export: "Exporter" 43 export: "Exporter"
44 account: "Mon compte" 44 account: "Mon compte"
45 sort_entries: 'Trier les articles'
45 search_form: 46 search_form:
46 input_label: "Saisissez votre terme de recherche" 47 input_label: "Saisissez votre terme de recherche"
47 48
@@ -234,7 +235,7 @@ entry:
234 export_title: "Exporter" 235 export_title: "Exporter"
235 filters: 236 filters:
236 title: "Filtres" 237 title: "Filtres"
237 status_label: "Status" 238 status_label: "Statut"
238 archived_label: "Lus" 239 archived_label: "Lus"
239 starred_label: "Favoris" 240 starred_label: "Favoris"
240 unread_label: "Non lus" 241 unread_label: "Non lus"
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: "Effacer" 258 clear: "Effacer"
258 filter: "Filtrer" 259 filter: "Filtrer"
260 sort:
261 title: 'Options de tri'
262 status_label: 'Trier par'
263 by:
264 creation_date: 'Date de création'
265 title: 'Titre'
266 last_updated: 'Dernière mise à jour'
267 ascending: 'Ascendant'
268 descending: 'Descendant'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: "Revenir en haut" 271 back_to_top: "Revenir en haut"
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
index a05a6e6e..804871b1 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 export: 'Esporta' 43 export: 'Esporta'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Inserisci qui la tua ricerca' 47 input_label: 'Inserisci qui la tua ricerca'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Pulisci' 258 clear: 'Pulisci'
258 filter: 'Filtra' 259 filter: 'Filtra'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: "Torna all'inizio" 271 back_to_top: "Torna all'inizio"
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
index 2c7af685..93b844d8 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
@@ -42,6 +42,7 @@ menu:
42 random_entry: "Sautar a un article a l'azard" 42 random_entry: "Sautar a un article a l'azard"
43 export: 'Exportar' 43 export: 'Exportar'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Picatz vòstre mot-clau a cercar aquí' 47 input_label: 'Picatz vòstre mot-clau a cercar aquí'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Escafar' 258 clear: 'Escafar'
258 filter: 'Filtrar' 259 filter: 'Filtrar'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Tornar en naut' 271 back_to_top: 'Tornar en naut'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
index 877ff4aa..0f0d8378 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 export: 'Eksportuj' 43 export: 'Eksportuj'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Wpisz swoje zapytanie tutaj' 47 input_label: 'Wpisz swoje zapytanie tutaj'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Wyczyść' 258 clear: 'Wyczyść'
258 filter: 'Filtruj' 259 filter: 'Filtruj'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Wróć na górę' 271 back_to_top: 'Wróć na górę'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
index fc7239d9..5a403c23 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml
@@ -42,6 +42,7 @@ menu:
42 random_entry: Ir para um artigo aleatório desta lista 42 random_entry: Ir para um artigo aleatório desta lista
43 export: 'Exportar' 43 export: 'Exportar'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Digite aqui sua pesquisa' 47 input_label: 'Digite aqui sua pesquisa'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Limpar' 258 clear: 'Limpar'
258 filter: 'Filtro' 259 filter: 'Filtro'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 back_to_top: 'Voltar ao topo' 271 back_to_top: 'Voltar ao topo'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
index 9b0cea50..55fcead7 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 # export: 'Export' 43 # export: 'Export'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Introdu căutarea ta' 47 input_label: 'Introdu căutarea ta'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Șterge' 258 clear: 'Șterge'
258 filter: 'Filtru' 259 filter: 'Filtru'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 # back_to_top: 'Back to top' 271 # back_to_top: 'Back to top'
diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
index f69f3c32..0f5655fa 100644
--- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
+++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
@@ -42,6 +42,7 @@ menu:
42 # random_entry: Jump to a random entry from that list 42 # random_entry: Jump to a random entry from that list
43 export: 'Dışa Aktar' 43 export: 'Dışa Aktar'
44 # account: 'My account' 44 # account: 'My account'
45 # sort_entries: 'Sort entries'
45 search_form: 46 search_form:
46 input_label: 'Aramak istediğiniz herhangi bir şey yazın' 47 input_label: 'Aramak istediğiniz herhangi bir şey yazın'
47 48
@@ -256,6 +257,15 @@ entry:
256 action: 257 action:
257 clear: 'Temizle' 258 clear: 'Temizle'
258 filter: 'Filtrele' 259 filter: 'Filtrele'
260 sort:
261 # title: 'Sort options'
262 # status_label: 'Sort by'
263 # by:
264 # creation_date: 'Creation date'
265 # title: 'Title'
266 # last_updated: 'Last updated'
267 #ascending: 'Asencending'
268 # descending: 'Descending'
259 view: 269 view:
260 left_menu: 270 left_menu:
261 # back_to_top: 'Back to top' 271 # back_to_top: 'Back to top'
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
index 7e48619e..deeb19a3 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
@@ -216,17 +216,16 @@
216 216
217 <div class="row"> 217 <div class="row">
218 <div class="col s12"> 218 <div class="col s12">
219 <label>{{ 'entry.sort_by.status_label'|trans }}</label> 219 <label>{{ 'entry.sort.status_label'|trans }}</label>
220 </div> 220 </div>
221 221
222 <div class="input-field col s12 with-checkbox"> 222 <div class="input-field col s12 with-checkbox">
223 <select> 223 <select>
224 <option value="" disabled selected>Creation date</option> 224 <option value="" disabled selected>Creation date</option>
225 <option value="1">Sort by creation date</option> 225 <option value="createdAt">{{ 'entry.sort.by.creation_date' | trans }}</option>
226 <option value="2">Sort by title</option> 226 <option value="title">{{ 'entry.sort.by.title' | trans }}</option>
227 <option value="3">Sort by last updated</option> 227 <option value="updatedAt">{{ 'entry.sort.by.last_updated' | trans }}</option>
228 </select> 228 </select>
229 {{ form_label(form.isArchived) }}
230 </div> 229 </div>
231 230
232 <div class="col s12"> 231 <div class="col s12">
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
index b4c1a628..95d7da9a 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
@@ -93,7 +93,7 @@
93 </a> 93 </a>
94 </li> 94 </li>
95 <li id="button_sort"> 95 <li id="button_sort">
96 <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="sort" class="nav-panel-menu button-collapse-right"> 96 <a title="{{ 'menu.top.sort_entries'|trans }}" href="#" data-activates="sort" class="nav-panel-menu button-collapse-right">
97 <i class="material-icons">sort_by_alpha</i> 97 <i class="material-icons">sort_by_alpha</i>
98 </a> 98 </a>
99 </li> 99 </li>