Youtube Channel Gallery - Version 2.2.2

Version Description

  • Error message optimization to improve users' debug.
  • Changes in Spanish translation.
Download this release

Release Info

Developer javitxu123
Plugin Icon 128x128 Youtube Channel Gallery
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

languages/youtube-channel-gallery-es_ES.mo CHANGED
Binary file
languages/youtube-channel-gallery-es_ES.po CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2015-06-29 02:25+0100\n"
11
- "PO-Revision-Date: 2015-06-29 02:47+0100\n"
12
  "Last-Translator: Javier <javierpose@gmail.com>\n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "Language: es_ES\n"
@@ -22,7 +22,7 @@ msgstr ""
22
  "X-Poedit-SourceCharset: utf-8\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
- #: templates/admin_tabs.php:3 templates/admin_tabs.php:406
26
  msgid "Title:"
27
  msgstr "Título:"
28
 
@@ -75,46 +75,58 @@ msgid "Playlist"
75
  msgstr "Lista de reproducción"
76
 
77
  #: templates/admin_tabs.php:42
78
- msgid "YouTube user id:"
79
- msgstr "Id de usuario de Youtube:"
80
 
81
- #: templates/admin_tabs.php:43
 
 
 
 
 
 
 
 
 
 
 
 
82
  msgid "YouTube playlist id:"
83
  msgstr "Id de lista de reproducción de YouTube:"
84
 
85
- #: templates/admin_tabs.php:49
86
  msgid "Playlist order:"
87
  msgstr "Orden de lista de reproducción:"
88
 
89
- #: templates/admin_tabs.php:51
90
  msgid "Date Order"
91
  msgstr "Ordenar por fecha"
92
 
93
- #: templates/admin_tabs.php:52
94
  msgid "Rating Order"
95
  msgstr "Ordenar por calificación"
96
 
97
- #: templates/admin_tabs.php:53
98
  msgid "Relevance Order"
99
- msgstr ""
100
 
101
- #: templates/admin_tabs.php:54
102
  msgid "Title Order"
103
  msgstr "Ordenar por título"
104
 
105
- #: templates/admin_tabs.php:55
106
  msgid "Video Count Order"
107
- msgstr ""
108
 
109
- #: templates/admin_tabs.php:56
110
  msgid "View Count Order"
111
- msgstr ""
112
 
113
- #: templates/admin_tabs.php:63
114
  msgid "Cache time (hours):"
115
  msgstr "Tiempo de cache (horas):"
116
 
117
- #: templates/admin_tabs.php:65
118
  msgid ""
119
  "Hours that RSS data is saved in database, to not make a request every time "
120
  "the page is displayed. Assign this value according to how often you upgrade "
@@ -124,11 +136,11 @@ msgstr ""
124
  "solicitud cada vez que se muestra la página. Asigna este valor en función de "
125
  "la frecuencia con que actualizas la lista de reproducción en YouTube."
126
 
127
- #: templates/admin_tabs.php:72
128
  msgid "Activate cache"
129
  msgstr "Activar caché"
130
 
131
- #: templates/admin_tabs.php:73
132
  msgid ""
133
  "If you disable this field the cache will be deleted and will not be used. "
134
  "This is useful to refresh immediately the YouTube RSS used by the plugin. "
@@ -140,103 +152,103 @@ msgstr ""
140
  "Vuelve a habilitar la caché cuando la galería muestre los cambios que ha "
141
  "realizado en su cuenta de YouTube."
142
 
143
- #: templates/admin_tabs.php:88
144
  msgid "Player:"
145
  msgstr "Reproductor:"
146
 
147
- #: templates/admin_tabs.php:90
148
  msgid "Without player"
149
  msgstr "Sin reproductor"
150
 
151
- #: templates/admin_tabs.php:91
152
  msgid "show player"
153
  msgstr "mostrar reproductor"
154
 
155
- #: templates/admin_tabs.php:92
156
  msgid "show player in Magnific Popup"
157
  msgstr "mostrar reproductor en Magnific Popup"
158
 
159
- #: templates/admin_tabs.php:99
160
  msgid "Width:"
161
  msgstr "Ancho:"
162
 
163
- #: templates/admin_tabs.php:102
164
  msgid "%"
165
- msgstr ""
166
 
167
- #: templates/admin_tabs.php:103
168
  msgid "px"
169
- msgstr ""
170
 
171
- #: templates/admin_tabs.php:107 templates/admin_tabs.php:257
172
  msgid "Aspect ratio:"
173
  msgstr "Relación de aspecto:"
174
 
175
- #: templates/admin_tabs.php:109 templates/admin_tabs.php:259
176
  msgid "Standard (4x3)"
177
  msgstr "Estándar (4x3)"
178
 
179
- #: templates/admin_tabs.php:110 templates/admin_tabs.php:260
180
  msgid "Widescreen (16x9)"
181
  msgstr "Panorámico (16x9)"
182
 
183
- #: templates/admin_tabs.php:117
184
  msgid "Theme:"
185
  msgstr "Tema:"
186
 
187
- #: templates/admin_tabs.php:119
188
  msgid "Dark"
189
  msgstr "Oscuro"
190
 
191
- #: templates/admin_tabs.php:120
192
  msgid "Light"
193
  msgstr "Claro"
194
 
195
- #: templates/admin_tabs.php:124
196
  msgid "Progress bar color:"
197
  msgstr "Color de barra de progreso:"
198
 
199
- #: templates/admin_tabs.php:126
200
  msgid "Red"
201
  msgstr "Rojo"
202
 
203
- #: templates/admin_tabs.php:127
204
  msgid "White"
205
  msgstr "Blanco"
206
 
207
- #: templates/admin_tabs.php:134
208
  msgid "Video quality:"
209
  msgstr "Calidad del vídeo:"
210
 
211
- #: templates/admin_tabs.php:136
212
  msgid "default"
213
  msgstr "por defecto"
214
 
215
- #: templates/admin_tabs.php:137
216
  msgid "highres"
217
  msgstr "alta resolución"
218
 
219
- #: templates/admin_tabs.php:138
220
  msgid "hd1080"
221
  msgstr "hd1080"
222
 
223
- #: templates/admin_tabs.php:139
224
  msgid "hd720"
225
  msgstr "hd720"
226
 
227
- #: templates/admin_tabs.php:140
228
  msgid "large"
229
  msgstr "largo"
230
 
231
- #: templates/admin_tabs.php:141
232
  msgid "medium"
233
  msgstr "mediano"
234
 
235
- #: templates/admin_tabs.php:142
236
  msgid "small"
237
  msgstr "pequeño"
238
 
239
- #: templates/admin_tabs.php:144
240
  msgid ""
