Skip to content

Commit 6b140f2

Browse files
committed
v 8.2.0
- Added new error messages for user access and invalid tab in wpuoptions.php - Improved input validation and sanitization in various functions
1 parent 700acbc commit 6b140f2

5 files changed

Lines changed: 124 additions & 76 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 WPUtilities
3+
Copyright (c) 2026 WPUtilities
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lang/wpuoptions-fr_FR.l10n.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
return ['domain'=>NULL,'plural-forms'=>NULL,'messages'=>['Friendly interface for website options'=>'Interface conviviale pour les options de site','Site options'=>'Options du site','Import'=>'Importer','Export'=>'Exporter','Options'=>'Options','Warning : The saved options may be different than yours. Maybe someone changed them while you were editing ?'=>'Avertissement : Les options enregistrées peuvent être différentes des vôtres. Peut-être ont-elles été modifiées pendant que vous éditiez ?','No fields for the moment'=>'Aucun champ pour le moment','Click below to download a .json file containing all your website\'s options.'=>'Cliquez ci-dessous pour télécharger un fichier .json contenant toutes les options de votre site.','Default box'=>'Box par défaut','Export options'=>'Exporter les options','The file has been successfully imported.'=>'Le fichier a été importé avec succès.','The file has not been imported.'=>'Le fichier n’a pas été importé.','Upload a .json file (generated by WPU Options) to import your website\'s options.'=>'Transférez un fichier .json (généré par WPU Options) pour importer les options de votre site.','Import options file'=>'Importer le fichier d\'options','Error in the form.'=>'Erreur dans le formulaire.','The field "%s" must not be empty'=>'Le champ "%s" ne doit pas être vide','The field "%s" has been updated.'=>'Le champ "%s" a été mis à jour.','The field "%s" has not been updated, because it\'s not valid.'=>'Le champ "%s" n’a pas été mis à jour, car il est invalide.','Success!'=>'Succès !','Fail!'=>'Echec !','Update'=>'Mettre à jour','Edit this text'=>'Modifier ce texte','Cancel edition'=>'Annuler l\'édition','Add a picture'=>'Ajouter une image','Change this picture'=>'Modifier cette image','Do you really want to remove this image ?'=>'Voulez-vous vraiment retirer cette image ?','Add a file'=>'Ajouter un fichier','Change this file'=>'Modifier ce fichier','Do you really want to remove this file ?'=>'Voulez-vous vraiment retirer ce fichier ?','maleSelect a %s'=>'Sélectionner un %s','femaleSelect a %s'=>'Sélectionner une %s','Select some %s'=>'Sélectionnez des %s','Select a value'=>'Sélectionner une valeur','Add a link'=>'Ajouter un lien','Edit link'=>'Modifier le lien','Delete link'=>'Supprimer le lien','No'=>'Non','Yes'=>'Oui','Edit Site:'=>'Modifier le site :','Incorrect site ID.'=>'ID de site incorrect.','The requested site does not exist.'=>'Le site recherché n\'existe pas.'],'language'=>'fr_FR','x-generator'=>'Poedit 3.6'];
2+
return ['domain'=>NULL,'plural-forms'=>NULL,'messages'=>['Friendly interface for website options'=>'Interface conviviale pour les options de site','Site options'=>'Options du site','Import'=>'Importer','Export'=>'Exporter','Sorry, you are not allowed to access this page.'=>'Désolé, vous n\'êtes pas autorisé à accéder à cette page.','Invalid tab.'=>'Onglet non valide.','Options'=>'Options','Warning : The saved options may be different than yours. Maybe someone changed them while you were editing ?'=>'Avertissement : Les options enregistrées peuvent être différentes des vôtres. Peut-être ont-elles été modifiées pendant que vous éditiez ?','No fields for the moment'=>'Aucun champ pour le moment','Click below to download a .json file containing all your website\'s options.'=>'Cliquez ci-dessous pour télécharger un fichier .json contenant toutes les options de votre site.','Boxes'=>'Boîtes','Default box'=>'Box par défaut','Export options'=>'Exporter les options','The file has been successfully imported.'=>'Le fichier a été importé avec succès.','The file has not been imported.'=>'Le fichier n’a pas été importé.','Upload a .json file (generated by WPU Options) to import your website\'s options.'=>'Transférez un fichier .json (généré par WPU Options) pour importer les options de votre site.','Import options file'=>'Importer le fichier d\'options','Error in the form.'=>'Erreur dans le formulaire.','The field "%s" must not be empty'=>'Le champ "%s" ne doit pas être vide','The field "%s" has been updated.'=>'Le champ "%s" a été mis à jour.','The field "%s" has not been updated, because it\'s not valid.'=>'Le champ "%s" n’a pas été mis à jour, car il est invalide.','Success!'=>'Succès !','Fail!'=>'Echec !','Update'=>'Mettre à jour','Edit this text'=>'Modifier ce texte','Cancel edition'=>'Annuler l\'édition','Add a picture'=>'Ajouter une image','Change this picture'=>'Modifier cette image','Do you really want to remove this image ?'=>'Voulez-vous vraiment retirer cette image ?','Add a file'=>'Ajouter un fichier','Change this file'=>'Modifier ce fichier','Do you really want to remove this file ?'=>'Voulez-vous vraiment retirer ce fichier ?','maleSelect a %s'=>'Sélectionner un %s','femaleSelect a %s'=>'Sélectionner une %s','Select some %s'=>'Sélectionnez des %s','Select a value'=>'Sélectionner une valeur','Add a link'=>'Ajouter un lien','Edit link'=>'Modifier le lien','Delete link'=>'Supprimer le lien','No'=>'Non','Yes'=>'Oui','Edit Site:'=>'Modifier le site :','Incorrect site ID.'=>'ID de site incorrect.','The requested site does not exist.'=>'Le site recherché n\'existe pas.'],'language'=>'fr_FR','x-generator'=>'Poedit 3.9'];

