Version Description
- improvement: youtube playlist URL will now be recognized automatically and rendered LYTE as well (hat tip to markothaler for proposing this)
- improvement: enter "none" in API key not to be bothered by the missing key notice any more (as requested by TheGiantRedFox1986)
- improvement: if no API key (or "none" for key) is provided, don't try to contact YouTube any more, instead just setting a thumbnail (does not work for playlists).
- cleanup: removed code that catered to YouTube API v2.
- updated French translations (merci Serge!)
Download this release
Release Info
Developer | futtta |
Plugin | WP YouTube Lyte |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- languages/wp-youtube-lyte-fr_BE.mo +0 -0
- languages/wp-youtube-lyte-fr_BE.po +79 -80
- languages/wp-youtube-lyte-fr_FR.mo +0 -0
- languages/wp-youtube-lyte-fr_FR.po +79 -80
- options.php +13 -13
- readme.txt +13 -3
- wp-youtube-lyte.php +47 -61
languages/wp-youtube-lyte-fr_BE.mo
CHANGED
Binary file
|
languages/wp-youtube-lyte-fr_BE.po
CHANGED
@@ -5,15 +5,15 @@ msgstr ""
|
|
5 |
"Project-Id-Version: WP YouTube Lyte 1.4.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-youtube-lyte\n"
|
7 |
"POT-Creation-Date: 2015-03-06 17:49:26+00:00\n"
|
8 |
-
"PO-Revision-Date: 2015-
|
9 |
-
"Last-Translator:
|
10 |
"Language-Team: Serge Bibauw <sbibauw@gmail.com>\n"
|
11 |
"Language: fr\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
-
"X-Generator: Poedit 1.5
|
17 |
|
18 |
#: options.php:21
|
19 |
msgid "Your WP YouTube Lyte cache has been succesfully cleared."
|
@@ -26,10 +26,10 @@ msgstr ""
|
|
26 |
|
27 |
#: options.php:61
|
28 |
msgid ""
|
29 |
-
"For WP YouTube Lyte to function optimally, you should enter an YouTube API "
|
30 |
-
"key "
|
31 |
msgstr ""
|
32 |
-
"Pour que WP YouTube Lyte fonctionne, vous devez entrer une
|
|
|
33 |
|
34 |
#: options.php:63
|
35 |
msgid "in the settings screen."
|
@@ -37,7 +37,7 @@ msgstr "dans l'écran de configuration."
|
|
37 |
|
38 |
#: options.php:76
|
39 |
msgid "WP YouTube Lyte got the following error back from the YouTube API: "
|
40 |
-
msgstr "WP YouTube Lyte a reçu cette erreur
|
41 |
|
42 |
#: options.php:91
|
43 |
msgid "WP YouTube Lyte Settings"
|
@@ -45,37 +45,37 @@ msgstr "Paramètres de WP YouTube Lyte"
|
|
45 |
|
46 |
#: options.php:98
|
47 |
msgid "Your YouTube API key."
|
48 |
-
msgstr "Votre
|
49 |
|
50 |
#: options.php:104
|
51 |
msgid "Please enter your YouTube API key."
|
52 |
-
msgstr "Veuillez entrer votre
|
53 |
|
54 |
#: options.php:105
|
55 |
msgid "API key"
|
56 |
-
msgstr "API
|
57 |
|
58 |
#: options.php:105
|
59 |
msgid "Test Key"
|
60 |
-
msgstr "
|
61 |
|
62 |
#: options.php:107
|
63 |
msgid ""
|
64 |
"WP YouTube Lyte uses YouTube's API to fetch information on each video. For "
|
65 |
"your site to use that API, you will have to <a href=\"https://console."
|
66 |
-
"developers.google.com/project/\" target=\"_blank\">register your site as a "
|
67 |
-
"
|
68 |
-
"
|
69 |
msgstr ""
|
70 |
"WP YouTube Lyte utilise l'API YouTube pour chercher de l'information sur "
|
71 |
-
"chaque vidéo. Pour que votre site puisse utiliser
|
72 |
"href=\"https://console.developers.google.com/project/\" target=\"_blank"
|
73 |
"\">enregistrer votre site comme nouvelle application</a>, activer l'API "
|
74 |
-
"YouTube
|
75 |
|
76 |
#: options.php:110
|
77 |
msgid "Great, your YouTube API key has been taken care of!"
|
78 |
-
msgstr "
|
79 |
|
80 |
#: options.php:115 options.php:117
|
81 |
msgid "Player size"
|
@@ -87,27 +87,27 @@ msgstr "Ajouter des liens sous les vidéos incrustées ?"
|
|
87 |
|
88 |
#: options.php:139
|
89 |
msgid "Show links?"
|
90 |
-
msgstr "Afficher
|
91 |
|
92 |
#: options.php:140
|
93 |
msgid "Show YouTube-link"
|
94 |
-
msgstr "
|
95 |
|
96 |
#: options.php:140
|
97 |
msgid " Add YouTube-link."
|
98 |
-
msgstr " Ajouter
|
99 |
|
100 |
#: options.php:141
|
101 |
msgid "Show YouTube and Ease YouTube link"
|
102 |
-
msgstr "
|
103 |
|
104 |
#: options.php:141
|
105 |
msgid ""
|
106 |
" Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/"
|
107 |
"index.html\" target=\"_blank\">Easy YouTube</a>-link."
|
108 |
msgstr ""
|
109 |
-
" Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-"
|
110 |
-
"
|
111 |
|
112 |
#: options.php:142
|
113 |
msgid "Don't include links."
|
@@ -123,7 +123,7 @@ msgstr "Position du lecteur :"
|
|
123 |
|
124 |
#: options.php:150
|
125 |
msgid "Left, center or right?"
|
126 |
-
msgstr "
|
127 |
|
128 |
#: options.php:151
|
129 |
msgid "Left"
|
@@ -143,7 +143,7 @@ msgstr "HD ou pas ?"
|
|
143 |
|
144 |
#: options.php:161
|
145 |
msgid "Enable HD?"
|
146 |
-
msgstr "Activer la HD"
|
147 |
|
148 |
#: options.php:161
|
149 |
msgid "Enable HD"
|
@@ -159,7 +159,7 @@ msgstr "Pas de HD (par défaut)"
|
|
159 |
|
160 |
#: options.php:167
|
161 |
msgid "Add microdata?"
|
162 |
-
msgstr "Ajouter des micro-
|
163 |
|
164 |
#: options.php:170
|
165 |
msgid "Add video microdata to the HTML?"
|
@@ -167,7 +167,7 @@ msgstr "Ajouter des micro-données au code HTML ? "
|
|
167 |
|
168 |
#: options.php:171
|
169 |
msgid "Sure, add microdata!"
|
170 |
-
msgstr "
|
171 |
|
172 |
#: options.php:171 options.php:181
|
173 |
msgid "Yes (default)"
|
@@ -175,7 +175,7 @@ msgstr "Oui (par défaut)"
|
|
175 |
|
176 |
#: options.php:172
|
177 |
msgid "No microdata in my HTML please."
|
178 |
-
msgstr "Non, pas de micro-données."
|
179 |
|
180 |
#: options.php:172
|
181 |
msgid "No microdata, thanks."
|
@@ -187,11 +187,11 @@ msgstr "Agir aussi sur les liens YouTube normaux ?"
|
|
187 |
|
188 |
#: options.php:181
|
189 |
msgid "That would be great!"
|
190 |
-
msgstr "Ce serait magnifique!"
|
191 |
|
192 |
#: options.php:182
|
193 |
msgid "No, I'll stick to httpv or shortcodes."
|
194 |
-
msgstr "Non, je préfère les liens httpv ou les \"shortcodes\""
|
195 |
|
196 |
#: options.php:182
|
197 |
msgid "No thanks."
|
@@ -209,7 +209,6 @@ msgstr "Enregistrer les modifications"
|
|
209 |
msgid "futtta about"
|
210 |
msgstr "À propos de futtta"
|
211 |
|
212 |
-
#. #-#-#-#-# plugin.pot (WP YouTube Lyte 1.5.0) #-#-#-#-#
|
213 |
#. Plugin Name of the plugin/theme
|
214 |
#: options.php:208
|
215 |
msgid "WP YouTube Lyte"
|
@@ -221,7 +220,7 @@ msgstr "WordPress"
|
|
221 |
|
222 |
#: options.php:210
|
223 |
msgid "Web Technology"
|
224 |
-
msgstr "Technologie
|
225 |
|
226 |
#: options.php:214
|
227 |
msgid "Do not donate for this plugin!"
|
@@ -229,19 +228,19 @@ msgstr "Ne pas donner pour ce plugin !"
|
|
229 |
|
230 |
#: options.php:228
|
231 |
msgid "Checking your key ..."
|
232 |
-
msgstr "
|
233 |
|
234 |
#: options.php:242
|
235 |
msgid "That does not seem to be a correct API key!"
|
236 |
-
msgstr "
|
237 |
|
238 |
#: options.php:283
|
239 |
msgid "API seems OK, you can Save Changes below now."
|
240 |
-
msgstr "API
|
241 |
|
242 |
#: options.php:285
|
243 |
msgid "API key not OK, your key seems to "
|
244 |
-
msgstr "API
|
245 |
|
246 |
#: options.php:288
|
247 |
msgid "be invalid."
|
@@ -249,42 +248,43 @@ msgstr "être invalide."
|
|
249 |
|
250 |
#: options.php:291
|
251 |
msgid "be valid, but restricted to an IP-address which is not your server's."
|
252 |
-
msgstr "être valide, mais n'est pas
|
253 |
|
254 |
#: options.php:292
|
255 |
msgid "Try changing the allowed IP for your API key to include this one: "
|
256 |
-
msgstr "
|
|
|
|
|
257 |
|
258 |
#: options.php:296
|
259 |
msgid "have expired, please check in the Google Developer Console."
|
260 |
-
msgstr "
|
261 |
|
262 |
#: options.php:302
|
263 |
msgid ""
|
264 |
-
"be correct, but seems to have exceeded the number of requests that can be "
|
265 |
-
"
|
266 |
-
msgstr ""
|
267 |
-
"être correcte, mais as surpassé la limite de nombre de requêtes permis."
|
268 |
|
269 |
#: options.php:305
|
270 |
msgid "probably work, but as the video with id "
|
271 |
-
msgstr "
|
272 |
|
273 |
#: options.php:307
|
274 |
msgid " was not found we cannot be sure, please try again."
|
275 |
-
msgstr "n'a pas été
|
276 |
|
277 |
#: options.php:310
|
278 |
msgid "be faulty, with YouTube API returning reason: "
|
279 |
-
msgstr "être invalide
|
280 |
|
281 |
#: options.php:315
|
282 |
msgid ""
|
283 |
"Something went wrong, WP YouTube Lyte might not have been able to retrieve "
|
284 |
"information from the YouTube API, got error: "
|
285 |
msgstr ""
|
286 |
-
"Il y
|
287 |
-
"
|
288 |
|
289 |
#: player_sizes.inc.php:11
|
290 |
msgid "Mini 16:9 player"
|
@@ -300,8 +300,7 @@ msgstr "Petit lecteur 16:9"
|
|
300 |
|
301 |
#: player_sizes.inc.php:29
|
302 |
msgid "Standard value, YouTube default for 4:3-ratio video"
|
303 |
-
msgstr ""
|
304 |
-
"Valeur standard, configuration par défaut de YouTube pour les vidéos 4:3"
|
305 |
|
306 |
#: player_sizes.inc.php:35
|
307 |
msgid "YouTube default for 16:9-ratio video"
|
@@ -407,41 +406,41 @@ msgstr "http://blog.futtta.be/"
|
|
407 |
#~ "depending on the settings below."
|
408 |
#~ msgstr ""
|
409 |
#~ "WP YouTube Lyte insère des \"Incrustations Lite YouTube© dans votre blog. "
|
410 |
-
#~ "Ceux-ci ont l'apparence d'incrustrations (<em>embed</em>) YouTube "
|
411 |
-
#~ "
|
412 |
-
#~ "
|
413 |
-
#~ "
|
414 |
-
#~ "
|
415 |
-
#~ "
|
416 |
-
#~ "
|
417 |
-
#~ "\"
|
418 |
-
#~ "
|
419 |
|
420 |
#~ msgid ""
|
421 |
-
#~ "You can place video and audio in your posts and pages by adding one or "
|
422 |
-
#~ "
|
423 |
-
#~ "
|
424 |
-
#~ "
|
425 |
-
#~ "
|
426 |
-
#~ "
|
427 |
#~ "list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only "
|
428 |
#~ "player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?"
|
429 |
-
#~ "v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress."
|
430 |
-
#~ "
|
431 |
-
#~ "
|
432 |
#~ msgstr ""
|
433 |
-
#~ "Vous pouvez placer de la vidéo et de l'audio dans vos messages et pages "
|
434 |
-
#~ "
|
435 |
-
#~ "http<strong>a</strong> à votre texte. Ils seront automatiquement "
|
436 |
-
#~ "
|
437 |
-
#~ "
|
438 |
-
#~ "
|
439 |
-
#~ "
|
440 |
-
#~ "
|
441 |
-
#~ "<em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. "
|
442 |
-
#~ "
|
443 |
-
#~ "
|
444 |
-
#~ "
|
445 |
|
446 |
#~ msgid ""
|
447 |
#~ "You can modify WP-YouTube-Lyte's behaviour by changing the following "
|
5 |
"Project-Id-Version: WP YouTube Lyte 1.4.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-youtube-lyte\n"
|
7 |
"POT-Creation-Date: 2015-03-06 17:49:26+00:00\n"
|
8 |
+
"PO-Revision-Date: 2015-04-14 13:59+0100\n"
|
9 |
+
"Last-Translator: Serge Bibauw <sbibauw@gmail.com>\n"
|
10 |
"Language-Team: Serge Bibauw <sbibauw@gmail.com>\n"
|
11 |
"Language: fr\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
+
"X-Generator: Poedit 1.7.5\n"
|
17 |
|
18 |
#: options.php:21
|
19 |
msgid "Your WP YouTube Lyte cache has been succesfully cleared."
|
26 |
|
27 |
#: options.php:61
|
28 |
msgid ""
|
29 |
+
"For WP YouTube Lyte to function optimally, you should enter an YouTube API key "
|
|
|
30 |
msgstr ""
|
31 |
+
"Pour que WP YouTube Lyte fonctionne de manière optimale, vous devez entrer une "
|
32 |
+
"clé API YouTube"
|
33 |
|
34 |
#: options.php:63
|
35 |
msgid "in the settings screen."
|
37 |
|
38 |
#: options.php:76
|
39 |
msgid "WP YouTube Lyte got the following error back from the YouTube API: "
|
40 |
+
msgstr "WP YouTube Lyte a reçu cette erreur de l'API YouTube:"
|
41 |
|
42 |
#: options.php:91
|
43 |
msgid "WP YouTube Lyte Settings"
|
45 |
|
46 |
#: options.php:98
|
47 |
msgid "Your YouTube API key."
|
48 |
+
msgstr "Votre clé API YouTube."
|
49 |
|
50 |
#: options.php:104
|
51 |
msgid "Please enter your YouTube API key."
|
52 |
+
msgstr "Veuillez entrer votre clé API YouTube."
|
53 |
|
54 |
#: options.php:105
|
55 |
msgid "API key"
|
56 |
+
msgstr "clé API"
|
57 |
|
58 |
#: options.php:105
|
59 |
msgid "Test Key"
|
60 |
+
msgstr "Tester la clé API."
|
61 |
|
62 |
#: options.php:107
|
63 |
msgid ""
|
64 |
"WP YouTube Lyte uses YouTube's API to fetch information on each video. For "
|
65 |
"your site to use that API, you will have to <a href=\"https://console."
|
66 |
+
"developers.google.com/project/\" target=\"_blank\">register your site as a new "
|
67 |
+
"application</a>, enable the YouTube API for it and get a server key and fill "
|
68 |
+
"it out here."
|
69 |
msgstr ""
|
70 |
"WP YouTube Lyte utilise l'API YouTube pour chercher de l'information sur "
|
71 |
+
"chaque vidéo. Pour que votre site puisse utiliser cette API, vous devez <a "
|
72 |
"href=\"https://console.developers.google.com/project/\" target=\"_blank"
|
73 |
"\">enregistrer votre site comme nouvelle application</a>, activer l'API "
|
74 |
+
"YouTube, générer une clé API et la remplir ici."
|
75 |
|
76 |
#: options.php:110
|
77 |
msgid "Great, your YouTube API key has been taken care of!"
|
78 |
+
msgstr "Fantastique : votre clé API YouTube est prise en compte."
|
79 |
|
80 |
#: options.php:115 options.php:117
|
81 |
msgid "Player size"
|
87 |
|
88 |
#: options.php:139
|
89 |
msgid "Show links?"
|
90 |
+
msgstr "Afficher les liens ?"
|
91 |
|
92 |
#: options.php:140
|
93 |
msgid "Show YouTube-link"
|
94 |
+
msgstr "Afficher le lien YouTube."
|
95 |
|
96 |
#: options.php:140
|
97 |
msgid " Add YouTube-link."
|
98 |
+
msgstr " Ajouter le lien YouTube."
|
99 |
|
100 |
#: options.php:141
|
101 |
msgid "Show YouTube and Ease YouTube link"
|
102 |
+
msgstr "Afficher les liens YouTube et Easy YouTube"
|
103 |
|
104 |
#: options.php:141
|
105 |
msgid ""
|
106 |
" Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/"
|
107 |
"index.html\" target=\"_blank\">Easy YouTube</a>-link."
|
108 |
msgstr ""
|
109 |
+
" Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-youtube/"
|
110 |
+
"docs/index.html\" target=\"_blank\">Easy YouTube</a>."
|
111 |
|
112 |
#: options.php:142
|
113 |
msgid "Don't include links."
|
123 |
|
124 |
#: options.php:150
|
125 |
msgid "Left, center or right?"
|
126 |
+
msgstr "À gauche, centré ou à droite ?"
|
127 |
|
128 |
#: options.php:151
|
129 |
msgid "Left"
|
143 |
|
144 |
#: options.php:161
|
145 |
msgid "Enable HD?"
|
146 |
+
msgstr "Activer la HD ?"
|
147 |
|
148 |
#: options.php:161
|
149 |
msgid "Enable HD"
|
159 |
|
160 |
#: options.php:167
|
161 |
msgid "Add microdata?"
|
162 |
+
msgstr "Ajouter des micro-données ?"
|
163 |
|
164 |
#: options.php:170
|
165 |
msgid "Add video microdata to the HTML?"
|
167 |
|
168 |
#: options.php:171
|
169 |
msgid "Sure, add microdata!"
|
170 |
+
msgstr "Oui, ajouter des micro-données !"
|
171 |
|
172 |
#: options.php:171 options.php:181
|
173 |
msgid "Yes (default)"
|
175 |
|
176 |
#: options.php:172
|
177 |
msgid "No microdata in my HTML please."
|
178 |
+
msgstr "Non, pas de micro-données dans mon HTML."
|
179 |
|
180 |
#: options.php:172
|
181 |
msgid "No microdata, thanks."
|
187 |
|
188 |
#: options.php:181
|
189 |
msgid "That would be great!"
|
190 |
+
msgstr "Ce serait magnifique !"
|
191 |
|
192 |
#: options.php:182
|
193 |
msgid "No, I'll stick to httpv or shortcodes."
|
194 |
+
msgstr "Non, je préfère les liens httpv ou les \"shortcodes\"."
|
195 |
|
196 |
#: options.php:182
|
197 |
msgid "No thanks."
|
209 |
msgid "futtta about"
|
210 |
msgstr "À propos de futtta"
|
211 |
|
|
|
212 |
#. Plugin Name of the plugin/theme
|
213 |
#: options.php:208
|
214 |
msgid "WP YouTube Lyte"
|
220 |
|
221 |
#: options.php:210
|
222 |
msgid "Web Technology"
|
223 |
+
msgstr "Technologie web"
|
224 |
|
225 |
#: options.php:214
|
226 |
msgid "Do not donate for this plugin!"
|
228 |
|
229 |
#: options.php:228
|
230 |
msgid "Checking your key ..."
|
231 |
+
msgstr "Vérification de votre clé..."
|
232 |
|
233 |
#: options.php:242
|
234 |
msgid "That does not seem to be a correct API key!"
|
235 |
+
msgstr "Ça ne semble pas être une clé API correcte !"
|
236 |
|
237 |
#: options.php:283
|
238 |
msgid "API seems OK, you can Save Changes below now."
|
239 |
+
msgstr "La clé API semble OK, vous pouvez enregistrer ci-dessous."
|
240 |
|
241 |
#: options.php:285
|
242 |
msgid "API key not OK, your key seems to "
|
243 |
+
msgstr "La clé API n'est pas en ordre : elle semble"
|
244 |
|
245 |
#: options.php:288
|
246 |
msgid "be invalid."
|
248 |
|
249 |
#: options.php:291
|
250 |
msgid "be valid, but restricted to an IP-address which is not your server's."
|
251 |
+
msgstr "être valide, mais n'est pas activée pour l'adresse IP de votre serveur."
|
252 |
|
253 |
#: options.php:292
|
254 |
msgid "Try changing the allowed IP for your API key to include this one: "
|
255 |
+
msgstr ""
|
256 |
+
"Essayer de changer les adresses IP autorisées pour votre clé API, en ajoutant "
|
257 |
+
"celle-ci :"
|
258 |
|
259 |
#: options.php:296
|
260 |
msgid "have expired, please check in the Google Developer Console."
|
261 |
+
msgstr "avoir expiré ; veuillez vérifier dans la Console Google Developer."
|
262 |
|
263 |
#: options.php:302
|
264 |
msgid ""
|
265 |
+
"be correct, but seems to have exceeded the number of requests that can be made "
|
266 |
+
"with it."
|
267 |
+
msgstr "être correcte, mais a dépassé la limite du nombre de requêtes permises."
|
|
|
268 |
|
269 |
#: options.php:305
|
270 |
msgid "probably work, but as the video with id "
|
271 |
+
msgstr "fonctionne probablement, mais la vidéo avec l'ID "
|
272 |
|
273 |
#: options.php:307
|
274 |
msgid " was not found we cannot be sure, please try again."
|
275 |
+
msgstr "n'a pas été trouvée. Veuillez essayer à nouveau."
|
276 |
|
277 |
#: options.php:310
|
278 |
msgid "be faulty, with YouTube API returning reason: "
|
279 |
+
msgstr "être invalide. L'API YouTube renvoie le message suivant :"
|
280 |
|
281 |
#: options.php:315
|
282 |
msgid ""
|
283 |
"Something went wrong, WP YouTube Lyte might not have been able to retrieve "
|
284 |
"information from the YouTube API, got error: "
|
285 |
msgstr ""
|
286 |
+
"Il y a eu un problème. WP YouTube Lyte n'a probablement pas pu retrouver "
|
287 |
+
"l'information de l'API YouTube avec l'erreur suivante :"
|
288 |
|
289 |
#: player_sizes.inc.php:11
|
290 |
msgid "Mini 16:9 player"
|
300 |
|
301 |
#: player_sizes.inc.php:29
|
302 |
msgid "Standard value, YouTube default for 4:3-ratio video"
|
303 |
+
msgstr "Valeur standard, configuration par défaut de YouTube pour les vidéos 4:3"
|
|
|
304 |
|
305 |
#: player_sizes.inc.php:35
|
306 |
msgid "YouTube default for 16:9-ratio video"
|
406 |
#~ "depending on the settings below."
|
407 |
#~ msgstr ""
|
408 |
#~ "WP YouTube Lyte insère des \"Incrustations Lite YouTube© dans votre blog. "
|
409 |
+
#~ "Ceux-ci ont l'apparence d'incrustrations (<em>embed</em>) YouTube normales, "
|
410 |
+
#~ "mais ne lancent Flash qu'une fois cliquées, ce qui permet de <a href="
|
411 |
+
#~ "\"http://blog.futtta.be/2012/04/03/speed-matters-re-evaluating-wp-youtube-"
|
412 |
+
#~ "lytes-performance/\" target=\"_blank\">réduire le volume de téléchargement "
|
413 |
+
#~ "et le temps de chargement de manière importante</a>. Quand une vidéo est "
|
414 |
+
#~ "jouée, WP-YouTube-Lyte peut soit activer le <a href=\"http://apiblog."
|
415 |
+
#~ "youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank"
|
416 |
+
#~ "\">lecteur intégré HTML5 de YouTube</a> ou l'ancienne version Flash, en "
|
417 |
+
#~ "fonction des paramètres ci-dessous."
|
418 |
|
419 |
#~ msgid ""
|
420 |
+
#~ "You can place video and audio in your posts and pages by adding one or more "
|
421 |
+
#~ "http<strong>v</strong> or http<strong>a</strong> YouTube-links to your "
|
422 |
+
#~ "post. These will automatically be replaced by WP YouTube Lyte with the "
|
423 |
+
#~ "correct (flash-less) code. To add a video for example, you type a URL like "
|
424 |
+
#~ "<em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> or "
|
425 |
+
#~ "<em>http<strong>v</strong>://www.youtube.com/playlist?"
|
426 |
#~ "list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only "
|
427 |
#~ "player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?"
|
428 |
+
#~ "v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress.org/"
|
429 |
+
#~ "extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP "
|
430 |
+
#~ "YouTube Lyte FAQ page</a>."
|
431 |
#~ msgstr ""
|
432 |
+
#~ "Vous pouvez placer de la vidéo et de l'audio dans vos messages et pages en "
|
433 |
+
#~ "ajoutant un ou plusieurs liens YouTube http<strong>v</strong> ou "
|
434 |
+
#~ "http<strong>a</strong> à votre texte. Ils seront automatiquement remplacés "
|
435 |
+
#~ "par WP YouTube Lyte avec le code correct (sans Flash). Pour ajouter une "
|
436 |
+
#~ "vidéo par exemple, écrivez une URL comme <em>http<strong>v</strong>://www."
|
437 |
+
#~ "youtube.com/watch?v=QQPSMRQnNlU</em> ou <em>http<strong>v</strong>://www."
|
438 |
+
#~ "youtube.com/playlist?list=PLA486E741B25F8E00</em> pour une liste de "
|
439 |
+
#~ "lecture. Si vous voulez un lecteur audio uniquement, écrivez "
|
440 |
+
#~ "<em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Vous "
|
441 |
+
#~ "trouverez plus d'informations sur la <a href=\"http://wordpress.org/extend/"
|
442 |
+
#~ "plugins/wp-youtube-lyte/faq/\" target=\"_blank\">FAQ wordpress.org de WP "
|
443 |
+
#~ "YouTube Lyte</a>."
|
444 |
|
445 |
#~ msgid ""
|
446 |
#~ "You can modify WP-YouTube-Lyte's behaviour by changing the following "
|
languages/wp-youtube-lyte-fr_FR.mo
CHANGED
Binary file
|
languages/wp-youtube-lyte-fr_FR.po
CHANGED
@@ -5,15 +5,15 @@ msgstr ""
|
|
5 |
"Project-Id-Version: WP YouTube Lyte 1.4.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-youtube-lyte\n"
|
7 |
"POT-Creation-Date: 2015-03-06 17:49:26+00:00\n"
|
8 |
-
"PO-Revision-Date: 2015-
|
9 |
-
"Last-Translator:
|
10 |
"Language-Team: Serge Bibauw <sbibauw@gmail.com>\n"
|
11 |
"Language: fr\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
-
"X-Generator: Poedit 1.5
|
17 |
|
18 |
#: options.php:21
|
19 |
msgid "Your WP YouTube Lyte cache has been succesfully cleared."
|
@@ -26,10 +26,10 @@ msgstr ""
|
|
26 |
|
27 |
#: options.php:61
|
28 |
msgid ""
|
29 |
-
"For WP YouTube Lyte to function optimally, you should enter an YouTube API "
|
30 |
-
"key "
|
31 |
msgstr ""
|
32 |
-
"Pour que WP YouTube Lyte fonctionne, vous devez entrer une
|
|
|
33 |
|
34 |
#: options.php:63
|
35 |
msgid "in the settings screen."
|
@@ -37,7 +37,7 @@ msgstr "dans l'écran de configuration."
|
|
37 |
|
38 |
#: options.php:76
|
39 |
msgid "WP YouTube Lyte got the following error back from the YouTube API: "
|
40 |
-
msgstr "WP YouTube Lyte a reçu cette erreur
|
41 |
|
42 |
#: options.php:91
|
43 |
msgid "WP YouTube Lyte Settings"
|
@@ -45,37 +45,37 @@ msgstr "Paramètres de WP YouTube Lyte"
|
|
45 |
|
46 |
#: options.php:98
|
47 |
msgid "Your YouTube API key."
|
48 |
-
msgstr "Votre
|
49 |
|
50 |
#: options.php:104
|
51 |
msgid "Please enter your YouTube API key."
|
52 |
-
msgstr "Veuillez entrer votre
|
53 |
|
54 |
#: options.php:105
|
55 |
msgid "API key"
|
56 |
-
msgstr "API
|
57 |
|
58 |
#: options.php:105
|
59 |
msgid "Test Key"
|
60 |
-
msgstr "
|
61 |
|
62 |
#: options.php:107
|
63 |
msgid ""
|
64 |
"WP YouTube Lyte uses YouTube's API to fetch information on each video. For "
|
65 |
"your site to use that API, you will have to <a href=\"https://console."
|
66 |
-
"developers.google.com/project/\" target=\"_blank\">register your site as a "
|
67 |
-
"
|
68 |
-
"
|
69 |
msgstr ""
|
70 |
"WP YouTube Lyte utilise l'API YouTube pour chercher de l'information sur "
|
71 |
-
"chaque vidéo. Pour que votre site puisse utiliser
|
72 |
"href=\"https://console.developers.google.com/project/\" target=\"_blank"
|
73 |
"\">enregistrer votre site comme nouvelle application</a>, activer l'API "
|
74 |
-
"YouTube
|
75 |
|
76 |
#: options.php:110
|
77 |
msgid "Great, your YouTube API key has been taken care of!"
|
78 |
-
msgstr "
|
79 |
|
80 |
#: options.php:115 options.php:117
|
81 |
msgid "Player size"
|
@@ -87,27 +87,27 @@ msgstr "Ajouter des liens sous les vidéos incrustées ?"
|
|
87 |
|
88 |
#: options.php:139
|
89 |
msgid "Show links?"
|
90 |
-
msgstr "Afficher
|
91 |
|
92 |
#: options.php:140
|
93 |
msgid "Show YouTube-link"
|
94 |
-
msgstr "
|
95 |
|
96 |
#: options.php:140
|
97 |
msgid " Add YouTube-link."
|
98 |
-
msgstr " Ajouter
|
99 |
|
100 |
#: options.php:141
|
101 |
msgid "Show YouTube and Ease YouTube link"
|
102 |
-
msgstr "
|
103 |
|
104 |
#: options.php:141
|
105 |
msgid ""
|
106 |
" Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/"
|
107 |
"index.html\" target=\"_blank\">Easy YouTube</a>-link."
|
108 |
msgstr ""
|
109 |
-
" Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-"
|
110 |
-
"
|
111 |
|
112 |
#: options.php:142
|
113 |
msgid "Don't include links."
|
@@ -123,7 +123,7 @@ msgstr "Position du lecteur :"
|
|
123 |
|
124 |
#: options.php:150
|
125 |
msgid "Left, center or right?"
|
126 |
-
msgstr "
|
127 |
|
128 |
#: options.php:151
|
129 |
msgid "Left"
|
@@ -143,7 +143,7 @@ msgstr "HD ou pas ?"
|
|
143 |
|
144 |
#: options.php:161
|
145 |
msgid "Enable HD?"
|
146 |
-
msgstr "Activer la HD"
|
147 |
|
148 |
#: options.php:161
|
149 |
msgid "Enable HD"
|
@@ -159,7 +159,7 @@ msgstr "Pas de HD (par défaut)"
|
|
159 |
|
160 |
#: options.php:167
|
161 |
msgid "Add microdata?"
|
162 |
-
msgstr "Ajouter des micro-
|
163 |
|
164 |
#: options.php:170
|
165 |
msgid "Add video microdata to the HTML?"
|
@@ -167,7 +167,7 @@ msgstr "Ajouter des micro-données au code HTML ? "
|
|
167 |
|
168 |
#: options.php:171
|
169 |
msgid "Sure, add microdata!"
|
170 |
-
msgstr "
|
171 |
|
172 |
#: options.php:171 options.php:181
|
173 |
msgid "Yes (default)"
|
@@ -175,7 +175,7 @@ msgstr "Oui (par défaut)"
|
|
175 |
|
176 |
#: options.php:172
|
177 |
msgid "No microdata in my HTML please."
|
178 |
-
msgstr "Non, pas de micro-données."
|
179 |
|
180 |
#: options.php:172
|
181 |
msgid "No microdata, thanks."
|
@@ -187,11 +187,11 @@ msgstr "Agir aussi sur les liens YouTube normaux ?"
|
|
187 |
|
188 |
#: options.php:181
|
189 |
msgid "That would be great!"
|
190 |
-
msgstr "Ce serait magnifique!"
|
191 |
|
192 |
#: options.php:182
|
193 |
msgid "No, I'll stick to httpv or shortcodes."
|
194 |
-
msgstr "Non, je préfère les liens httpv ou les \"shortcodes\""
|
195 |
|
196 |
#: options.php:182
|
197 |
msgid "No thanks."
|
@@ -209,7 +209,6 @@ msgstr "Enregistrer les modifications"
|
|
209 |
msgid "futtta about"
|
210 |
msgstr "À propos de futtta"
|
211 |
|
212 |
-
#. #-#-#-#-# plugin.pot (WP YouTube Lyte 1.5.0) #-#-#-#-#
|
213 |
#. Plugin Name of the plugin/theme
|
214 |
#: options.php:208
|
215 |
msgid "WP YouTube Lyte"
|
@@ -221,7 +220,7 @@ msgstr "WordPress"
|
|
221 |
|
222 |
#: options.php:210
|
223 |
msgid "Web Technology"
|
224 |
-
msgstr "Technologie
|
225 |
|
226 |
#: options.php:214
|
227 |
msgid "Do not donate for this plugin!"
|
@@ -229,19 +228,19 @@ msgstr "Ne pas donner pour ce plugin !"
|
|
229 |
|
230 |
#: options.php:228
|
231 |
msgid "Checking your key ..."
|
232 |
-
msgstr "
|
233 |
|
234 |
#: options.php:242
|
235 |
msgid "That does not seem to be a correct API key!"
|
236 |
-
msgstr "
|
237 |
|
238 |
#: options.php:283
|
239 |
msgid "API seems OK, you can Save Changes below now."
|
240 |
-
msgstr "API
|
241 |
|
242 |
#: options.php:285
|
243 |
msgid "API key not OK, your key seems to "
|
244 |
-
msgstr "API
|
245 |
|
246 |
#: options.php:288
|
247 |
msgid "be invalid."
|
@@ -249,42 +248,43 @@ msgstr "être invalide."
|
|
249 |
|
250 |
#: options.php:291
|
251 |
msgid "be valid, but restricted to an IP-address which is not your server's."
|
252 |
-
msgstr "être valide, mais n'est pas
|
253 |
|
254 |
#: options.php:292
|
255 |
msgid "Try changing the allowed IP for your API key to include this one: "
|
256 |
-
msgstr "
|
|
|
|
|
257 |
|
258 |
#: options.php:296
|
259 |
msgid "have expired, please check in the Google Developer Console."
|
260 |
-
msgstr "
|
261 |
|
262 |
#: options.php:302
|
263 |
msgid ""
|
264 |
-
"be correct, but seems to have exceeded the number of requests that can be "
|
265 |
-
"
|
266 |
-
msgstr ""
|
267 |
-
"être correcte, mais as surpassé la limite de nombre de requêtes permis."
|
268 |
|
269 |
#: options.php:305
|
270 |
msgid "probably work, but as the video with id "
|
271 |
-
msgstr "
|
272 |
|
273 |
#: options.php:307
|
274 |
msgid " was not found we cannot be sure, please try again."
|
275 |
-
msgstr "n'a pas été
|
276 |
|
277 |
#: options.php:310
|
278 |
msgid "be faulty, with YouTube API returning reason: "
|
279 |
-
msgstr "être invalide
|
280 |
|
281 |
#: options.php:315
|
282 |
msgid ""
|
283 |
"Something went wrong, WP YouTube Lyte might not have been able to retrieve "
|
284 |
"information from the YouTube API, got error: "
|
285 |
msgstr ""
|
286 |
-
"Il y
|
287 |
-
"
|
288 |
|
289 |
#: player_sizes.inc.php:11
|
290 |
msgid "Mini 16:9 player"
|
@@ -300,8 +300,7 @@ msgstr "Petit lecteur 16:9"
|
|
300 |
|
301 |
#: player_sizes.inc.php:29
|
302 |
msgid "Standard value, YouTube default for 4:3-ratio video"
|
303 |
-
msgstr ""
|
304 |
-
"Valeur standard, configuration par défaut de YouTube pour les vidéos 4:3"
|
305 |
|
306 |
#: player_sizes.inc.php:35
|
307 |
msgid "YouTube default for 16:9-ratio video"
|
@@ -407,41 +406,41 @@ msgstr "http://blog.futtta.be/"
|
|
407 |
#~ "depending on the settings below."
|
408 |
#~ msgstr ""
|
409 |
#~ "WP YouTube Lyte insère des \"Incrustations Lite YouTube© dans votre blog. "
|
410 |
-
#~ "Ceux-ci ont l'apparence d'incrustrations (<em>embed</em>) YouTube "
|
411 |
-
#~ "
|
412 |
-
#~ "
|
413 |
-
#~ "
|
414 |
-
#~ "
|
415 |
-
#~ "
|
416 |
-
#~ "
|
417 |
-
#~ "\"
|
418 |
-
#~ "
|
419 |
|
420 |
#~ msgid ""
|
421 |
-
#~ "You can place video and audio in your posts and pages by adding one or "
|
422 |
-
#~ "
|
423 |
-
#~ "
|
424 |
-
#~ "
|
425 |
-
#~ "
|
426 |
-
#~ "
|
427 |
#~ "list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only "
|
428 |
#~ "player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?"
|
429 |
-
#~ "v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress."
|
430 |
-
#~ "
|
431 |
-
#~ "
|
432 |
#~ msgstr ""
|
433 |
-
#~ "Vous pouvez placer de la vidéo et de l'audio dans vos messages et pages "
|
434 |
-
#~ "
|
435 |
-
#~ "http<strong>a</strong> à votre texte. Ils seront automatiquement "
|
436 |
-
#~ "
|
437 |
-
#~ "
|
438 |
-
#~ "
|
439 |
-
#~ "
|
440 |
-
#~ "
|
441 |
-
#~ "<em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. "
|
442 |
-
#~ "
|
443 |
-
#~ "
|
444 |
-
#~ "
|
445 |
|
446 |
#~ msgid ""
|
447 |
#~ "You can modify WP-YouTube-Lyte's behaviour by changing the following "
|
5 |
"Project-Id-Version: WP YouTube Lyte 1.4.2\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/wp-youtube-lyte\n"
|
7 |
"POT-Creation-Date: 2015-03-06 17:49:26+00:00\n"
|
8 |
+
"PO-Revision-Date: 2015-04-14 13:59+0100\n"
|
9 |
+
"Last-Translator: Serge Bibauw <sbibauw@gmail.com>\n"
|
10 |
"Language-Team: Serge Bibauw <sbibauw@gmail.com>\n"
|
11 |
"Language: fr\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
16 |
+
"X-Generator: Poedit 1.7.5\n"
|
17 |
|
18 |
#: options.php:21
|
19 |
msgid "Your WP YouTube Lyte cache has been succesfully cleared."
|
26 |
|
27 |
#: options.php:61
|
28 |
msgid ""
|
29 |
+
"For WP YouTube Lyte to function optimally, you should enter an YouTube API key "
|
|
|
30 |
msgstr ""
|
31 |
+
"Pour que WP YouTube Lyte fonctionne de manière optimale, vous devez entrer une "
|
32 |
+
"clé API YouTube"
|
33 |
|
34 |
#: options.php:63
|
35 |
msgid "in the settings screen."
|
37 |
|
38 |
#: options.php:76
|
39 |
msgid "WP YouTube Lyte got the following error back from the YouTube API: "
|
40 |
+
msgstr "WP YouTube Lyte a reçu cette erreur de l'API YouTube:"
|
41 |
|
42 |
#: options.php:91
|
43 |
msgid "WP YouTube Lyte Settings"
|
45 |
|
46 |
#: options.php:98
|
47 |
msgid "Your YouTube API key."
|
48 |
+
msgstr "Votre clé API YouTube."
|
49 |
|
50 |
#: options.php:104
|
51 |
msgid "Please enter your YouTube API key."
|
52 |
+
msgstr "Veuillez entrer votre clé API YouTube."
|
53 |
|
54 |
#: options.php:105
|
55 |
msgid "API key"
|
56 |
+
msgstr "clé API"
|
57 |
|
58 |
#: options.php:105
|
59 |
msgid "Test Key"
|
60 |
+
msgstr "Tester la clé API."
|
61 |
|
62 |
#: options.php:107
|
63 |
msgid ""
|
64 |
"WP YouTube Lyte uses YouTube's API to fetch information on each video. For "
|
65 |
"your site to use that API, you will have to <a href=\"https://console."
|
66 |
+
"developers.google.com/project/\" target=\"_blank\">register your site as a new "
|
67 |
+
"application</a>, enable the YouTube API for it and get a server key and fill "
|
68 |
+
"it out here."
|
69 |
msgstr ""
|
70 |
"WP YouTube Lyte utilise l'API YouTube pour chercher de l'information sur "
|
71 |
+
"chaque vidéo. Pour que votre site puisse utiliser cette API, vous devez <a "
|
72 |
"href=\"https://console.developers.google.com/project/\" target=\"_blank"
|
73 |
"\">enregistrer votre site comme nouvelle application</a>, activer l'API "
|
74 |
+
"YouTube, générer une clé API et la remplir ici."
|
75 |
|
76 |
#: options.php:110
|
77 |
msgid "Great, your YouTube API key has been taken care of!"
|
78 |
+
msgstr "Fantastique : votre clé API YouTube est prise en compte."
|
79 |
|
80 |
#: options.php:115 options.php:117
|
81 |
msgid "Player size"
|
87 |
|
88 |
#: options.php:139
|
89 |
msgid "Show links?"
|
90 |
+
msgstr "Afficher les liens ?"
|
91 |
|
92 |
#: options.php:140
|
93 |
msgid "Show YouTube-link"
|
94 |
+
msgstr "Afficher le lien YouTube."
|
95 |
|
96 |
#: options.php:140
|
97 |
msgid " Add YouTube-link."
|
98 |
+
msgstr " Ajouter le lien YouTube."
|
99 |
|
100 |
#: options.php:141
|
101 |
msgid "Show YouTube and Ease YouTube link"
|
102 |
+
msgstr "Afficher les liens YouTube et Easy YouTube"
|
103 |
|
104 |
#: options.php:141
|
105 |
msgid ""
|
106 |
" Add both a YouTube and an <a href=\"http://icant.co.uk/easy-youtube/docs/"
|
107 |
"index.html\" target=\"_blank\">Easy YouTube</a>-link."
|
108 |
msgstr ""
|
109 |
+
" Ajouter un lien YouTube et un lien <a href=\"http://icant.co.uk/easy-youtube/"
|
110 |
+
"docs/index.html\" target=\"_blank\">Easy YouTube</a>."
|
111 |
|
112 |
#: options.php:142
|
113 |
msgid "Don't include links."
|
123 |
|
124 |
#: options.php:150
|
125 |
msgid "Left, center or right?"
|
126 |
+
msgstr "À gauche, centré ou à droite ?"
|
127 |
|
128 |
#: options.php:151
|
129 |
msgid "Left"
|
143 |
|
144 |
#: options.php:161
|
145 |
msgid "Enable HD?"
|
146 |
+
msgstr "Activer la HD ?"
|
147 |
|
148 |
#: options.php:161
|
149 |
msgid "Enable HD"
|
159 |
|
160 |
#: options.php:167
|
161 |
msgid "Add microdata?"
|
162 |
+
msgstr "Ajouter des micro-données ?"
|
163 |
|
164 |
#: options.php:170
|
165 |
msgid "Add video microdata to the HTML?"
|
167 |
|
168 |
#: options.php:171
|
169 |
msgid "Sure, add microdata!"
|
170 |
+
msgstr "Oui, ajouter des micro-données !"
|
171 |
|
172 |
#: options.php:171 options.php:181
|
173 |
msgid "Yes (default)"
|
175 |
|
176 |
#: options.php:172
|
177 |
msgid "No microdata in my HTML please."
|
178 |
+
msgstr "Non, pas de micro-données dans mon HTML."
|
179 |
|
180 |
#: options.php:172
|
181 |
msgid "No microdata, thanks."
|
187 |
|
188 |
#: options.php:181
|
189 |
msgid "That would be great!"
|
190 |
+
msgstr "Ce serait magnifique !"
|
191 |
|
192 |
#: options.php:182
|
193 |
msgid "No, I'll stick to httpv or shortcodes."
|
194 |
+
msgstr "Non, je préfère les liens httpv ou les \"shortcodes\"."
|
195 |
|
196 |
#: options.php:182
|
197 |
msgid "No thanks."
|
209 |
msgid "futtta about"
|
210 |
msgstr "À propos de futtta"
|
211 |
|
|
|
212 |
#. Plugin Name of the plugin/theme
|
213 |
#: options.php:208
|
214 |
msgid "WP YouTube Lyte"
|
220 |
|
221 |
#: options.php:210
|
222 |
msgid "Web Technology"
|
223 |
+
msgstr "Technologie web"
|
224 |
|
225 |
#: options.php:214
|
226 |
msgid "Do not donate for this plugin!"
|
228 |
|
229 |
#: options.php:228
|
230 |
msgid "Checking your key ..."
|
231 |
+
msgstr "Vérification de votre clé..."
|
232 |
|
233 |
#: options.php:242
|
234 |
msgid "That does not seem to be a correct API key!"
|
235 |
+
msgstr "Ça ne semble pas être une clé API correcte !"
|
236 |
|
237 |
#: options.php:283
|
238 |
msgid "API seems OK, you can Save Changes below now."
|
239 |
+
msgstr "La clé API semble OK, vous pouvez enregistrer ci-dessous."
|
240 |
|
241 |
#: options.php:285
|
242 |
msgid "API key not OK, your key seems to "
|
243 |
+
msgstr "La clé API n'est pas en ordre : elle semble"
|
244 |
|
245 |
#: options.php:288
|
246 |
msgid "be invalid."
|
248 |
|
249 |
#: options.php:291
|
250 |
msgid "be valid, but restricted to an IP-address which is not your server's."
|
251 |
+
msgstr "être valide, mais n'est pas activée pour l'adresse IP de votre serveur."
|
252 |
|
253 |
#: options.php:292
|
254 |
msgid "Try changing the allowed IP for your API key to include this one: "
|
255 |
+
msgstr ""
|
256 |
+
"Essayer de changer les adresses IP autorisées pour votre clé API, en ajoutant "
|
257 |
+
"celle-ci :"
|
258 |
|
259 |
#: options.php:296
|
260 |
msgid "have expired, please check in the Google Developer Console."
|
261 |
+
msgstr "avoir expiré ; veuillez vérifier dans la Console Google Developer."
|
262 |
|
263 |
#: options.php:302
|
264 |
msgid ""
|
265 |
+
"be correct, but seems to have exceeded the number of requests that can be made "
|
266 |
+
"with it."
|
267 |
+
msgstr "être correcte, mais a dépassé la limite du nombre de requêtes permises."
|
|
|
268 |
|
269 |
#: options.php:305
|
270 |
msgid "probably work, but as the video with id "
|
271 |
+
msgstr "fonctionne probablement, mais la vidéo avec l'ID "
|
272 |
|
273 |
#: options.php:307
|
274 |
msgid " was not found we cannot be sure, please try again."
|
275 |
+
msgstr "n'a pas été trouvée. Veuillez essayer à nouveau."
|
276 |
|
277 |
#: options.php:310
|
278 |
msgid "be faulty, with YouTube API returning reason: "
|
279 |
+
msgstr "être invalide. L'API YouTube renvoie le message suivant :"
|
280 |
|
281 |
#: options.php:315
|
282 |
msgid ""
|
283 |
"Something went wrong, WP YouTube Lyte might not have been able to retrieve "
|
284 |
"information from the YouTube API, got error: "
|
285 |
msgstr ""
|
286 |
+
"Il y a eu un problème. WP YouTube Lyte n'a probablement pas pu retrouver "
|
287 |
+
"l'information de l'API YouTube avec l'erreur suivante :"
|
288 |
|
289 |
#: player_sizes.inc.php:11
|
290 |
msgid "Mini 16:9 player"
|
300 |
|
301 |
#: player_sizes.inc.php:29
|
302 |
msgid "Standard value, YouTube default for 4:3-ratio video"
|
303 |
+
msgstr "Valeur standard, configuration par défaut de YouTube pour les vidéos 4:3"
|
|
|
304 |
|
305 |
#: player_sizes.inc.php:35
|
306 |
msgid "YouTube default for 16:9-ratio video"
|
406 |
#~ "depending on the settings below."
|
407 |
#~ msgstr ""
|
408 |
#~ "WP YouTube Lyte insère des \"Incrustations Lite YouTube© dans votre blog. "
|
409 |
+
#~ "Ceux-ci ont l'apparence d'incrustrations (<em>embed</em>) YouTube normales, "
|
410 |
+
#~ "mais ne lancent Flash qu'une fois cliquées, ce qui permet de <a href="
|
411 |
+
#~ "\"http://blog.futtta.be/2012/04/03/speed-matters-re-evaluating-wp-youtube-"
|
412 |
+
#~ "lytes-performance/\" target=\"_blank\">réduire le volume de téléchargement "
|
413 |
+
#~ "et le temps de chargement de manière importante</a>. Quand une vidéo est "
|
414 |
+
#~ "jouée, WP-YouTube-Lyte peut soit activer le <a href=\"http://apiblog."
|
415 |
+
#~ "youtube.com/2010/07/new-way-to-embed-youtube-videos.html\" target=\"_blank"
|
416 |
+
#~ "\">lecteur intégré HTML5 de YouTube</a> ou l'ancienne version Flash, en "
|
417 |
+
#~ "fonction des paramètres ci-dessous."
|
418 |
|
419 |
#~ msgid ""
|
420 |
+
#~ "You can place video and audio in your posts and pages by adding one or more "
|
421 |
+
#~ "http<strong>v</strong> or http<strong>a</strong> YouTube-links to your "
|
422 |
+
#~ "post. These will automatically be replaced by WP YouTube Lyte with the "
|
423 |
+
#~ "correct (flash-less) code. To add a video for example, you type a URL like "
|
424 |
+
#~ "<em>http<strong>v</strong>://www.youtube.com/watch?v=QQPSMRQnNlU</em> or "
|
425 |
+
#~ "<em>http<strong>v</strong>://www.youtube.com/playlist?"
|
426 |
#~ "list=PLA486E741B25F8E00</em> for a playlist. If you want an audio-only "
|
427 |
#~ "player, you enter <em>http<strong>a</strong>://www.youtube.com/watch?"
|
428 |
+
#~ "v=BIQIGR-kWtc</em>. There's more info on the <a href=\"http://wordpress.org/"
|
429 |
+
#~ "extend/plugins/wp-youtube-lyte/faq/\" target=\"_blank\">wordpress.org WP "
|
430 |
+
#~ "YouTube Lyte FAQ page</a>."
|
431 |
#~ msgstr ""
|
432 |
+
#~ "Vous pouvez placer de la vidéo et de l'audio dans vos messages et pages en "
|
433 |
+
#~ "ajoutant un ou plusieurs liens YouTube http<strong>v</strong> ou "
|
434 |
+
#~ "http<strong>a</strong> à votre texte. Ils seront automatiquement remplacés "
|
435 |
+
#~ "par WP YouTube Lyte avec le code correct (sans Flash). Pour ajouter une "
|
436 |
+
#~ "vidéo par exemple, écrivez une URL comme <em>http<strong>v</strong>://www."
|
437 |
+
#~ "youtube.com/watch?v=QQPSMRQnNlU</em> ou <em>http<strong>v</strong>://www."
|
438 |
+
#~ "youtube.com/playlist?list=PLA486E741B25F8E00</em> pour une liste de "
|
439 |
+
#~ "lecture. Si vous voulez un lecteur audio uniquement, écrivez "
|
440 |
+
#~ "<em>http<strong>a</strong>://www.youtube.com/watch?v=BIQIGR-kWtc</em>. Vous "
|
441 |
+
#~ "trouverez plus d'informations sur la <a href=\"http://wordpress.org/extend/"
|
442 |
+
#~ "plugins/wp-youtube-lyte/faq/\" target=\"_blank\">FAQ wordpress.org de WP "
|
443 |
+
#~ "YouTube Lyte</a>."
|
444 |
|
445 |
#~ msgid ""
|
446 |
#~ "You can modify WP-YouTube-Lyte's behaviour by changing the following "
|
options.php
CHANGED
@@ -58,9 +58,9 @@ function lyte_admin_styles() {
|
|
58 |
|
59 |
function lyte_admin_nag_apikey() {
|
60 |
echo "<div class=\"update-nag\">";
|
61 |
-
_e('For WP YouTube Lyte to function optimally, you should enter an YouTube API key ');
|
62 |
-
echo "<a href=\"options-general.php?page=lyte_settings_page\">";
|
63 |
-
_e('in the settings screen.');
|
64 |
echo "</a>.</div>";
|
65 |
}
|
66 |
|
@@ -73,7 +73,7 @@ if (empty($lyte_yt_api_key)) {
|
|
73 |
function lyte_admin_api_error(){
|
74 |
$yt_error=json_decode(get_option('lyte_api_error'),1);
|
75 |
echo '<div class="error"><p>';
|
76 |
-
_e('WP YouTube Lyte got the following error back from the YouTube API: ');
|
77 |
echo "<strong>".$yt_error["reason"]."</strong>";
|
78 |
echo " (".date("r",$yt_error["timestamp"]).").";
|
79 |
echo '</a>.</p></div>';
|
@@ -286,34 +286,34 @@ function lyte_check_yt_api_key_callback() {
|
|
286 |
_e("API key not OK, your key seems to ");
|
287 |
switch ($api_response["reason"]) {
|
288 |
case "keyInvalid":
|
289 |
-
_e("be invalid.");
|
290 |
break;
|
291 |
case "ipRefererBlocked":
|
292 |
-
_e("be valid, but restricted to an IP-address which is not your server's.");
|
293 |
-
_e("Try changing the allowed IP for your API key to include this one: ");
|
294 |
echo $_SERVER["SERVER_ADDR"];
|
295 |
break;
|
296 |
case "keyExpired":
|
297 |
-
_e("have expired, please check in the Google Developer Console.");
|
298 |
break;
|
299 |
case "limitExceeded":
|
300 |
case "quotaExceeded":
|
301 |
case "rateLimitExceeded":
|
302 |
case "userRateLimitExceeded":
|
303 |
-
_e("be correct, but seems to have exceeded the number of requests that can be made with it.");
|
304 |
break;
|
305 |
case "videoNotFound":
|
306 |
-
_e("probably work, but as the video with id ");
|
307 |
echo $vidToCheck[$randVidIndex];
|
308 |
-
_e(" was not found we cannot be sure, please try again.");
|
309 |
break;
|
310 |
default:
|
311 |
-
_e("be faulty, with YouTube API returning reason: ");
|
312 |
echo $api_response["reason"];
|
313 |
}
|
314 |
}
|
315 |
} else {
|
316 |
-
_e("Something went wrong, WP YouTube Lyte might not have been able to retrieve information from the YouTube API, got error: ");
|
317 |
print_r($api_response);
|
318 |
}
|
319 |
wp_die();
|
58 |
|
59 |
function lyte_admin_nag_apikey() {
|
60 |
echo "<div class=\"update-nag\">";
|
61 |
+
_e('For WP YouTube Lyte to function optimally, you should enter an YouTube API key ', 'wp-youtube-lyte');
|
62 |
+
echo " <a href=\"options-general.php?page=lyte_settings_page\">";
|
63 |
+
_e('in the settings screen.','wp-youtube-lyte');
|
64 |
echo "</a>.</div>";
|
65 |
}
|
66 |
|
73 |
function lyte_admin_api_error(){
|
74 |
$yt_error=json_decode(get_option('lyte_api_error'),1);
|
75 |
echo '<div class="error"><p>';
|
76 |
+
_e('WP YouTube Lyte got the following error back from the YouTube API: ','wp-youtube-lyte');
|
77 |
echo "<strong>".$yt_error["reason"]."</strong>";
|
78 |
echo " (".date("r",$yt_error["timestamp"]).").";
|
79 |
echo '</a>.</p></div>';
|
286 |
_e("API key not OK, your key seems to ");
|
287 |
switch ($api_response["reason"]) {
|
288 |
case "keyInvalid":
|
289 |
+
_e("be invalid.",'wp-youtube-lyte');
|
290 |
break;
|
291 |
case "ipRefererBlocked":
|
292 |
+
_e("be valid, but restricted to an IP-address which is not your server's.",'wp-youtube-lyte');
|
293 |
+
_e("Try changing the allowed IP for your API key to include this one: ",'wp-youtube-lyte');
|
294 |
echo $_SERVER["SERVER_ADDR"];
|
295 |
break;
|
296 |
case "keyExpired":
|
297 |
+
_e("have expired, please check in the Google Developer Console.",'wp-youtube-lyte');
|
298 |
break;
|
299 |
case "limitExceeded":
|
300 |
case "quotaExceeded":
|
301 |
case "rateLimitExceeded":
|
302 |
case "userRateLimitExceeded":
|
303 |
+
_e("be correct, but seems to have exceeded the number of requests that can be made with it.",'wp-youtube-lyte');
|
304 |
break;
|
305 |
case "videoNotFound":
|
306 |
+
_e("probably work, but as the video with id ",'wp-youtube-lyte');
|
307 |
echo $vidToCheck[$randVidIndex];
|
308 |
+
_e(" was not found we cannot be sure, please try again.",'wp-youtube-lyte');
|
309 |
break;
|
310 |
default:
|
311 |
+
_e("be faulty, with YouTube API returning reason: ",'wp-youtube-lyte');
|
312 |
echo $api_response["reason"];
|
313 |
}
|
314 |
}
|
315 |
} else {
|
316 |
+
_e("Something went wrong, WP YouTube Lyte might not have been able to retrieve information from the YouTube API, got error: ",'wp-youtube-lyte');
|
317 |
print_r($api_response);
|
318 |
}
|
319 |
wp_die();
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: futtta
|
|
3 |
Tags: youtube, video, lyte, lite youtube embeds, html5 video, widget, youtube audio, audio, playlist, performance, accessibility, sidebar, lazy load, responsive, microdata, videoobject
|
4 |
Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
|
5 |
Requires at least: 2.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.6.
|
8 |
|
9 |
High performance YouTube video, playlist and audio-only embeds which don't slow down your blog and offer optimal accessibility.
|
10 |
|
@@ -72,7 +72,10 @@ Up until WP YouTube Lyte 1.5.0 the v2 YouTube API was used, but [in September 20
|
|
72 |
5. Copy your API key to WP YouTube Lyte settings page.
|
73 |
|
74 |
= Will WP YouTube Lyte work if I don't provide an API key? =
|
75 |
-
Yes, with some exceptions
|
|
|
|
|
|
|
76 |
|
77 |
= What does "html5 video support" mean? =
|
78 |
When playing, HTML5 video will not be visible for everyone (see requirements). Indeed some visitors will see the fallback Flash video instead.
|
@@ -141,6 +144,13 @@ Just tell me, I like the feedback! Use the [Contact-page on my blog](http://blog
|
|
141 |
|
142 |
== Changelog ==
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
= 1.6.1 =
|
145 |
* fix for WP YouTube Lyte widgets not loading
|
146 |
|
3 |
Tags: youtube, video, lyte, lite youtube embeds, html5 video, widget, youtube audio, audio, playlist, performance, accessibility, sidebar, lazy load, responsive, microdata, videoobject
|
4 |
Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
|
5 |
Requires at least: 2.9
|
6 |
+
Tested up to: 4.2
|
7 |
+
Stable tag: 1.6.2
|
8 |
|
9 |
High performance YouTube video, playlist and audio-only embeds which don't slow down your blog and offer optimal accessibility.
|
10 |
|
72 |
5. Copy your API key to WP YouTube Lyte settings page.
|
73 |
|
74 |
= Will WP YouTube Lyte work if I don't provide an API key? =
|
75 |
+
Yes, with some exceptions; WP YouTube Lyte will continue to work, rendering Lyte players, but without the title and microdata (description, time, ...) and without thumbnails for playlists.
|
76 |
+
|
77 |
+
= I don't want an API key, how can I get rid of the "API key"-notice? =
|
78 |
+
Just enter "none" (without the quotes) in the API key field and Lyte will stop nagging you.
|
79 |
|
80 |
= What does "html5 video support" mean? =
|
81 |
When playing, HTML5 video will not be visible for everyone (see requirements). Indeed some visitors will see the fallback Flash video instead.
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.6.2 =
|
148 |
+
* improvement: youtube playlist URL will now be recognized automatically and rendered LYTE as well (hat tip to [markothaler for proposing this](https://wordpress.org/support/topic/playlist-recognition-possible))
|
149 |
+
* improvement: enter "none" in API key not to be bothered by the missing key notice any more (as [requested by TheGiantRedFox1986](https://wordpress.org/support/topic/remove-notice-in-backend))
|
150 |
+
* improvement: if no API key (or "none" for key) is provided, don't try to contact YouTube any more, instead just setting a thumbnail (does not work for playlists).
|
151 |
+
* cleanup: removed code that catered to YouTube API v2.
|
152 |
+
* updated French translations (merci Serge!)
|
153 |
+
|
154 |
= 1.6.1 =
|
155 |
* fix for WP YouTube Lyte widgets not loading
|
156 |
|
wp-youtube-lyte.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP YouTube Lyte
|
|
4 |
Plugin URI: http://blog.futtta.be/wp-youtube-lyte/
|
5 |
Description: Lite and accessible YouTube audio and video embedding.
|
6 |
Author: Frank Goossens (futtta)
|
7 |
-
Version: 1.6.
|
8 |
Author URI: http://blog.futtta.be/
|
9 |
Text Domain: wp-youtube-lyte
|
10 |
Domain Path: /languages
|
@@ -91,6 +91,7 @@ function lyte_parse($the_content,$doExcerpt=false) {
|
|
91 |
$the_content = apply_filters( 'lyte_content_preparse',$the_content );
|
92 |
|
93 |
if (get_option('lyte_greedy','1')==="1"){
|
|
|
94 |
$the_content=preg_replace('/^https?:\/\/(www.)?youtu(be.com|.be)\/(watch\?v=)?/m','httpv://www.youtube.com/watch?v=',$the_content);
|
95 |
}
|
96 |
|
@@ -220,7 +221,7 @@ function lyte_parse($the_content,$doExcerpt=false) {
|
|
220 |
$yt_resp_array=lyte_get_YT_resp($vid,$isPlaylist,$cachekey);
|
221 |
|
222 |
// If there was a result from youtube or from cache, use it
|
223 |
-
if ( $yt_resp_array ) {
|
224 |
if (is_array($yt_resp_array)) {
|
225 |
if ($isPlaylist!==true) {
|
226 |
// captions, thanks to Benetech
|
@@ -276,10 +277,13 @@ function lyte_parse($the_content,$doExcerpt=false) {
|
|
276 |
}
|
277 |
/** API: filter hook to override thumbnail URL */
|
278 |
$thumbUrl = apply_filters( 'lyte_match_thumburl', $thumbUrl );
|
279 |
-
|
280 |
// no useable result from youtube, fallback on video thumbnail (doesn't work on playlist)
|
281 |
$thumbUrl = "//i.ytimg.com/vi/".$vid."/hqdefault.jpg";
|
282 |
}
|
|
|
|
|
|
|
283 |
}
|
284 |
|
285 |
if ($audio===true) {
|
@@ -384,17 +388,23 @@ function lyte_get_YT_resp($vid,$playlist=false,$cachekey,$apiTestKey="") {
|
|
384 |
$lyte_yt_api_key=$apiTestKey;
|
385 |
}
|
386 |
|
387 |
-
if (empty($lyte_yt_api_key)) {
|
388 |
-
|
389 |
-
$yt_api_base = "http://gdata.youtube.com/feeds/api/";
|
390 |
-
|
391 |
if ($playlist) {
|
392 |
-
$
|
|
|
393 |
} else {
|
394 |
-
$
|
|
|
395 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
} else {
|
397 |
-
// v3
|
398 |
$yt_api_base = "https://www.googleapis.com/youtube/v3/";
|
399 |
|
400 |
if ($playlist) {
|
@@ -411,63 +421,39 @@ function lyte_get_YT_resp($vid,$playlist=false,$cachekey,$apiTestKey="") {
|
|
411 |
if (is_wp_error($yt_resp)) {
|
412 |
$_thisLyte = "";
|
413 |
} else {
|
414 |
-
$yt_resp_array=json_decode(wp_remote_retrieve_body($yt_resp),true);
|
415 |
-
|
416 |
if(is_array($yt_resp_array)) {
|
417 |
// extract relevant data
|
418 |
-
|
419 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
if ($playlist) {
|
421 |
-
$_thisLyte['title']="Playlist: ".esc_attr(sanitize_text_field(@$yt_resp_array['
|
422 |
-
$_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['
|
423 |
-
$_thisLyte['HQthumbUrl']=
|
424 |
-
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['
|
425 |
$_thisLyte['duration']="";
|
426 |
-
$_thisLyte['description']
|
427 |
$_thisLyte['captions_data']="false";
|
428 |
$_thisLyte['captions_timestamp'] = "";
|
429 |
} else {
|
430 |
-
$_thisLyte['title']=esc_attr(sanitize_text_field(@$yt_resp_array['
|
431 |
-
$_thisLyte['thumbUrl']=
|
432 |
-
$_thisLyte['HQthumbUrl']=
|
433 |
-
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['
|
434 |
-
$_thisLyte['duration']=
|
435 |
-
$_thisLyte['description']=esc_attr(sanitize_text_field(@$yt_resp_array['
|
436 |
-
$_thisLyte['captions_data']=
|
437 |
-
$_thisLyte['captions_timestamp'] = "";
|
438 |
-
}
|
439 |
-
} else {
|
440 |
-
// v3
|
441 |
-
if (in_array(wp_remote_retrieve_response_code($yt_resp),array(400,403,404))) {
|
442 |
-
$yt_error['code']=wp_remote_retrieve_response_code($yt_resp);
|
443 |
-
$yt_error['reason']=$yt_resp_array['error']['errors'][0]['reason'];
|
444 |
-
$yt_error['timestamp']=strtotime("now");
|
445 |
-
if (empty($apiTestKey)) {
|
446 |
-
update_option("lyte_api_error",json_encode($yt_error));
|
447 |
-
} else {
|
448 |
-
return $yt_error;
|
449 |
-
}
|
450 |
-
$_thisLyte = "";
|
451 |
-
} else {
|
452 |
-
if ($playlist) {
|
453 |
-
$_thisLyte['title']="Playlist: ".esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['title']));
|
454 |
-
$_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['high']['url']);
|
455 |
-
$_thisLyte['HQthumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['maxres']['url']);
|
456 |
-
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['publishedAt']);
|
457 |
-
$_thisLyte['duration']="";
|
458 |
-
$_thisLyte['description']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['description']));
|
459 |
-
$_thisLyte['captions_data']="false";
|
460 |
-
$_thisLyte['captions_timestamp'] = "";
|
461 |
-
} else {
|
462 |
-
$_thisLyte['title']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['title']));
|
463 |
-
$_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['high']['url']);
|
464 |
-
$_thisLyte['HQthumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['maxres']['url']);
|
465 |
-
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['publishedAt']);
|
466 |
-
$_thisLyte['duration']=sanitize_text_field(@$yt_resp_array['items'][0]['contentDetails']['duration']);
|
467 |
-
$_thisLyte['description']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['description']));
|
468 |
-
$_thisLyte['captions_data']=sanitize_text_field(@$yt_resp_array['items'][0]['contentDetails']['caption']);
|
469 |
-
$_thisLyte['captions_timestamp'] = strtotime("now");
|
470 |
-
}
|
471 |
}
|
472 |
}
|
473 |
|
@@ -583,7 +569,7 @@ function lyte_preparse($videoId) {
|
|
583 |
}
|
584 |
|
585 |
function lyte_add_action_link($links) {
|
586 |
-
$links[]='<a href="' . admin_url( 'options-general.php?page=lyte_settings_page' ) . '">' .
|
587 |
return $links;
|
588 |
}
|
589 |
|
4 |
Plugin URI: http://blog.futtta.be/wp-youtube-lyte/
|
5 |
Description: Lite and accessible YouTube audio and video embedding.
|
6 |
Author: Frank Goossens (futtta)
|
7 |
+
Version: 1.6.2
|
8 |
Author URI: http://blog.futtta.be/
|
9 |
Text Domain: wp-youtube-lyte
|
10 |
Domain Path: /languages
|
91 |
$the_content = apply_filters( 'lyte_content_preparse',$the_content );
|
92 |
|
93 |
if (get_option('lyte_greedy','1')==="1"){
|
94 |
+
$the_content=preg_replace('/^https?:\/\/(www.)?youtu(be.com|.be)\/playlist\?list=/m','httpv://www.youtube.com/playlist?list=',$the_content);
|
95 |
$the_content=preg_replace('/^https?:\/\/(www.)?youtu(be.com|.be)\/(watch\?v=)?/m','httpv://www.youtube.com/watch?v=',$the_content);
|
96 |
}
|
97 |
|
221 |
$yt_resp_array=lyte_get_YT_resp($vid,$isPlaylist,$cachekey);
|
222 |
|
223 |
// If there was a result from youtube or from cache, use it
|
224 |
+
if ( $yt_resp_array ) {
|
225 |
if (is_array($yt_resp_array)) {
|
226 |
if ($isPlaylist!==true) {
|
227 |
// captions, thanks to Benetech
|
277 |
}
|
278 |
/** API: filter hook to override thumbnail URL */
|
279 |
$thumbUrl = apply_filters( 'lyte_match_thumburl', $thumbUrl );
|
280 |
+
} else {
|
281 |
// no useable result from youtube, fallback on video thumbnail (doesn't work on playlist)
|
282 |
$thumbUrl = "//i.ytimg.com/vi/".$vid."/hqdefault.jpg";
|
283 |
}
|
284 |
+
} else {
|
285 |
+
// same fallback
|
286 |
+
$thumbUrl = "//i.ytimg.com/vi/".$vid."/hqdefault.jpg";
|
287 |
}
|
288 |
|
289 |
if ($audio===true) {
|
388 |
$lyte_yt_api_key=$apiTestKey;
|
389 |
}
|
390 |
|
391 |
+
if (($lyte_yt_api_key==="none") || (empty($lyte_yt_api_key))) {
|
392 |
+
$_thisLyte['title']="";
|
|
|
|
|
393 |
if ($playlist) {
|
394 |
+
$_thisLyte['thumbUrl']="";
|
395 |
+
$_thisLyte['HQthumbUrl']="";
|
396 |
} else {
|
397 |
+
$_thisLyte['thumbUrl']="http://i.ytimg.com/vi/".$vid."/hqdefault.jpg";
|
398 |
+
$_thisLyte['HQthumbUrl']="http://i.ytimg.com/vi/".$vid."/maxresdefault.jpg";
|
399 |
}
|
400 |
+
$_thisLyte['dateField']="";
|
401 |
+
$_thisLyte['duration']="";
|
402 |
+
$_thisLyte['description']="";
|
403 |
+
$_thisLyte['captions_data']="false";
|
404 |
+
$_thisLyte['captions_timestamp']=strtotime("now");
|
405 |
+
return $_thisLyte;
|
406 |
} else {
|
407 |
+
// v3, feeling somewhat lonely now v2 has gently been put to sleep
|
408 |
$yt_api_base = "https://www.googleapis.com/youtube/v3/";
|
409 |
|
410 |
if ($playlist) {
|
421 |
if (is_wp_error($yt_resp)) {
|
422 |
$_thisLyte = "";
|
423 |
} else {
|
424 |
+
$yt_resp_array=json_decode(wp_remote_retrieve_body($yt_resp),true);
|
|
|
425 |
if(is_array($yt_resp_array)) {
|
426 |
// extract relevant data
|
427 |
+
// v3
|
428 |
+
if (in_array(wp_remote_retrieve_response_code($yt_resp),array(400,403,404))) {
|
429 |
+
$yt_error['code']=wp_remote_retrieve_response_code($yt_resp);
|
430 |
+
$yt_error['reason']=$yt_resp_array['error']['errors'][0]['reason'];
|
431 |
+
$yt_error['timestamp']=strtotime("now");
|
432 |
+
if (empty($apiTestKey)) {
|
433 |
+
update_option("lyte_api_error",json_encode($yt_error));
|
434 |
+
} else {
|
435 |
+
return $yt_error;
|
436 |
+
}
|
437 |
+
$_thisLyte = "";
|
438 |
+
} else {
|
439 |
if ($playlist) {
|
440 |
+
$_thisLyte['title']="Playlist: ".esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['title']));
|
441 |
+
$_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['high']['url']);
|
442 |
+
$_thisLyte['HQthumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['maxres']['url']);
|
443 |
+
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['publishedAt']);
|
444 |
$_thisLyte['duration']="";
|
445 |
+
$_thisLyte['description']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['description']));
|
446 |
$_thisLyte['captions_data']="false";
|
447 |
$_thisLyte['captions_timestamp'] = "";
|
448 |
} else {
|
449 |
+
$_thisLyte['title']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['title']));
|
450 |
+
$_thisLyte['thumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['high']['url']);
|
451 |
+
$_thisLyte['HQthumbUrl']=esc_url(@$yt_resp_array['items'][0]['snippet']['thumbnails']['maxres']['url']);
|
452 |
+
$_thisLyte['dateField']=sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['publishedAt']);
|
453 |
+
$_thisLyte['duration']=sanitize_text_field(@$yt_resp_array['items'][0]['contentDetails']['duration']);
|
454 |
+
$_thisLyte['description']=esc_attr(sanitize_text_field(@$yt_resp_array['items'][0]['snippet']['description']));
|
455 |
+
$_thisLyte['captions_data']=sanitize_text_field(@$yt_resp_array['items'][0]['contentDetails']['caption']);
|
456 |
+
$_thisLyte['captions_timestamp'] = strtotime("now");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
}
|
458 |
}
|
459 |
|
569 |
}
|
570 |
|
571 |
function lyte_add_action_link($links) {
|
572 |
+
$links[]='<a href="' . admin_url( 'options-general.php?page=lyte_settings_page' ) . '">' . __('Settings') . '</a>';
|
573 |
return $links;
|
574 |
}
|
575 |
|