241
  "Default value enables YouTube to select the most appropriate playback "
242
  "quality. If you select a quality level that is not available for the video, "
@@ -247,15 +259,15 @@ msgstr ""
247
  "disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo "
248
  "que este disponible."
249
 
250
- #: templates/admin_tabs.php:151
251
  msgid "Autoplay"
252
  msgstr "Autoplay"
253
 
254
- #: templates/admin_tabs.php:155
255
  msgid "Show YouTube logo"
256
  msgstr "Mostrar el logotipo de YouTube"
257
 
258
- #: templates/admin_tabs.php:156
259
  msgid ""
260
  "Activate this field to show the YouTube logo in the control bar. Setting the "
261
  "color parameter to white will show the YouTube logo in the control bar."
@@ -264,22 +276,22 @@ msgstr ""
264
  "Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en "
265
  "la barra de control."
266
 
267
- #: templates/admin_tabs.php:163
268
  msgid "Show related videos"
269
  msgstr "Mostrar los vídeos relacionados"
270
 
271
- #: templates/admin_tabs.php:164
272
  msgid ""
273
  "Activate this field to show related videos when playback of the video ends."
274
  msgstr ""
275
  "Activa este campo para mostrar videos relacionados cuando termine la "
276
  "reproducción del vídeo."
277
 
278
- #: templates/admin_tabs.php:168
279
  msgid "Show info"
280
  msgstr "Mostrar información"
281
 
282
- #: templates/admin_tabs.php:169
283
  msgid ""
284
  "Activate this field to display information like the video title and uploader "
285
  "before the video starts playing."
@@ -287,130 +299,132 @@ msgstr ""
287
  "Active este campo para mostrar información como el título del vídeo y nombre "
288
  "de usuario antes de que el vídeo comience a reproducirse."
289
 
290
- #: templates/admin_tabs.php:175 templates/admin_tabs.php:227
291
- #: templates/admin_tabs.php:402 templates/admin_tabs.php:413
292
- #: templates/admin_tabs.php:450
293
  msgid "Order:"
294
  msgstr "Orden:"
295
 
296
- #: templates/admin_tabs.php:192
297
  msgid "Search input text:"
298
- msgstr ""
299
 
300
- #: templates/admin_tabs.php:196
301
  msgid "Restrict search to (# separated):"
302
- msgstr ""
303
 
304
- #: templates/admin_tabs.php:200
305
  msgid "You must assing this tags to your videos to restrict the search:"
306
- msgstr ""
307
 
308
- #: templates/admin_tabs.php:209
309
  msgid "Restrict search by default: It will overwrite results of feed tab)"
310
  msgstr ""
 
 
311
 
312
- #: templates/admin_tabs.php:211 templates/admin_tabs.php:376
313
  #: templates/search.php:10
314
  msgid "All"
315
  msgstr "Todos"
316
 
317
- #: templates/admin_tabs.php:219
318
  msgid "Show search box"
319
  msgstr "Mostrar caja de búsqueda"
320
 
321
- #: templates/admin_tabs.php:223
322
  msgid "Show select with Playlists"
323
  msgstr "Show desplegable con Playlistas"
324
 
325
- #: templates/admin_tabs.php:241
326
  msgid "Number of videos to show:"
327
  msgstr "Vídeos a mostrar:"
328
 
329
- #: templates/admin_tabs.php:243
330
  msgid "The plugin can display a maximum of 50 videos for each page."
331
  msgstr "El plugin puede mostrar un máximo de 50 vídeos por página."
332
 
333
- #: templates/admin_tabs.php:246
334
  msgid "Thumbnail resolution:"
335
  msgstr "Resolución de miniaturas:"
336
 
337
- #: templates/admin_tabs.php:248
338
  msgid "Default (120x90 px)"
339
  msgstr "Por defecto (120x90 px)"
340
 
341
- #: templates/admin_tabs.php:249
342
  msgid "Medium (320x180)"
343
  msgstr "Media (320x180)"
344
 
345
- #: templates/admin_tabs.php:250
346
  msgid "High (480x360)"
347
  msgstr "Alta (480x360)"
348
 
349
- #: templates/admin_tabs.php:267
350
  msgid "Thumbnail columns:"
351
  msgstr "Columnas de las miniaturas:"
352
 
353
- #: templates/admin_tabs.php:273
354
  msgid "Phones:"
355
  msgstr "Móviles:"
356
 
357
- #: templates/admin_tabs.php:281
358
  msgid "Tablets:"
359
  msgstr "Tablet:"
360
 
361
- #: templates/admin_tabs.php:293
362
  msgid "Medium Desktops:"
363
  msgstr "Escritorios medio:"
364
 
365
- #: templates/admin_tabs.php:301
366
  msgid "Large Desktops:"
367
  msgstr "Escritorios grandes:"
368
 
369
- #: templates/admin_tabs.php:316
370
  msgid "Show title or description"
371
  msgstr "Mostrar título y descripción"
372
 
373
- #: templates/admin_tabs.php:324
374
  msgid "Show title"
375
  msgstr "Mostrar Título"
376
 
377
- #: templates/admin_tabs.php:328
378
  msgid "Show description"
379
  msgstr "Mostrar descripción"
380
 
381
- #: templates/admin_tabs.php:334
382
  msgid "Title tag:"
383
  msgstr "Etiqueta de título:"
384
 
385
- #: templates/admin_tabs.php:336
386
  msgid "h1"
387
  msgstr "h1"
388
 
389
- #: templates/admin_tabs.php:337
390
  msgid "h2"
391
  msgstr "h2"
392
 
393
- #: templates/admin_tabs.php:338
394
  msgid "h3"
395
  msgstr "h3"
396
 
397
- #: templates/admin_tabs.php:339
398
  msgid "h4"
399
  msgstr "h4"
400
 
401
- #: templates/admin_tabs.php:340
402
  msgid "h5"
403
  msgstr "h5"
404
 
405
- #: templates/admin_tabs.php:341
406
  msgid "h6"
407
  msgstr "h6"
408
 
409
- #: templates/admin_tabs.php:345
410
  msgid "Description words:"
411
  msgstr "Palabras en descripción:"
412
 
413
- #: templates/admin_tabs.php:347
414
  msgid ""
415
  "Set the maximum number of words that will be displayed of the description. "
416
  "This field is useful when the descriptions of videos in the gallery have "
@@ -420,63 +434,63 @@ msgstr ""
420
  "Este campo es útil cuando la descripción de los vídeos de la galería tienen "
421
  "diferentes tamaños."
422
 
423
- #: templates/admin_tabs.php:353
424
  msgid "Thumbnail alignment:"
425
  msgstr "Alineación de miniaturas:"
426
 