lang/wpuoptions-fr_FR.mo

214 Bytes
Binary file not shown.

lang/wpuoptions-fr_FR.po

Lines changed: 54 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: WPU Options\n"
4-
"POT-Creation-Date: 2025-04-15 19:07+0200\n"
4+
"POT-Creation-Date: 2026-04-18 22:42+0200\n"
55
"PO-Revision-Date: \n"
66
"Last-Translator: Darklg <darklg.blog@gmail.com>\n"
77
"Language-Team: \n"
88
"Language: fr_FR\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"X-Generator: Poedit 3.6\n"
12+
"X-Generator: Poedit 3.9\n"
1313
"X-Poedit-SourceCharset: UTF-8\n"
1414
"X-Poedit-Basepath: .\n"
1515
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_n:1,2;esc_attr__\n"
@@ -19,182 +19,194 @@ msgstr ""
1919
msgid "Friendly interface for website options"
2020
msgstr "Interface conviviale pour les options de site"
2121

22-
#: .././wpuoptions.php:89
22+
#: .././wpuoptions.php:83
2323
msgid "Site options"
2424
msgstr "Options du site"
2525

26-
#: .././wpuoptions.php:243 .././wpuoptions.php:456
26+
#: .././wpuoptions.php:243 .././wpuoptions.php:458
2727
msgid "Import"
2828
msgstr "Importer"
2929

30-
#: .././wpuoptions.php:246 .././wpuoptions.php:419
30+
#: .././wpuoptions.php:246 .././wpuoptions.php:421
3131
msgid "Export"
3232
msgstr "Exporter"
3333

34-
#: .././wpuoptions.php:261
34+
#: .././wpuoptions.php:253
35+
msgid "Sorry, you are not allowed to access this page."
36+
msgstr "Désolé, vous n'êtes pas autorisé à accéder à cette page."
37+
38+
#: .././wpuoptions.php:257
39+
msgid "Invalid tab."
40+
msgstr "Onglet non valide."
41+
42+
#: .././wpuoptions.php:267
3543
msgid "Options"
3644
msgstr "Options"
3745