427
- #: templates/admin_tabs.php:355
428
  msgid "none"
429
  msgstr "Ninguno"
430
 
431
- #: templates/admin_tabs.php:356
432
  msgid "Left"
433
  msgstr "Izquierda"
434
 
435
- #: templates/admin_tabs.php:357
436
  msgid "Right"
437
  msgstr "Derecha"
438
 
439
- #: templates/admin_tabs.php:364
440
  msgid "Thumbnail width:"
441
  msgstr "Ancho de miniaturas:"
442
 
443
- #: templates/admin_tabs.php:366
444
  msgid "Extra small"
445
  msgstr "Extra pequeño"
446
 
447
- #: templates/admin_tabs.php:367
448
  msgid "Small"
449
  msgstr "Pequeño"
450
 
451
- #: templates/admin_tabs.php:368
452
  msgid "Half"
453
  msgstr "Medio"
454
 
455
- #: templates/admin_tabs.php:369
456
  msgid "Large"
457
  msgstr "Grande"
458
 
459
- #: templates/admin_tabs.php:370
460
  msgid "Extra large"
461
  msgstr "Extra grande"
462
 
463
- #: templates/admin_tabs.php:374
464
  msgid "Min. size with alignment:"
465
  msgstr "Mín. tamaño con alineación:"
466
 
467
- #: templates/admin_tabs.php:377
468
  msgid "Tablets"
469
  msgstr "Tablet:"
470
 
471
- #: templates/admin_tabs.php:378
472
  msgid "Medium Desktops"
473
  msgstr "Escritorio medio:"
474
 
475
- #: templates/admin_tabs.php:379
476
  msgid "Large devices"
477
  msgstr "Dispositivos grandes"
478
 
479
- #: templates/admin_tabs.php:381
480
  msgid ""
481
  "Thumbnails will be aligned only from the size of selected device to prevent "
482
  "unwanted effects in small sizes."
@@ -484,11 +498,11 @@ msgstr ""
484
  "Las miniaturas serán alineadas sólo desde el tamaño del dispositivo "
485
  "seleccionado para prevenir efectos no deseados en dispositivos pequeños."
486
 
487
- #: templates/admin_tabs.php:388
488
  msgid "Add \"nofollow\" attribute to links"
489
  msgstr "Añade el atributo \"nofollow\" a los enlaces"
490
 
491
- #: templates/admin_tabs.php:389
492
  msgid ""
493
  "\"nofollow\" attribute provides a way for webmasters to tell search engines "
494
  "\"Don't follow this specific link.\""
@@ -496,31 +510,31 @@ msgstr ""
496
  "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los "
497
  "motores de búsqueda para no seguir un enlace."
498
 
499
- #: templates/admin_tabs.php:395 templates/admin_tabs.php:440
500
  msgid "Open in a new window or tab"
501
  msgstr "Abrir en una ventana nueva o pestaña"
502
 
503
- #: templates/admin_tabs.php:400
504
  msgid "Show pagination"
505
  msgstr "Mostrar paginación"
506
 
507
- #: templates/admin_tabs.php:404
508
  msgid "Thumbnail:"
509
  msgstr "Miniatura:"
510
 
511
- #: templates/admin_tabs.php:408
512
  msgid "Description:"
513
  msgstr "Descripción:"
514
 
515
- #: templates/admin_tabs.php:429
516
  msgid "Link text:"
517
  msgstr "Texto del enlace"
518
 
519
- #: templates/admin_tabs.php:435
520
  msgid "Show link to channel"
521
  msgstr "Mostrar enlace al canal"
522
 
523
- #: templates/admin_tabs.php:445
524
  msgid "Show link to thank the developer"
525
  msgstr "Mostrar enlace para agradecer al desarrollador"
526
 
@@ -552,25 +566,50 @@ msgstr "Galería de Canal de Youtube"
552
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
553
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
554
 
555
- #: youtube-channel-gallery.php:603
556
  msgid "Show more videos»"
557
  msgstr "Ver más vídeos»"
558
 
559
- #: youtube-channel-gallery.php:612
560
  msgid "There is no video to show."
561
  msgstr "No hay ningún vídeo para mostrar."
562
 
563
- #: youtube-channel-gallery.php:690
 
 
 
 
 
 
 
 
 
 
564
  #, php-format
565
- msgid "Message from server: \"%1$s\". "
566
- msgstr "Mensaje del servidor: \"%1$s\". "
567
 
568
- #: youtube-channel-gallery.php:691
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
  #, php-format
570
  msgid "Check in YouTube if the id %1$s belongs to a %2$s. "
571
  msgstr "Comprueba en YouTube si el id %1$s corresponde a un %2$s. "
572
 
573
- #: youtube-channel-gallery.php:693
574
  #, php-format
575
  msgid ""
576
  "If the user id is correct, check that the channel of the user has list of "
@@ -579,18 +618,25 @@ msgstr ""
579
  "Si el id de usuario es correcto, comprueba que el canal de usuario tiene una "
580
  "lista de \"%1$s\". "
581
 
582
- #: youtube-channel-gallery.php:695
583
  msgid ""
584
  "Check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
585
- "gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin."
 
 
586
  msgstr ""
587
  "Revise el <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
588
- "gallery/faq/\" target=\"_blank\"> FAQ </ a> del plugin."
 
 
589
 
590
- #: youtube-channel-gallery.php:768
591
  msgid "There are no videos matching selected criteria"
592
  msgstr "No hay vídeos que se ajusten al criterio seleccionado"
593
 
 
 
 
594
  #~ msgid "Show player above thumbnails"
595
  #~ msgstr "Mostrar reproductor sobre miniaturas"
596
 
7
  msgstr ""
8
  "Project-Id-Version: youtube-channel-gallery\n"
9
  "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2015-06-30 15:16+0100\n"
11
+ "PO-Revision-Date: 2015-06-30 15:19+0100\n"
12
  "Last-Translator: Javier <javierpose@gmail.com>\n"
13
  "Language-Team: PoseLab <javierpose@gmail.com>\n"
14
  "Language: es_ES\n"
22
  "X-Poedit-SourceCharset: utf-8\n"
23
  "X-Poedit-SearchPath-0: .\n"
24
 
25
+ #: templates/admin_tabs.php:3 templates/admin_tabs.php:413
26
  msgid "Title:"
27
  msgstr "Título:"
28
 
75
  msgstr "Lista de reproducción"
76
 
77
  #: templates/admin_tabs.php:42
78
+ msgid "Identify by:"
79
+ msgstr "Identificar por:"
80
 
81
+ #: templates/admin_tabs.php:44
82
+ msgid "Username"
83
+ msgstr "Nombre de usuario"
84
+
85
+ #: templates/admin_tabs.php:45
86
+ msgid "Channel ID"
87
+ msgstr "ID de canal:"
88
+
89
+ #: templates/admin_tabs.php:49
90
+ msgid "YouTube id:"
91
+ msgstr "Id de Youtube:"
92
+
93
+ #: templates/admin_tabs.php:50
94
  msgid "YouTube playlist id:"
95
  msgstr "Id de lista de reproducción de YouTube:"
96
 
97
+ #: templates/admin_tabs.php:56
98
  msgid "Playlist order:"
99
  msgstr "Orden de lista de reproducción:"
100
 
101
+ #: templates/admin_tabs.php:58
102
  msgid "Date Order"
103
  msgstr "Ordenar por fecha"
104
 
105
+ #: templates/admin_tabs.php:59
106
  msgid "Rating Order"
107
  msgstr "Ordenar por calificación"
108
 
109
+ #: templates/admin_tabs.php:60
110
  msgid "Relevance Order"
111
+ msgstr "Ordenar por relevancia"
112
 
113
+ #: templates/admin_tabs.php:61
114
  msgid "Title Order"
115
  msgstr "Ordenar por título"
116
 
117
+ #: templates/admin_tabs.php:62
118
  msgid "Video Count Order"
119
+ msgstr "Ordenar por número de vídeos subidos"
120
 
121
+ #: templates/admin_tabs.php:63
122
  msgid "View Count Order"
123
+ msgstr "Ordenar por número de reproducciones"
124
 
125
+ #: templates/admin_tabs.php:70
126
  msgid "Cache time (hours):"
127
  msgstr "Tiempo de cache (horas):"
128
 
129
+ #: templates/admin_tabs.php:72
130
  msgid ""
131
  "Hours that RSS data is saved in database, to not make a request every time "
132
  "the page is displayed. Assign this value according to how often you upgrade "
136
  "solicitud cada vez que se muestra la página. Asigna este valor en función de "
137
  "la frecuencia con que actualizas la lista de reproducción en YouTube."
138
 
139
+ #: templates/admin_tabs.php:79
140
  msgid "Activate cache"
141
  msgstr "Activar caché"
142
 
143
+ #: templates/admin_tabs.php:80
144
  msgid ""
145
  "If you disable this field the cache will be deleted and will not be used. "
146
  "This is useful to refresh immediately the YouTube RSS used by the plugin. "
152
  "Vuelve a habilitar la caché cuando la galería muestre los cambios que ha "
153
  "realizado en su cuenta de YouTube."
154
 
155
+ #: templates/admin_tabs.php:95
156
  msgid "Player:"
157
  msgstr "Reproductor:"
158
 
159
+ #: templates/admin_tabs.php:97
160
  msgid "Without player"
161
  msgstr "Sin reproductor"
162
 
163
+ #: templates/admin_tabs.php:98
164
  msgid "show player"
165
  msgstr "mostrar reproductor"
166
 
167
+ #: templates/admin_tabs.php:99
168
  msgid "show player in Magnific Popup"
169
  msgstr "mostrar reproductor en Magnific Popup"
170
 
171
+ #: templates/admin_tabs.php:106
172
  msgid "Width:"
173
  msgstr "Ancho:"
174
 
175
+ #: templates/admin_tabs.php:109
176
  msgid "%"
177
+ msgstr "%"
178
 
179
+ #: templates/admin_tabs.php:110
180
  msgid "px"
181
+ msgstr "px"
182
 
183
+ #: templates/admin_tabs.php:114 templates/admin_tabs.php:264
184
  msgid "Aspect ratio:"
185
  msgstr "Relación de aspecto:"
186
 
187
+ #: templates/admin_tabs.php:116 templates/admin_tabs.php:266
188
  msgid "Standard (4x3)"
189
  msgstr "Estándar (4x3)"
190
 
191
+ #: templates/admin_tabs.php:117 templates/admin_tabs.php:267
192
  msgid "Widescreen (16x9)"
193
  msgstr "Panorámico (16x9)"
194
 
195
+ #: templates/admin_tabs.php:124
196
  msgid "Theme:"
197
  msgstr "Tema:"
198
 
199
+ #: templates/admin_tabs.php:126
200
  msgid "Dark"
201
  msgstr "Oscuro"
202
 
203
+ #: templates/admin_tabs.php:127
204
  msgid "Light"
205
  msgstr "Claro"
206
 
207
+ #: templates/admin_tabs.php:131
208
  msgid "Progress bar color:"
209
  msgstr "Color de barra de progreso:"
210
 
211
+ #: templates/admin_tabs.php:133
212
  msgid "Red"
213
  msgstr "Rojo"
214
 
215
+ #: templates/admin_tabs.php:134
216
  msgid "White"
217
  msgstr "Blanco"
218
 
219
+ #: templates/admin_tabs.php:141
220
  msgid "Video quality:"
221
  msgstr "Calidad del vídeo:"
222
 
223
+ #: templates/admin_tabs.php:143
224
  msgid "default"
225
  msgstr "por defecto"
226
 
227
+ #: templates/admin_tabs.php:144
228
  msgid "highres"
229
  msgstr "alta resolución"
230
 
231
+ #: templates/admin_tabs.php:145
232
  msgid "hd1080"
233
  msgstr "hd1080"
234
 
235
+ #: templates/admin_tabs.php:146
236
  msgid "hd720"
237
  msgstr "hd720"
238
 
239
+ #: templates/admin_tabs.php:147
240
  msgid "large"
241
  msgstr "largo"
242
 
243
+ #: templates/admin_tabs.php:148
244
  msgid "medium"
245
  msgstr "mediano"
246
 
247
+ #: templates/admin_tabs.php:149
248
  msgid "small"
249
  msgstr "pequeño"
250
 
251
+ #: templates/admin_tabs.php:151
252
  msgid ""
253
  "Default value enables YouTube to select the most appropriate playback "
254
  "quality. If you select a quality level that is not available for the video, "
259
  "disponible para el vídeo, la calidad se ajustará al siguiente nivel más bajo "
260
  "que este disponible."
261
 
262
+ #: templates/admin_tabs.php:158
263
  msgid "Autoplay"
264
  msgstr "Autoplay"
265
 
266
+ #: templates/admin_tabs.php:162
267
  msgid "Show YouTube logo"
268
  msgstr "Mostrar el logotipo de YouTube"
269
 
270
+ #: templates/admin_tabs.php:163
271
  msgid ""
272
  "Activate this field to show the YouTube logo in the control bar. Setting the "
273
  "color parameter to white will show the YouTube logo in the control bar."
276
  "Un ajuste del parámetro de color a blanco mostrará el logotipo de YouTube en "
277
  "la barra de control."