38-
#: .././wpuoptions.php:322
46+
#: .././wpuoptions.php:328
3947
msgid ""
4048
"Warning : The saved options may be different than yours. Maybe someone "
4149
"changed them while you were editing ?"
4250
msgstr ""
4351
"Avertissement : Les options enregistrées peuvent être différentes des "
4452
"vôtres. Peut-être ont-elles été modifiées pendant que vous éditiez ?"
4553

46-
#: .././wpuoptions.php:357 .././wpuoptions.php:1270
54+
#: .././wpuoptions.php:363 .././wpuoptions.php:1312
4755
msgid "No fields for the moment"
4856
msgstr "Aucun champ pour le moment"
4957

50-
#: .././wpuoptions.php:422
58+
#: .././wpuoptions.php:424
5159
msgid ""
5260
"Click below to download a .json file containing all your website's options."
5361
msgstr ""
5462
"Cliquez ci-dessous pour télécharger un fichier .json contenant toutes les "
5563
"options de votre site."
5664

57-
#: .././wpuoptions.php:441
65+
#: .././wpuoptions.php:425
66+
msgid "Boxes"
67+
msgstr "Boîtes"
68+
69+
#: .././wpuoptions.php:443
5870
msgid "Default box"
5971
msgstr "Box par défaut"
6072

61-
#: .././wpuoptions.php:446
73+
#: .././wpuoptions.php:448
6274
msgid "Export options"
6375
msgstr "Exporter les options"
6476

65-
#: .././wpuoptions.php:465
77+
#: .././wpuoptions.php:472
6678
msgid "The file has been successfully imported."
6779
msgstr "Le fichier a été importé avec succès."
6880

69-
#: .././wpuoptions.php:467
81+
#: .././wpuoptions.php:474
7082
msgid "The file has not been imported."
7183
msgstr "Le fichier n’a pas été importé."
7284

73-
#: .././wpuoptions.php:471
85+
#: .././wpuoptions.php:478
7486
msgid ""
7587
"Upload a .json file (generated by WPU Options) to import your website's "
7688
"options."
7789
msgstr ""
7890
"Transférez un fichier .json (généré par WPU Options) pour importer les "
7991
"options de votre site."
8092

81-
#: .././wpuoptions.php:475
93+
#: .././wpuoptions.php:482
8294
msgid "Import options file"
8395
msgstr "Importer le fichier d'options"
8496

85-
#: .././wpuoptions.php:502
97+
#: .././wpuoptions.php:509
8698
msgid "Error in the form."
8799
msgstr "Erreur dans le formulaire."
88100

89-
#: .././wpuoptions.php:552
101+
#: .././wpuoptions.php:559
90102
#, php-format
91103
msgid "The field \"%s\" must not be empty"
92104
msgstr "Le champ \"%s\" ne doit pas être vide"
93105

94-
#: .././wpuoptions.php:559
106+
#: .././wpuoptions.php:566
95107
#, php-format
96108
msgid "The field \"%s\" has been updated."
97109
msgstr "Le champ \"%s\" a été mis à jour."
98110

99-
#: .././wpuoptions.php:562
111+
#: .././wpuoptions.php:569
100112
#, php-format
101113
msgid "The field \"%s\" has not been updated, because it's not valid."
102114
msgstr "Le champ \"%s\" n’a pas été mis à jour, car il est invalide."
103115

104-
#: .././wpuoptions.php:570
116+
#: .././wpuoptions.php:577
105117
msgid "Success!"
106118
msgstr "Succès !"
107119

108-
#: .././wpuoptions.php:573
120+
#: .././wpuoptions.php:580
109121
msgid "Fail!"
110122
msgstr "Echec !"
111123

112-
#: .././wpuoptions.php:651
124+
#: .././wpuoptions.php:658
113125
msgid "Update"
114126
msgstr "Mettre à jour"
115127