278
 
279
+ #: templates/admin_tabs.php:170
280
  msgid "Show related videos"
281
  msgstr "Mostrar los vídeos relacionados"
282
 
283
+ #: templates/admin_tabs.php:171
284
  msgid ""
285
  "Activate this field to show related videos when playback of the video ends."
286
  msgstr ""
287
  "Activa este campo para mostrar videos relacionados cuando termine la "
288
  "reproducción del vídeo."
289
 
290
+ #: templates/admin_tabs.php:175
291
  msgid "Show info"
292
  msgstr "Mostrar información"
293
 
294
+ #: templates/admin_tabs.php:176
295
  msgid ""
296
  "Activate this field to display information like the video title and uploader "
297
  "before the video starts playing."
299
  "Active este campo para mostrar información como el título del vídeo y nombre "
300
  "de usuario antes de que el vídeo comience a reproducirse."
301
 
302
+ #: templates/admin_tabs.php:182 templates/admin_tabs.php:234
303
+ #: templates/admin_tabs.php:409 templates/admin_tabs.php:420
304
+ #: templates/admin_tabs.php:457
305
  msgid "Order:"
306
  msgstr "Orden:"
307
 
308
+ #: templates/admin_tabs.php:199
309
  msgid "Search input text:"
310
+ msgstr "Campo de búsqueda de texto:"
311
 
312
+ #: templates/admin_tabs.php:203
313
  msgid "Restrict search to (# separated):"
314
+ msgstr "Restringir búsqueda a (separa con #):"
315
 
316
+ #: templates/admin_tabs.php:207
317
  msgid "You must assing this tags to your videos to restrict the search:"
318
+ msgstr "Debes asignar estas etiquetas a los vídeos para restringir la búsqueda:"
319
 
320
+ #: templates/admin_tabs.php:216
321
  msgid "Restrict search by default: It will overwrite results of feed tab)"
322
  msgstr ""
323
+ "Restringir búsqueda por defecto: Sobreescribirá los resultados de la pestaña "
324
+ "Feed"
325
 
326
+ #: templates/admin_tabs.php:218 templates/admin_tabs.php:383
327
  #: templates/search.php:10
328
  msgid "All"
329
  msgstr "Todos"
330
 
331
+ #: templates/admin_tabs.php:226
332
  msgid "Show search box"
333
  msgstr "Mostrar caja de búsqueda"
334
 
335
+ #: templates/admin_tabs.php:230
336
  msgid "Show select with Playlists"
337
  msgstr "Show desplegable con Playlistas"
338
 
339
+ #: templates/admin_tabs.php:248
340
  msgid "Number of videos to show:"
341
  msgstr "Vídeos a mostrar:"
342
 
343
+ #: templates/admin_tabs.php:250
344
  msgid "The plugin can display a maximum of 50 videos for each page."
345
  msgstr "El plugin puede mostrar un máximo de 50 vídeos por página."
346
 
347
+ #: templates/admin_tabs.php:253
348
  msgid "Thumbnail resolution:"
349
  msgstr "Resolución de miniaturas:"
350
 
351
+ #: templates/admin_tabs.php:255
352
  msgid "Default (120x90 px)"
353
  msgstr "Por defecto (120x90 px)"
354
 
355
+ #: templates/admin_tabs.php:256
356
  msgid "Medium (320x180)"
357
  msgstr "Media (320x180)"
358
 
359
+ #: templates/admin_tabs.php:257
360
  msgid "High (480x360)"
361
  msgstr "Alta (480x360)"
362
 
363
+ #: templates/admin_tabs.php:274
364
  msgid "Thumbnail columns:"
365
  msgstr "Columnas de las miniaturas:"
366
 
367
+ #: templates/admin_tabs.php:280
368
  msgid "Phones:"
369
  msgstr "Móviles:"
370
 
371
+ #: templates/admin_tabs.php:288
372
  msgid "Tablets:"
373
  msgstr "Tablet:"
374
 
375
+ #: templates/admin_tabs.php:300
376
  msgid "Medium Desktops:"
377
  msgstr "Escritorios medio:"
378
 
379
+ #: templates/admin_tabs.php:308
380
  msgid "Large Desktops:"
381
  msgstr "Escritorios grandes:"
382
 
383
+ #: templates/admin_tabs.php:323
384
  msgid "Show title or description"
385
  msgstr "Mostrar título y descripción"
386
 
387
+ #: templates/admin_tabs.php:331
388
  msgid "Show title"
389
  msgstr "Mostrar Título"
390
 
391
+ #: templates/admin_tabs.php:335
392
  msgid "Show description"
393
  msgstr "Mostrar descripción"
394
 
395
+ #: templates/admin_tabs.php:341
396
  msgid "Title tag:"
397
  msgstr "Etiqueta de título:"
398
 
399
+ #: templates/admin_tabs.php:343
400
  msgid "h1"
401
  msgstr "h1"
402
 
403
+ #: templates/admin_tabs.php:344
404
  msgid "h2"
405
  msgstr "h2"
406
 
407
+ #: templates/admin_tabs.php:345
408
  msgid "h3"
409
  msgstr "h3"
410
 
411
+ #: templates/admin_tabs.php:346
412
  msgid "h4"
413
  msgstr "h4"
414
 
415
+ #: templates/admin_tabs.php:347
416
  msgid "h5"
417
  msgstr "h5"
418
 
419
+ #: templates/admin_tabs.php:348
420
  msgid "h6"
421
  msgstr "h6"
422
 
423
+ #: templates/admin_tabs.php:352
424
  msgid "Description words:"
425
  msgstr "Palabras en descripción:"
426
 
427
+ #: templates/admin_tabs.php:354
428
  msgid ""
429
  "Set the maximum number of words that will be displayed of the description. "
430
  "This field is useful when the descriptions of videos in the gallery have "
434
  "Este campo es útil cuando la descripción de los vídeos de la galería tienen "
435
  "diferentes tamaños."
436
 
437
+ #: templates/admin_tabs.php:360
438
  msgid "Thumbnail alignment:"
439
  msgstr "Alineación de miniaturas:"
440
 
441
+ #: templates/admin_tabs.php:362
442
  msgid "none"
443
  msgstr "Ninguno"
444
 
445
+ #: templates/admin_tabs.php:363
446
  msgid "Left"
447
  msgstr "Izquierda"
448
 
449
+ #: templates/admin_tabs.php:364
450
  msgid "Right"
451
  msgstr "Derecha"
452
 
453
+ #: templates/admin_tabs.php:371
454
  msgid "Thumbnail width:"
455
  msgstr "Ancho de miniaturas:"
456
 
457
+ #: templates/admin_tabs.php:373
458
  msgid "Extra small"
459
  msgstr "Extra pequeño"
460
 
461
+ #: templates/admin_tabs.php:374
462
  msgid "Small"
463
  msgstr "Pequeño"
464
 
465
+ #: templates/admin_tabs.php:375
466
  msgid "Half"
467
  msgstr "Medio"
468
 
469
+ #: templates/admin_tabs.php:376
470
  msgid "Large"
471
  msgstr "Grande"
472
 
473
+ #: templates/admin_tabs.php:377
474
  msgid "Extra large"
475
  msgstr "Extra grande"
476
 
477
+ #: templates/admin_tabs.php:381
478
  msgid "Min. size with alignment:"
479
  msgstr "Mín. tamaño con alineación:"
480
 
481
+ #: templates/admin_tabs.php:384
482
  msgid "Tablets"
483
  msgstr "Tablet:"
484
 
485
+ #: templates/admin_tabs.php:385
486
  msgid "Medium Desktops"
487
  msgstr "Escritorio medio:"
488
 
489
+ #: templates/admin_tabs.php:386
490
  msgid "Large devices"
491
  msgstr "Dispositivos grandes"
492
 
493
+ #: templates/admin_tabs.php:388
494
  msgid ""
495
  "Thumbnails will be aligned only from the size of selected device to prevent "
496
  "unwanted effects in small sizes."
498
  "Las miniaturas serán alineadas sólo desde el tamaño del dispositivo "
499
  "seleccionado para prevenir efectos no deseados en dispositivos pequeños."
500
 
501
+ #: templates/admin_tabs.php:395
502
  msgid "Add \"nofollow\" attribute to links"
503
  msgstr "Añade el atributo \"nofollow\" a los enlaces"
504
 
505
+ #: templates/admin_tabs.php:396
506
  msgid ""
507
  "\"nofollow\" attribute provides a way for webmasters to tell search engines "
508
  "\"Don't follow this specific link.\""
510
  "El atributo \"nofollow\" ofrece a los webmasters un modo de indicar a los "
511
  "motores de búsqueda para no seguir un enlace."
512
 
513
+ #: templates/admin_tabs.php:402 templates/admin_tabs.php:447
514
  msgid "Open in a new window or tab"
515
  msgstr "Abrir en una ventana nueva o pestaña"
516
 
517
+ #: templates/admin_tabs.php:407
518
  msgid "Show pagination"
519
  msgstr "Mostrar paginación"
520
 
521
+ #: templates/admin_tabs.php:411
522
  msgid "Thumbnail:"
523
  msgstr "Miniatura:"
524
 
525
+ #: templates/admin_tabs.php:415
526
  msgid "Description:"
527
  msgstr "Descripción:"
528
 
529
+ #: templates/admin_tabs.php:436
530
  msgid "Link text:"
531
  msgstr "Texto del enlace"
532
 
533
+ #: templates/admin_tabs.php:442
534
  msgid "Show link to channel"
535
  msgstr "Mostrar enlace al canal"
536
 
537
+ #: templates/admin_tabs.php:452
538
  msgid "Show link to thank the developer"
539
  msgstr "Mostrar enlace para agradecer al desarrollador"
540
 
566
  msgid "Show a youtube video and a gallery of thumbnails for a youtube channel"
567
  msgstr "Muestra un vídeo y una galería de miniaturas de una canal de Youtube "
568
 
569
+ #: youtube-channel-gallery.php:606
570
  msgid "Show more videos»"
571
  msgstr "Ver más vídeos»"
572
 
573
+ #: youtube-channel-gallery.php:615
574
  msgid "There is no video to show."
575
  msgstr "No hay ningún vídeo para mostrar."
576
 
577
+ #: youtube-channel-gallery.php:694
578
+ #, php-format
579
+ msgid "Error type: \"%1$s\". "
580
+ msgstr "Tipo de error: \"%1$s\". "
581
+
582
+ #: youtube-channel-gallery.php:695
583
+ #, php-format
584
+ msgid "Error message: \"%1$s\" "
585
+ msgstr "Mensaje de error: \"%1$s\" "
586
+
587
+ #: youtube-channel-gallery.php:696
588
  #, php-format
589
+ msgid "Domain: \"%1$s\". "
590
+ msgstr "Dominio: \"%1$s\". "
591
 
592
+ #: youtube-channel-gallery.php:697
593
+ #, php-format
594
+ msgid "Reason: \"%1$s\". "
595
+ msgstr "Razón: \"%1$s\". "
596
+
597
+ #: youtube-channel-gallery.php:698
598
+ #, php-format
599
+ msgid "Location type: \"%1$s\". "
600
+ msgstr "Tipo de localización: \"%1$s\". "
601
+
602
+ #: youtube-channel-gallery.php:699
603
+ #, php-format
604
+ msgid "Location: \"%1$s\". "
605
+ msgstr "Localización: \"%1$s\". "
606
+
607
+ #: youtube-channel-gallery.php:701
608
  #, php-format
609
  msgid "Check in YouTube if the id %1$s belongs to a %2$s. "
610
  msgstr "Comprueba en YouTube si el id %1$s corresponde a un %2$s. "
611
 
612
+ #: youtube-channel-gallery.php:703
613
  #, php-format
614
  msgid ""
615
  "If the user id is correct, check that the channel of the user has list of "
618
  "Si el id de usuario es correcto, comprueba que el canal de usuario tiene una "
619
  "lista de \"%1$s\". "
620
 
621
+ #: youtube-channel-gallery.php:705
622
  msgid ""
623
  "Check the <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
624
+ "gallery/faq/\" target=\"_blank\">FAQ</a> of the plugin or send error messages "
625
+ "to <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery\" "
626
+ "target=\"_blank\">support</a>."
627
  msgstr ""
628
  "Revise el <a href=\"http://wordpress.org/extend/plugins/youtube-channel-"
629
+ "gallery/faq/\" target=\"_blank\">FAQ</a> del plugin or envíe los mensajes de "
630
+ "error a <a href=\"https://wordpress.org/support/plugin/youtube-channel-gallery"
631
+ "\" target=\"_blank\">support</a>."
632
 
633
+ #: youtube-channel-gallery.php:778
634
  msgid "There are no videos matching selected criteria"
635
  msgstr "No hay vídeos que se ajusten al criterio seleccionado"
636
 
637
+ #~ msgid "Message from server: \"%1$s\". "
638
+ #~ msgstr "Mensaje del servidor: \"%1$s\". "
639
+
640
  #~ msgid "Show player above thumbnails"
641
  #~ msgstr "Mostrar reproductor sobre miniaturas"
642
 
readme.txt CHANGED
@@ -12,7 +12,7 @@ Show a YouTube video and a gallery of thumbnails for a YouTube channel.
12
 