116-
#: .././wpuoptions.php:794
128+
#: .././wpuoptions.php:801
117129
msgid "Edit this text"
118130
msgstr "Modifier ce texte"
119131

120-
#: .././wpuoptions.php:795
132+
#: .././wpuoptions.php:802
121133
msgid "Cancel edition"
122134
msgstr "Annuler l'édition"
123135

124-
#: .././wpuoptions.php:803
136+
#: .././wpuoptions.php:810
125137
msgid "Add a picture"
126138
msgstr "Ajouter une image"
127139

128-
#: .././wpuoptions.php:804
140+
#: .././wpuoptions.php:811
129141
msgid "Change this picture"
130142
msgstr "Modifier cette image"
131143

132-
#: .././wpuoptions.php:805
144+
#: .././wpuoptions.php:812
133145
msgid "Do you really want to remove this image ?"
134146
msgstr "Voulez-vous vraiment retirer cette image ?"
135147

136-
#: .././wpuoptions.php:807
148+
#: .././wpuoptions.php:814
137149
msgid "Add a file"
138150
msgstr "Ajouter un fichier"
139151

140-
#: .././wpuoptions.php:808
152+
#: .././wpuoptions.php:815
141153
msgid "Change this file"
142154
msgstr "Modifier ce fichier"
143155

144-
#: .././wpuoptions.php:809
156+
#: .././wpuoptions.php:816
145157
msgid "Do you really want to remove this file ?"
146158
msgstr "Voulez-vous vraiment retirer ce fichier ?"
147159

148-
#: .././wpuoptions.php:851 .././wpuoptions.php:900
160+
#: .././wpuoptions.php:858 .././wpuoptions.php:907
149161
#, php-format
150162
msgctxt "male"
151163
msgid "Select a %s"
152164
msgstr "Sélectionner un %s"
153165

154-
#: .././wpuoptions.php:853 .././wpuoptions.php:902
166+
#: .././wpuoptions.php:860 .././wpuoptions.php:909
155167
#, php-format
156168
msgctxt "female"
157169
msgid "Select a %s"
158170
msgstr "Sélectionner une %s"
159171

160-
#: .././wpuoptions.php:915
172+
#: .././wpuoptions.php:922
161173
#, php-format
162174
msgid "Select some %s"
163175
msgstr "Sélectionnez des %s"
164176

165-
#: .././wpuoptions.php:929
177+
#: .././wpuoptions.php:936
166178
msgid "Select a value"
167179
msgstr "Sélectionner une valeur"
168180

169-
#: .././wpuoptions.php:961
181+
#: .././wpuoptions.php:968
170182
msgid "Add a link"
171183
msgstr "Ajouter un lien"
172184

173-
#: .././wpuoptions.php:962
185+
#: .././wpuoptions.php:969
174186
msgid "Edit link"
175187
msgstr "Modifier le lien"
176188

177-
#: .././wpuoptions.php:964
189+
#: .././wpuoptions.php:971
178190
msgid "Delete link"
179191
msgstr "Supprimer le lien"
180192

181-
#: .././wpuoptions.php:1009
193+
#: .././wpuoptions.php:1016
182194
msgid "No"
183195
msgstr "Non"
184196

185-
#: .././wpuoptions.php:1010
197+
#: .././wpuoptions.php:1017
186198
msgid "Yes"
187199
msgstr "Oui"
188200

189-
#: .././wpuoptions.php:1287
201+
#: .././wpuoptions.php:1329
190202
msgid "Edit Site:"
191203
msgstr "Modifier le site :"
192204

193-
#: .././wpuoptions.php:1308
205+
#: .././wpuoptions.php:1350
194206
msgid "Incorrect site ID."
195207
msgstr "ID de site incorrect."
196208

197-
#: .././wpuoptions.php:1312
209+
#: .././wpuoptions.php:1354
198210
msgid "The requested site does not exist."
199211
msgstr "Le site recherché n'existe pas."
200212

0 commit comments

Comments
 (0)