13
  == Description ==
14
 
15
- `WARNING: The name of some Shortcode options has change since version 2`
16
 
17
  Show a YouTube video and a gallery of thumbnails for a YouTube user channel.
18
 
@@ -47,7 +47,7 @@ Description of the different fields of the plugin:
47
 
48
  * **Key:** You must insert your own API key. The API key inserted is an example and if you do not change the API key for yours you may receive an error message of exceeded quota. This is necessary in version 3 of the YouTube API, [Obtaining authorization credentials](https://developers.google.com/youtube/registering_an_application). Shortcode attribute: key; value: API key. (Required).
49
 
50
- * **Video feed type:** option to select the feed type to use to show videos. Yo can select Uploaded by a user, User's favorites, User's likes or Playlist. Shortcode attribute: feed; value: user (default), favorites, likes or playlist. (Optional).
51
 
52
  * **Identify by:** option to select the type you want id to use to identify your channel, your user name or id channel. Shortcode attribute: identify_by; value: username (default) or channelid. (Optional).
53
 
@@ -148,7 +148,7 @@ Example of shortcode use:
148
  * Italian (it_IT) - [Marco Milesi](https://profiles.wordpress.org/milmor).
149
  * Spanish (es_ES) - [PoseLab](http://poselab.com/)
150
 
151
- If you have created your own language pack, or have an update of an existing one, you can [send me](mailto:javierpose@gmail.com) your gettext PO and MO so that I can bundle it into the Youtube Channel Gallery.
152
 
153
 
154
  == Installation ==
@@ -201,13 +201,17 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
201
 
202
  == Changelog ==
203
 
 
 
 
 
204
  = 2.2.1 =
205
  * Added option to use channel id or username to identify your Youtube channel.
206
 
207
  = 2.2 =
208
  * Optimization of cache use.
209
  * Fixed Playlists order option and added the options allowed by YouTube api 3: Date Order, Rating Order, Relevance Order, Title Order, View Count Order.
210
- * Fixed thumbail link in pages with multiple instances of the plugin.
211
  * Added pagination of thumbnails. Take into account YouTube API does not correctly calculate the total number of videos in channels with a lot of videos.
212
  * Added new video feed types: user's favorites and user's likes.
213
  * JavaScript optimization.
@@ -226,7 +230,7 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
226
  * Delete debug element.
227
 
228
  = 2.0.1 =
229
- * Change short_open_tag in thumbs.php for compability with php < 5.4.
230
 
231
  = 2.0.0 =
232
  * Update in order to make it compatible with YouTube API 3.
@@ -237,7 +241,7 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
237
  * Optimization of alignment behavior.
238
  * Options to set the order of elements of thumbnails tab.
239
  * Option to promotion.
240
- * Rewritted code.
241
 
242
  = 1.8.7 =
243
  * Fixed problem with SSL.
@@ -352,7 +356,7 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
352
 
353
  = 1.6.1 =
354
  * Added options to show title and description with thumbnails.
355
- * Added new classes to better manage the final appearance (rows, columns, even, odd, number of row an column).
356
  * Calculated width between thumbnails.
357
 
358
  = 1.5.4 =
@@ -366,7 +370,7 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
366
  * Added Link text field to Links.
367
  * Added class to last thumbnail of each row to delete the margin-right in CSS.
368
  * Added class to first thumbnail of each row to clear float in CSS.
369
- * Check that the inserted user name exists.
370
  * Changes in CSS.
371
 
372
  = 1.4.8.1 =
@@ -406,4 +410,5 @@ See [HTTPS Support for YouTube Embeds](http://apiblog.youtube.com/2011/02/https-
406
  * Added effect: hover on thumbnails to display a play button.
407
 
408
  = 1.0 =
409
- * Initial Release.
 
12
 
13
  == Description ==
14
 
15
+ `WARNING: The name of some Shortcode options has changed since version 2`
16
 
17
  Show a YouTube video and a gallery of thumbnails for a YouTube user channel.
18
 
47
 
48
  * **Key:** You must insert your own API key. The API key inserted is an example and if you do not change the API key for yours you may receive an error message of exceeded quota. This is necessary in version 3 of the YouTube API, [Obtaining authorization credentials](https://developers.google.com/youtube/registering_an_application). Shortcode attribute: key; value: API key. (Required).
49
 
50
+ * **Video feed type:** option to select the feed type to use to show videos. You can select Uploaded by a user, User's favorites, User's likes or Playlist. Shortcode attribute: feed; value: user (default), favorites, likes or playlist. (Optional).
51
 
52
  * **Identify by:** option to select the type you want id to use to identify your channel, your user name or id channel. Shortcode attribute: identify_by; value: username (default) or channelid. (Optional).
53
 
148
  * Italian (it_IT) - [Marco Milesi](https://profiles.wordpress.org/milmor).
149
  * Spanish (es_ES) - [PoseLab](http://poselab.com/)
150
 
151
+ If you have created your own language pack, or have an update of an existing one, you can [send me](mailto:javier@poselab.com) your gettext PO and MO so that I can bundle it into the Youtube Channel Gallery. You can also translate, improve or update a plugin translation in [Transifex](https://www.transifex.com/projects/p/youtube-channel-gallery). Go to [Youtube Channel Galllery project page of Transifex](https://www.transifex.com/projects/p/youtube-channel-gallery), click "Request language", Select the language you want to translate and wait until your request is accepted. When the language is translated it will be included in the plugin.
152
 
153
 
154
  == Installation ==
201
 
202
  == Changelog ==
203
 
204
+ = 2.2.2 =
205
+ * Error message optimization to improve users' debug.
206
+ * Changes in Spanish translation.
207
+
208
  = 2.2.1 =
209
  * Added option to use channel id or username to identify your Youtube channel.
210
 
211
  = 2.2 =
212
  * Optimization of cache use.
213
  * Fixed Playlists order option and added the options allowed by YouTube api 3: Date Order, Rating Order, Relevance Order, Title Order, View Count Order.
214
+ * Fixed thumbnail link in pages with multiple instances of the plugin.
215
  * Added pagination of thumbnails. Take into account YouTube API does not correctly calculate the total number of videos in channels with a lot of videos.
216
  * Added new video feed types: user's favorites and user's likes.
217
  * JavaScript optimization.
230
  * Delete debug element.
231
 
232
  = 2.0.1 =
233
+ * Change short_open_tag in thumbs.php for compatibility with php < 5.4.
234
 
235
  = 2.0.0 =
236
  * Update in order to make it compatible with YouTube API 3.
241
  * Optimization of alignment behavior.
242
  * Options to set the order of elements of thumbnails tab.
243
  * Option to promotion.
244
+ * Rewritten code.
245
 
246
  = 1.8.7 =
247
  * Fixed problem with SSL.
356
 
357
  = 1.6.1 =
358
  * Added options to show title and description with thumbnails.
359
+ * Added new classes to better manage the final appearance (rows, columns, even, odd, number of row and column).
360
  * Calculated width between thumbnails.
361
 
362
  = 1.5.4 =
370
  * Added Link text field to Links.
371
  * Added class to last thumbnail of each row to delete the margin-right in CSS.
372
  * Added class to first thumbnail of each row to clear float in CSS.
373
+ * Check that the inserted username exists.
374
  * Changes in CSS.
375
 
376
  = 1.4.8.1 =
410
  * Added effect: hover on thumbnails to display a play button.
411
 
412
  = 1.0 =
413
+ * Initial Release.
414
+
scripts.js CHANGED
@@ -1,7 +1,7 @@
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
- Version: 2.2.1
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
  jQuery(document).ready(function($) {
1
  /*------------------------------------------------------------
2
  Plugin Name: Youtube Channel Gallery
3
  Plugin URI: http://www.poselab.com/
4
+ Version: 2.2.2
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  ------------------------------------------------------------*/
7
  jQuery(document).ready(function($) {
youtube-channel-gallery.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
- Version: 2.2.1
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
@@ -680,21 +680,29 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
680
 
681
  ob_start();
682
  if ($videos_result['response']['code'] != 200) {
 
683
  if ($ytchag_feed == 'playlist') {
684
  $error_link = '<a href="https://www.youtube.com/playlist?list=' . $ytchag_user . '" target="_blank">' . $ytchag_user . '</a>';
685
  $error_type = $ytchag_feed;
686
  }else{
687
- $error_link = '<a href="https://www.youtube.com/user/' . $ytchag_user . '" target="_blank">' . $ytchag_user . '</a>';
 
688
  $error_type = $ytchag_identify_by;
689
  }
690
 
691
  $content = '<div class="vmcerror">';
692
- $content .= sprintf( __( 'Message from server: "%1$s". ', 'youtube-channel-gallery' ), $videos_result['response']['message'] );
 
 
 
 
 
 
693
  $content .= sprintf( __( 'Check in YouTube if the id %1$s belongs to a %2$s. ', 'youtube-channel-gallery' ), $error_link, $error_type );
694
  if ( $ytchag_feed !== 'playlist' && ($ytchag_feed === 'favorites' || $ytchag_feed === 'likes') ) {
695
  $content .= sprintf( __( 'If the user id is correct, check that the channel of the user has list of "%1$s". ', 'youtube-channel-gallery' ), $ytchag_feed );
696
  }
697
- $content .= __( 'Check the <a href="http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/" target="_blank">FAQ</a> of the plugin.', 'youtube-channel-gallery' );
698
  $content .= '</div>';
699
  }
700
  else {
@@ -779,14 +787,13 @@ class YoutubeChannelGallery_Widget extends WP_Widget {
779
  }
780
 
781
  function getUserPlaylists($identify_by, $user, $key, $cache, $cache_time) {
782
- if ($identify_by == 'username') {
783
- $identify = 'forUsername';
784
- }else{
785
  $identify = 'id';
 
 
786
  }
787
 
788
  $api = 'https://www.googleapis.com/youtube/v3/channels?part=contentDetails&' . $identify . '=' . $user . '&key=' . $key;
789
-
790
  $transientId = 'ytc-' . md5($api);
791
 
792
  if ($cache == 1) {
5
  Description: Show a youtube video and a gallery of thumbnails for a youtube channel.
6
  Author: Javier Gómez Pose
7
  Author URI: http://www.poselab.com/
8
+ Version: 2.2.2
9
  License: GPL2
10
 
11
  Copyright 2013 Javier Gómez Pose (email : javierpose@gmail.com)
680
 
681
  ob_start();
682
  if ($videos_result['response']['code'] != 200) {
683
+ $json = json_decode($videos_result['body']);
684
  if ($ytchag_feed == 'playlist') {
685
  $error_link = '<a href="https://www.youtube.com/playlist?list=' . $ytchag_user . '" target="_blank">' . $ytchag_user . '</a>';
686
  $error_type = $ytchag_feed;
687
  }else{
688
+ $id_type = $ytchag_identify_by=='channelid'?'channel':'user';
689
+ $error_link = '<a href="https://www.youtube.com/' . $id_type . '/' . $ytchag_user . '" target="_blank">' . $ytchag_user . '</a>';
690
  $error_type = $ytchag_identify_by;
691
  }
692
 
693
  $content = '<div class="vmcerror">';
694
+ $content .= sprintf( __( 'Error type: "%1$s". ', 'youtube-channel-gallery' ), $videos_result['response']['message'] );
695
+ $content .= sprintf( __( 'Error message: "%1$s" ', 'youtube-channel-gallery' ), $json->error->message );
696
+ $content .= sprintf( __( 'Domain: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->domain );
697
+ $content .= sprintf( __( 'Reason: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->reason );
698
+ $content .= sprintf( __( 'Location type: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->locationType );
699
+ $content .= sprintf( __( 'Location: "%1$s". ', 'youtube-channel-gallery' ), $json->error->errors[0]->location ) . '<br><br>';
700
+
701
  $content .= sprintf( __( 'Check in YouTube if the id %1$s belongs to a %2$s. ', 'youtube-channel-gallery' ), $error_link, $error_type );
702
  if ( $ytchag_feed !== 'playlist' && ($ytchag_feed === 'favorites' || $ytchag_feed === 'likes') ) {
703
  $content .= sprintf( __( 'If the user id is correct, check that the channel of the user has list of "%1$s". ', 'youtube-channel-gallery' ), $ytchag_feed );
704
  }
705
+ $content .= __( 'Check the <a href="http://wordpress.org/extend/plugins/youtube-channel-gallery/faq/" target="_blank">FAQ</a> of the plugin or send error messages to <a href="https://wordpress.org/support/plugin/youtube-channel-gallery" target="_blank">support</a>.', 'youtube-channel-gallery' );
706
  $content .= '</div>';
707
  }
708
  else {
787
  }
788
 
789
  function getUserPlaylists($identify_by, $user, $key, $cache, $cache_time) {
790
+ if ($identify_by == 'channelid') {
 
 
791
  $identify = 'id';
792
+ }else{
793
+ $identify = 'forUsername';
794
  }
795
 
796
  $api = 'https://www.googleapis.com/youtube/v3/channels?part=contentDetails&' . $identify . '=' . $user . '&key=' . $key;
 
797
  $transientId = 'ytc-' . md5($api);
798
 
799
  if ($cache == 1) {