Version Description
- Minor fix to avoid php notices filling up error logs. Thanks to @flynsarmy (again).
- Fixed FacebookLocales.xml URL.
- By default the FacebookLocales.xml is loaded from the local cache (to save on bandwidth) and it's only loaded from Facebook URL by user request.
- Deleted some commented debug stuff and translate portuguese comments to english.
Download this release
Release Info
Developer | wonderm00n |
Plugin | Open Graph for Facebook, Google+ and Twitter Card Tags |
Version | 0.5.2 |
Comparing to | |
See all releases |
Code changes from version 0.5.1 to 0.5.2
- includes/FacebookLocales.xml +850 -850
- includes/settings-page.php +32 -10
- readme.txt +17 -10
- wonderm00n-open-graph.php +12 -41
includes/FacebookLocales.xml
CHANGED
@@ -1,850 +1,850 @@
|
|
1 |
-
<?xml version=
|
2 |
-
<locales>
|
3 |
-
<locale>
|
4 |
-
<englishName>Afrikaans</englishName>
|
5 |
-
<codes>
|
6 |
-
<code>
|
7 |
-
<standard>
|
8 |
-
<name>FB</name>
|
9 |
-
<representation>af_ZA</representation>
|
10 |
-
</standard>
|
11 |
-
</code>
|
12 |
-
</codes>
|
13 |
-
</locale>
|
14 |
-
<locale>
|
15 |
-
<englishName>Arabic</englishName>
|
16 |
-
<codes>
|
17 |
-
<code>
|
18 |
-
<standard>
|
19 |
-
<name>FB</name>
|
20 |
-
<representation>ar_AR</representation>
|
21 |
-
</standard>
|
22 |
-
</code>
|
23 |
-
</codes>
|
24 |
-
</locale>
|
25 |
-
<locale>
|
26 |
-
<englishName>
|
27 |
-
<codes>
|
28 |
-
<code>
|
29 |
-
<standard>
|
30 |
-
<name>FB</name>
|
31 |
-
<representation>az_AZ</representation>
|
32 |
-
</standard>
|
33 |
-
</code>
|
34 |
-
</codes>
|
35 |
-
</locale>
|
36 |
-
<locale>
|
37 |
-
<englishName>Belarusian</englishName>
|
38 |
-
<codes>
|
39 |
-
<code>
|
40 |
-
<standard>
|
41 |
-
<name>FB</name>
|
42 |
-
<representation>be_BY</representation>
|
43 |
-
</standard>
|
44 |
-
</code>
|
45 |
-
</codes>
|
46 |
-
</locale>
|
47 |
-
<locale>
|
48 |
-
<englishName>Bulgarian</englishName>
|
49 |
-
<codes>
|
50 |
-
<code>
|
51 |
-
<standard>
|
52 |
-
<name>FB</name>
|
53 |
-
<representation>bg_BG</representation>
|
54 |
-
</standard>
|
55 |
-
</code>
|
56 |
-
</codes>
|
57 |
-
</locale>
|
58 |
-
<locale>
|
59 |
-
<englishName>Bengali</englishName>
|
60 |
-
<codes>
|
61 |
-
<code>
|
62 |
-
<standard>
|
63 |
-
<name>FB</name>
|
64 |
-
<representation>bn_IN</representation>
|
65 |
-
</standard>
|
66 |
-
</code>
|
67 |
-
</codes>
|
68 |
-
</locale>
|
69 |
-
<locale>
|
70 |
-
<englishName>Bosnian</englishName>
|
71 |
-
<codes>
|
72 |
-
<code>
|
73 |
-
<standard>
|
74 |
-
<name>FB</name>
|
75 |
-
<representation>bs_BA</representation>
|
76 |
-
</standard>
|
77 |
-
</code>
|
78 |
-
</codes>
|
79 |
-
</locale>
|
80 |
-
<locale>
|
81 |
-
<englishName>Catalan</englishName>
|
82 |
-
<codes>
|
83 |
-
<code>
|
84 |
-
<standard>
|
85 |
-
<name>FB</name>
|
86 |
-
<representation>ca_ES</representation>
|
87 |
-
</standard>
|
88 |
-
</code>
|
89 |
-
</codes>
|
90 |
-
</locale>
|
91 |
-
<locale>
|
92 |
-
<englishName>Czech</englishName>
|
93 |
-
<codes>
|
94 |
-
<code>
|
95 |
-
<standard>
|
96 |
-
<name>FB</name>
|
97 |
-
<representation>cs_CZ</representation>
|
98 |
-
</standard>
|
99 |
-
</code>
|
100 |
-
</codes>
|
101 |
-
</locale>
|
102 |
-
<locale>
|
103 |
-
<englishName>Welsh</englishName>
|
104 |
-
<codes>
|
105 |
-
<code>
|
106 |
-
<standard>
|
107 |
-
<name>FB</name>
|
108 |
-
<representation>cy_GB</representation>
|
109 |
-
</standard>
|
110 |
-
</code>
|
111 |
-
</codes>
|
112 |
-
</locale>
|
113 |
-
<locale>
|
114 |
-
<englishName>Danish</englishName>
|
115 |
-
<codes>
|
116 |
-
<code>
|
117 |
-
<standard>
|
118 |
-
<name>FB</name>
|
119 |
-
<representation>da_DK</representation>
|
120 |
-
</standard>
|
121 |
-
</code>
|
122 |
-
</codes>
|
123 |
-
</locale>
|
124 |
-
<locale>
|
125 |
-
<englishName>German</englishName>
|
126 |
-
<codes>
|
127 |
-
<code>
|
128 |
-
<standard>
|
129 |
-
<name>FB</name>
|
130 |
-
<representation>de_DE</representation>
|
131 |
-
</standard>
|
132 |
-
</code>
|
133 |
-
</codes>
|
134 |
-
</locale>
|
135 |
-
<locale>
|
136 |
-
<englishName>Greek</englishName>
|
137 |
-
<codes>
|
138 |
-
<code>
|
139 |
-
<standard>
|
140 |
-
<name>FB</name>
|
141 |
-
<representation>el_GR</representation>
|
142 |
-
</standard>
|
143 |
-
</code>
|
144 |
-
</codes>
|
145 |
-
</locale>
|
146 |
-
<locale>
|
147 |
-
<englishName>English (UK)</englishName>
|
148 |
-
<codes>
|
149 |
-
<code>
|
150 |
-
<standard>
|
151 |
-
<name>FB</name>
|
152 |
-
<representation>en_GB</representation>
|
153 |
-
</standard>
|
154 |
-
</code>
|
155 |
-
</codes>
|
156 |
-
</locale>
|
157 |
-
<locale>
|
158 |
-
<englishName>English (Pirate)</englishName>
|
159 |
-
<codes>
|
160 |
-
<code>
|
161 |
-
<standard>
|
162 |
-
<name>FB</name>
|
163 |
-
<representation>en_PI</representation>
|
164 |
-
</standard>
|
165 |
-
</code>
|
166 |
-
</codes>
|
167 |
-
</locale>
|
168 |
-
<locale>
|
169 |
-
<englishName>English (Upside Down)</englishName>
|
170 |
-
<codes>
|
171 |
-
<code>
|
172 |
-
<standard>
|
173 |
-
<name>FB</name>
|
174 |
-
<representation>en_UD</representation>
|
175 |
-
</standard>
|
176 |
-
</code>
|
177 |
-
</codes>
|
178 |
-
</locale>
|
179 |
-
<locale>
|
180 |
-
<englishName>English (US)</englishName>
|
181 |
-
<codes>
|
182 |
-
<code>
|
183 |
-
<standard>
|
184 |
-
<name>FB</name>
|
185 |
-
<representation>en_US</representation>
|
186 |
-
</standard>
|
187 |
-
</code>
|
188 |
-
</codes>
|
189 |
-
</locale>
|
190 |
-
<locale>
|
191 |
-
<englishName>Esperanto</englishName>
|
192 |
-
<codes>
|
193 |
-
<code>
|
194 |
-
<standard>
|
195 |
-
<name>FB</name>
|
196 |
-
<representation>eo_EO</representation>
|
197 |
-
</standard>
|
198 |
-
</code>
|
199 |
-
</codes>
|
200 |
-
</locale>
|
201 |
-
<locale>
|
202 |
-
<englishName>Spanish (Spain)</englishName>
|
203 |
-
<codes>
|
204 |
-
<code>
|
205 |
-
<standard>
|
206 |
-
<name>FB</name>
|
207 |
-
<representation>es_ES</representation>
|
208 |
-
</standard>
|
209 |
-
</code>
|
210 |
-
</codes>
|
211 |
-
</locale>
|
212 |
-
<locale>
|
213 |
-
<englishName>Spanish</englishName>
|
214 |
-
<codes>
|
215 |
-
<code>
|
216 |
-
<standard>
|
217 |
-
<name>FB</name>
|
218 |
-
<representation>es_LA</representation>
|
219 |
-
</standard>
|
220 |
-
</code>
|
221 |
-
</codes>
|
222 |
-
</locale>
|
223 |
-
<locale>
|
224 |
-
<englishName>Estonian</englishName>
|
225 |
-
<codes>
|
226 |
-
<code>
|
227 |
-
<standard>
|
228 |
-
<name>FB</name>
|
229 |
-
<representation>et_EE</representation>
|
230 |
-
</standard>
|
231 |
-
</code>
|
232 |
-
</codes>
|
233 |
-
</locale>
|
234 |
-
<locale>
|
235 |
-
<englishName>Basque</englishName>
|
236 |
-
<codes>
|
237 |
-
<code>
|
238 |
-
<standard>
|
239 |
-
<name>FB</name>
|
240 |
-
<representation>eu_ES</representation>
|
241 |
-
</standard>
|
242 |
-
</code>
|
243 |
-
</codes>
|
244 |
-
</locale>
|
245 |
-
<locale>
|
246 |
-
<englishName>Persian</englishName>
|
247 |
-
<codes>
|
248 |
-
<code>
|
249 |
-
<standard>
|
250 |
-
<name>FB</name>
|
251 |
-
<representation>fa_IR</representation>
|
252 |
-
</standard>
|
253 |
-
</code>
|
254 |
-
</codes>
|
255 |
-
</locale>
|
256 |
-
<locale>
|
257 |
-
<englishName>Leet Speak</englishName>
|
258 |
-
<codes>
|
259 |
-
<code>
|
260 |
-
<standard>
|
261 |
-
<name>FB</name>
|
262 |
-
<representation>fb_LT</representation>
|
263 |
-
</standard>
|
264 |
-
</code>
|
265 |
-
</codes>
|
266 |
-
</locale>
|
267 |
-
<locale>
|
268 |
-
<englishName>Finnish</englishName>
|
269 |
-
<codes>
|
270 |
-
<code>
|
271 |
-
<standard>
|
272 |
-
<name>FB</name>
|
273 |
-
<representation>fi_FI</representation>
|
274 |
-
</standard>
|
275 |
-
</code>
|
276 |
-
</codes>
|
277 |
-
</locale>
|
278 |
-
<locale>
|
279 |
-
<englishName>Faroese</englishName>
|
280 |
-
<codes>
|
281 |
-
<code>
|
282 |
-
<standard>
|
283 |
-
<name>FB</name>
|
284 |
-
<representation>fo_FO</representation>
|
285 |
-
</standard>
|
286 |
-
</code>
|
287 |
-
</codes>
|
288 |
-
</locale>
|
289 |
-
<locale>
|
290 |
-
<englishName>French (Canada)</englishName>
|
291 |
-
<codes>
|
292 |
-
<code>
|
293 |
-
<standard>
|
294 |
-
<name>FB</name>
|
295 |
-
<representation>fr_CA</representation>
|
296 |
-
</standard>
|
297 |
-
</code>
|
298 |
-
</codes>
|
299 |
-
</locale>
|
300 |
-
<locale>
|
301 |
-
<englishName>French (France)</englishName>
|
302 |
-
<codes>
|
303 |
-
<code>
|
304 |
-
<standard>
|
305 |
-
<name>FB</name>
|
306 |
-
<representation>fr_FR</representation>
|
307 |
-
</standard>
|
308 |
-
</code>
|
309 |
-
</codes>
|
310 |
-
</locale>
|
311 |
-
<locale>
|
312 |
-
<englishName>Frisian</englishName>
|
313 |
-
<codes>
|
314 |
-
<code>
|
315 |
-
<standard>
|
316 |
-
<name>FB</name>
|
317 |
-
<representation>fy_NL</representation>
|
318 |
-
</standard>
|
319 |
-
</code>
|
320 |
-
</codes>
|
321 |
-
</locale>
|
322 |
-
<locale>
|
323 |
-
<englishName>Irish</englishName>
|
324 |
-
<codes>
|
325 |
-
<code>
|
326 |
-
<standard>
|
327 |
-
<name>FB</name>
|
328 |
-
<representation>ga_IE</representation>
|
329 |
-
</standard>
|
330 |
-
</code>
|
331 |
-
</codes>
|
332 |
-
</locale>
|
333 |
-
<locale>
|
334 |
-
<englishName>Galician</englishName>
|
335 |
-
<codes>
|
336 |
-
<code>
|
337 |
-
<standard>
|
338 |
-
<name>FB</name>
|
339 |
-
<representation>gl_ES</representation>
|
340 |
-
</standard>
|
341 |
-
</code>
|
342 |
-
</codes>
|
343 |
-
</locale>
|
344 |
-
<locale>
|
345 |
-
<englishName>Hebrew</englishName>
|
346 |
-
<codes>
|
347 |
-
<code>
|
348 |
-
<standard>
|
349 |
-
<name>FB</name>
|
350 |
-
<representation>he_IL</representation>
|
351 |
-
</standard>
|
352 |
-
</code>
|
353 |
-
</codes>
|
354 |
-
</locale>
|
355 |
-
<locale>
|
356 |
-
<englishName>Hindi</englishName>
|
357 |
-
<codes>
|
358 |
-
<code>
|
359 |
-
<standard>
|
360 |
-
<name>FB</name>
|
361 |
-
<representation>hi_IN</representation>
|
362 |
-
</standard>
|
363 |
-
</code>
|
364 |
-
</codes>
|
365 |
-
</locale>
|
366 |
-
<locale>
|
367 |
-
<englishName>Croatian</englishName>
|
368 |
-
<codes>
|
369 |
-
<code>
|
370 |
-
<standard>
|
371 |
-
<name>FB</name>
|
372 |
-
<representation>hr_HR</representation>
|
373 |
-
</standard>
|
374 |
-
</code>
|
375 |
-
</codes>
|
376 |
-
</locale>
|
377 |
-
<locale>
|
378 |
-
<englishName>Hungarian</englishName>
|
379 |
-
<codes>
|
380 |
-
<code>
|
381 |
-
<standard>
|
382 |
-
<name>FB</name>
|
383 |
-
<representation>hu_HU</representation>
|
384 |
-
</standard>
|
385 |
-
</code>
|
386 |
-
</codes>
|
387 |
-
</locale>
|
388 |
-
<locale>
|
389 |
-
<englishName>Armenian</englishName>
|
390 |
-
<codes>
|
391 |
-
<code>
|
392 |
-
<standard>
|
393 |
-
<name>FB</name>
|
394 |
-
<representation>hy_AM</representation>
|
395 |
-
</standard>
|
396 |
-
</code>
|
397 |
-
</codes>
|
398 |
-
</locale>
|
399 |
-
<locale>
|
400 |
-
<englishName>Indonesian</englishName>
|
401 |
-
<codes>
|
402 |
-
<code>
|
403 |
-
<standard>
|
404 |
-
<name>FB</name>
|
405 |
-
<representation>id_ID</representation>
|
406 |
-
</standard>
|
407 |
-
</code>
|
408 |
-
</codes>
|
409 |
-
</locale>
|
410 |
-
<locale>
|
411 |
-
<englishName>Icelandic</englishName>
|
412 |
-
<codes>
|
413 |
-
<code>
|
414 |
-
<standard>
|
415 |
-
<name>FB</name>
|
416 |
-
<representation>is_IS</representation>
|
417 |
-
</standard>
|
418 |
-
</code>
|
419 |
-
</codes>
|
420 |
-
</locale>
|
421 |
-
<locale>
|
422 |
-
<englishName>Italian</englishName>
|
423 |
-
<codes>
|
424 |
-
<code>
|
425 |
-
<standard>
|
426 |
-
<name>FB</name>
|
427 |
-
<representation>it_IT</representation>
|
428 |
-
</standard>
|
429 |
-
</code>
|
430 |
-
</codes>
|
431 |
-
</locale>
|
432 |
-
<locale>
|
433 |
-
<englishName>Japanese</englishName>
|
434 |
-
<codes>
|
435 |
-
<code>
|
436 |
-
<standard>
|
437 |
-
<name>FB</name>
|
438 |
-
<representation>ja_JP</representation>
|
439 |
-
</standard>
|
440 |
-
</code>
|
441 |
-
</codes>
|
442 |
-
</locale>
|
443 |
-
<locale>
|
444 |
-
<englishName>Georgian</englishName>
|
445 |
-
<codes>
|
446 |
-
<code>
|
447 |
-
<standard>
|
448 |
-
<name>FB</name>
|
449 |
-
<representation>ka_GE</representation>
|
450 |
-
</standard>
|
451 |
-
</code>
|
452 |
-
</codes>
|
453 |
-
</locale>
|
454 |
-
<locale>
|
455 |
-
<englishName>Khmer</englishName>
|
456 |
-
<codes>
|
457 |
-
<code>
|
458 |
-
<standard>
|
459 |
-
<name>FB</name>
|
460 |
-
<representation>km_KH</representation>
|
461 |
-
</standard>
|
462 |
-
</code>
|
463 |
-
</codes>
|
464 |
-
</locale>
|
465 |
-
<locale>
|
466 |
-
<englishName>Korean</englishName>
|
467 |
-
<codes>
|
468 |
-
<code>
|
469 |
-
<standard>
|
470 |
-
<name>FB</name>
|
471 |
-
<representation>ko_KR</representation>
|
472 |
-
</standard>
|
473 |
-
</code>
|
474 |
-
</codes>
|
475 |
-
</locale>
|
476 |
-
<locale>
|
477 |
-
<englishName>Kurdish</englishName>
|
478 |
-
<codes>
|
479 |
-
<code>
|
480 |
-
<standard>
|
481 |
-
<name>FB</name>
|
482 |
-
<representation>ku_TR</representation>
|
483 |
-
</standard>
|
484 |
-
</code>
|
485 |
-
</codes>
|
486 |
-
</locale>
|
487 |
-
<locale>
|
488 |
-
<englishName>Latin</englishName>
|
489 |
-
<codes>
|
490 |
-
<code>
|
491 |
-
<standard>
|
492 |
-
<name>FB</name>
|
493 |
-
<representation>la_VA</representation>
|
494 |
-
</standard>
|
495 |
-
</code>
|
496 |
-
</codes>
|
497 |
-
</locale>
|
498 |
-
<locale>
|
499 |
-
<englishName>Lithuanian</englishName>
|
500 |
-
<codes>
|
501 |
-
<code>
|
502 |
-
<standard>
|
503 |
-
<name>FB</name>
|
504 |
-
<representation>lt_LT</representation>
|
505 |
-
</standard>
|
506 |
-
</code>
|
507 |
-
</codes>
|
508 |
-
</locale>
|
509 |
-
<locale>
|
510 |
-
<englishName>Latvian</englishName>
|
511 |
-
<codes>
|
512 |
-
<code>
|
513 |
-
<standard>
|
514 |
-
<name>FB</name>
|
515 |
-
<representation>lv_LV</representation>
|
516 |
-
</standard>
|
517 |
-
</code>
|
518 |
-
</codes>
|
519 |
-
</locale>
|
520 |
-
<locale>
|
521 |
-
<englishName>Macedonian</englishName>
|
522 |
-
<codes>
|
523 |
-
<code>
|
524 |
-
<standard>
|
525 |
-
<name>FB</name>
|
526 |
-
<representation>mk_MK</representation>
|
527 |
-
</standard>
|
528 |
-
</code>
|
529 |
-
</codes>
|
530 |
-
</locale>
|
531 |
-
<locale>
|
532 |
-
<englishName>Malayalam</englishName>
|
533 |
-
<codes>
|
534 |
-
<code>
|
535 |
-
<standard>
|
536 |
-
<name>FB</name>
|
537 |
-
<representation>ml_IN</representation>
|
538 |
-
</standard>
|
539 |
-
</code>
|
540 |
-
</codes>
|
541 |
-
</locale>
|
542 |
-
<locale>
|
543 |
-
<englishName>Malay</englishName>
|
544 |
-
<codes>
|
545 |
-
<code>
|
546 |
-
<standard>
|
547 |
-
<name>FB</name>
|
548 |
-
<representation>ms_MY</representation>
|
549 |
-
</standard>
|
550 |
-
</code>
|
551 |
-
</codes>
|
552 |
-
</locale>
|
553 |
-
<locale>
|
554 |
-
<englishName>Norwegian (bokmal)</englishName>
|
555 |
-
<codes>
|
556 |
-
<code>
|
557 |
-
<standard>
|
558 |
-
<name>FB</name>
|
559 |
-
<representation>nb_NO</representation>
|
560 |
-
</standard>
|
561 |
-
</code>
|
562 |
-
</codes>
|
563 |
-
</locale>
|
564 |
-
<locale>
|
565 |
-
<englishName>Nepali</englishName>
|
566 |
-
<codes>
|
567 |
-
<code>
|
568 |
-
<standard>
|
569 |
-
<name>FB</name>
|
570 |
-
<representation>ne_NP</representation>
|
571 |
-
</standard>
|
572 |
-
</code>
|
573 |
-
</codes>
|
574 |
-
</locale>
|
575 |
-
<locale>
|
576 |
-
<englishName>Dutch</englishName>
|
577 |
-
<codes>
|
578 |
-
<code>
|
579 |
-
<standard>
|
580 |
-
<name>FB</name>
|
581 |
-
<representation>nl_NL</representation>
|
582 |
-
</standard>
|
583 |
-
</code>
|
584 |
-
</codes>
|
585 |
-
</locale>
|
586 |
-
<locale>
|
587 |
-
<englishName>Norwegian (nynorsk)</englishName>
|
588 |
-
<codes>
|
589 |
-
<code>
|
590 |
-
<standard>
|
591 |
-
<name>FB</name>
|
592 |
-
<representation>nn_NO</representation>
|
593 |
-
</standard>
|
594 |
-
</code>
|
595 |
-
</codes>
|
596 |
-
</locale>
|
597 |
-
<locale>
|
598 |
-
<englishName>Punjabi</englishName>
|
599 |
-
<codes>
|
600 |
-
<code>
|
601 |
-
<standard>
|
602 |
-
<name>FB</name>
|
603 |
-
<representation>pa_IN</representation>
|
604 |
-
</standard>
|
605 |
-
</code>
|
606 |
-
</codes>
|
607 |
-
</locale>
|
608 |
-
<locale>
|
609 |
-
<englishName>Polish</englishName>
|
610 |
-
<codes>
|
611 |
-
<code>
|
612 |
-
<standard>
|
613 |
-
<name>FB</name>
|
614 |
-
<representation>pl_PL</representation>
|
615 |
-
</standard>
|
616 |
-
</code>
|
617 |
-
</codes>
|
618 |
-
</locale>
|
619 |
-
<locale>
|
620 |
-
<englishName>Pashto</englishName>
|
621 |
-
<codes>
|
622 |
-
<code>
|
623 |
-
<standard>
|
624 |
-
<name>FB</name>
|
625 |
-
<representation>ps_AF</representation>
|
626 |
-
</standard>
|
627 |
-
</code>
|
628 |
-
</codes>
|
629 |
-
</locale>
|
630 |
-
<locale>
|
631 |
-
<englishName>Portuguese (Brazil)</englishName>
|
632 |
-
<codes>
|
633 |
-
<code>
|
634 |
-
<standard>
|
635 |
-
<name>FB</name>
|
636 |
-
<representation>pt_BR</representation>
|
637 |
-
</standard>
|
638 |
-
</code>
|
639 |
-
</codes>
|
640 |
-
</locale>
|
641 |
-
<locale>
|
642 |
-
<englishName>Portuguese (Portugal)</englishName>
|
643 |
-
<codes>
|
644 |
-
<code>
|
645 |
-
<standard>
|
646 |
-
<name>FB</name>
|
647 |
-
<representation>pt_PT</representation>
|
648 |
-
</standard>
|
649 |
-
</code>
|
650 |
-
</codes>
|
651 |
-
</locale>
|
652 |
-
<locale>
|
653 |
-
<englishName>Romanian</englishName>
|
654 |
-
<codes>
|
655 |
-
<code>
|
656 |
-
<standard>
|
657 |
-
<name>FB</name>
|
658 |
-
<representation>ro_RO</representation>
|
659 |
-
</standard>
|
660 |
-
</code>
|
661 |
-
</codes>
|
662 |
-
</locale>
|
663 |
-
<locale>
|
664 |
-
<englishName>Russian</englishName>
|
665 |
-
<codes>
|
666 |
-
<code>
|
667 |
-
<standard>
|
668 |
-
<name>FB</name>
|
669 |
-
<representation>ru_RU</representation>
|
670 |
-
</standard>
|
671 |
-
</code>
|
672 |
-
</codes>
|
673 |
-
</locale>
|
674 |
-
<locale>
|
675 |
-
<englishName>Slovak</englishName>
|
676 |
-
<codes>
|
677 |
-
<code>
|
678 |
-
<standard>
|
679 |
-
<name>FB</name>
|
680 |
-
<representation>sk_SK</representation>
|
681 |
-
</standard>
|
682 |
-
</code>
|
683 |
-
</codes>
|
684 |
-
</locale>
|
685 |
-
<locale>
|
686 |
-
<englishName>Slovenian</englishName>
|
687 |
-
<codes>
|
688 |
-
<code>
|
689 |
-
<standard>
|
690 |
-
<name>FB</name>
|
691 |
-
<representation>sl_SI</representation>
|
692 |
-
</standard>
|
693 |
-
</code>
|
694 |
-
</codes>
|
695 |
-
</locale>
|
696 |
-
<locale>
|
697 |
-
<englishName>Albanian</englishName>
|
698 |
-
<codes>
|
699 |
-
<code>
|
700 |
-
<standard>
|
701 |
-
<name>FB</name>
|
702 |
-
<representation>sq_AL</representation>
|
703 |
-
</standard>
|
704 |
-
</code>
|
705 |
-
</codes>
|
706 |
-
</locale>
|
707 |
-
<locale>
|
708 |
-
<englishName>Serbian</englishName>
|
709 |
-
<codes>
|
710 |
-
<code>
|
711 |
-
<standard>
|
712 |
-
<name>FB</name>
|
713 |
-
<representation>sr_RS</representation>
|
714 |
-
</standard>
|
715 |
-
</code>
|
716 |
-
</codes>
|
717 |
-
</locale>
|
718 |
-
<locale>
|
719 |
-
<englishName>Swedish</englishName>
|
720 |
-
<codes>
|
721 |
-
<code>
|
722 |
-
<standard>
|
723 |
-
<name>FB</name>
|
724 |
-
<representation>sv_SE</representation>
|
725 |
-
</standard>
|
726 |
-
</code>
|
727 |
-
</codes>
|
728 |
-
</locale>
|
729 |
-
<locale>
|
730 |
-
<englishName>Swahili</englishName>
|
731 |
-
<codes>
|
732 |
-
<code>
|
733 |
-
<standard>
|
734 |
-
<name>FB</name>
|
735 |
-
<representation>sw_KE</representation>
|
736 |
-
</standard>
|
737 |
-
</code>
|
738 |
-
</codes>
|
739 |
-
</locale>
|
740 |
-
<locale>
|
741 |
-
<englishName>Tamil</englishName>
|
742 |
-
<codes>
|
743 |
-
<code>
|
744 |
-
<standard>
|
745 |
-
<name>FB</name>
|
746 |
-
<representation>ta_IN</representation>
|
747 |
-
</standard>
|
748 |
-
</code>
|
749 |
-
</codes>
|
750 |
-
</locale>
|
751 |
-
<locale>
|
752 |
-
<englishName>Telugu</englishName>
|
753 |
-
<codes>
|
754 |
-
<code>
|
755 |
-
<standard>
|
756 |
-
<name>FB</name>
|
757 |
-
<representation>te_IN</representation>
|
758 |
-
</standard>
|
759 |
-
</code>
|
760 |
-
</codes>
|
761 |
-
</locale>
|
762 |
-
<locale>
|
763 |
-
<englishName>Thai</englishName>
|
764 |
-
<codes>
|
765 |
-
<code>
|
766 |
-
<standard>
|
767 |
-
<name>FB</name>
|
768 |
-
<representation>th_TH</representation>
|
769 |
-
</standard>
|
770 |
-
</code>
|
771 |
-
</codes>
|
772 |
-
</locale>
|
773 |
-
<locale>
|
774 |
-
<englishName>Filipino</englishName>
|
775 |
-
<codes>
|
776 |
-
<code>
|
777 |
-
<standard>
|
778 |
-
<name>FB</name>
|
779 |
-
<representation>tl_PH</representation>
|
780 |
-
</standard>
|
781 |
-
</code>
|
782 |
-
</codes>
|
783 |
-
</locale>
|
784 |
-
<locale>
|
785 |
-
<englishName>Turkish</englishName>
|
786 |
-
<codes>
|
787 |
-
<code>
|
788 |
-
<standard>
|
789 |
-
<name>FB</name>
|
790 |
-
<representation>tr_TR</representation>
|
791 |
-
</standard>
|
792 |
-
</code>
|
793 |
-
</codes>
|
794 |
-
</locale>
|
795 |
-
<locale>
|
796 |
-
<englishName>Ukrainian</englishName>
|
797 |
-
<codes>
|
798 |
-
<code>
|
799 |
-
<standard>
|
800 |
-
<name>FB</name>
|
801 |
-
<representation>uk_UA</representation>
|
802 |
-
</standard>
|
803 |
-
</code>
|
804 |
-
</codes>
|
805 |
-
</locale>
|
806 |
-
<locale>
|
807 |
-
<englishName>Vietnamese</englishName>
|
808 |
-
<codes>
|
809 |
-
<code>
|
810 |
-
<standard>
|
811 |
-
<name>FB</name>
|
812 |
-
<representation>vi_VN</representation>
|
813 |
-
</standard>
|
814 |
-
</code>
|
815 |
-
</codes>
|
816 |
-
</locale>
|
817 |
-
<locale>
|
818 |
-
<englishName>Simplified Chinese (China)</englishName>
|
819 |
-
<codes>
|
820 |
-
<code>
|
821 |
-
<standard>
|
822 |
-
<name>FB</name>
|
823 |
-
<representation>zh_CN</representation>
|
824 |
-
</standard>
|
825 |
-
</code>
|
826 |
-
</codes>
|
827 |
-
</locale>
|
828 |
-
<locale>
|
829 |
-
<englishName>Traditional Chinese (Hong Kong)</englishName>
|
830 |
-
<codes>
|
831 |
-
<code>
|
832 |
-
<standard>
|
833 |
-
<name>FB</name>
|
834 |
-
<representation>zh_HK</representation>
|
835 |
-
</standard>
|
836 |
-
</code>
|
837 |
-
</codes>
|
838 |
-
</locale>
|
839 |
-
<locale>
|
840 |
-
<englishName>Traditional Chinese (Taiwan)</englishName>
|
841 |
-
<codes>
|
842 |
-
<code>
|
843 |
-
<standard>
|
844 |
-
<name>FB</name>
|
845 |
-
<representation>zh_TW</representation>
|
846 |
-
</standard>
|
847 |
-
</code>
|
848 |
-
</codes>
|
849 |
-
</locale>
|
850 |
-
</locales>
|
1 |
+
<?xml version='1.0'?>
|
2 |
+
<locales>
|
3 |
+
<locale>
|
4 |
+
<englishName>Afrikaans</englishName>
|
5 |
+
<codes>
|
6 |
+
<code>
|
7 |
+
<standard>
|
8 |
+
<name>FB</name>
|
9 |
+
<representation>af_ZA</representation>
|
10 |
+
</standard>
|
11 |
+
</code>
|
12 |
+
</codes>
|
13 |
+
</locale>
|
14 |
+
<locale>
|
15 |
+
<englishName>Arabic</englishName>
|
16 |
+
<codes>
|
17 |
+
<code>
|
18 |
+
<standard>
|
19 |
+
<name>FB</name>
|
20 |
+
<representation>ar_AR</representation>
|
21 |
+
</standard>
|
22 |
+
</code>
|
23 |
+
</codes>
|
24 |
+
</locale>
|
25 |
+
<locale>
|
26 |
+
<englishName>Azerbaijani</englishName>
|
27 |
+
<codes>
|
28 |
+
<code>
|
29 |
+
<standard>
|
30 |
+
<name>FB</name>
|
31 |
+
<representation>az_AZ</representation>
|
32 |
+
</standard>
|
33 |
+
</code>
|
34 |
+
</codes>
|
35 |
+
</locale>
|
36 |
+
<locale>
|
37 |
+
<englishName>Belarusian</englishName>
|
38 |
+
<codes>
|
39 |
+
<code>
|
40 |
+
<standard>
|
41 |
+
<name>FB</name>
|
42 |
+
<representation>be_BY</representation>
|
43 |
+
</standard>
|
44 |
+
</code>
|
45 |
+
</codes>
|
46 |
+
</locale>
|
47 |
+
<locale>
|
48 |
+
<englishName>Bulgarian</englishName>
|
49 |
+
<codes>
|
50 |
+
<code>
|
51 |
+
<standard>
|
52 |
+
<name>FB</name>
|
53 |
+
<representation>bg_BG</representation>
|
54 |
+
</standard>
|
55 |
+
</code>
|
56 |
+
</codes>
|
57 |
+
</locale>
|
58 |
+
<locale>
|
59 |
+
<englishName>Bengali</englishName>
|
60 |
+
<codes>
|
61 |
+
<code>
|
62 |
+
<standard>
|
63 |
+
<name>FB</name>
|
64 |
+
<representation>bn_IN</representation>
|
65 |
+
</standard>
|
66 |
+
</code>
|
67 |
+
</codes>
|
68 |
+
</locale>
|
69 |
+
<locale>
|
70 |
+
<englishName>Bosnian</englishName>
|
71 |
+
<codes>
|
72 |
+
<code>
|
73 |
+
<standard>
|
74 |
+
<name>FB</name>
|
75 |
+
<representation>bs_BA</representation>
|
76 |
+
</standard>
|
77 |
+
</code>
|
78 |
+
</codes>
|
79 |
+
</locale>
|
80 |
+
<locale>
|
81 |
+
<englishName>Catalan</englishName>
|
82 |
+
<codes>
|
83 |
+
<code>
|
84 |
+
<standard>
|
85 |
+
<name>FB</name>
|
86 |
+
<representation>ca_ES</representation>
|
87 |
+
</standard>
|
88 |
+
</code>
|
89 |
+
</codes>
|
90 |
+
</locale>
|
91 |
+
<locale>
|
92 |
+
<englishName>Czech</englishName>
|
93 |
+
<codes>
|
94 |
+
<code>
|
95 |
+
<standard>
|
96 |
+
<name>FB</name>
|
97 |
+
<representation>cs_CZ</representation>
|
98 |
+
</standard>
|
99 |
+
</code>
|
100 |
+
</codes>
|
101 |
+
</locale>
|
102 |
+
<locale>
|
103 |
+
<englishName>Welsh</englishName>
|
104 |
+
<codes>
|
105 |
+
<code>
|
106 |
+
<standard>
|
107 |
+
<name>FB</name>
|
108 |
+
<representation>cy_GB</representation>
|
109 |
+
</standard>
|
110 |
+
</code>
|
111 |
+
</codes>
|
112 |
+
</locale>
|
113 |
+
<locale>
|
114 |
+
<englishName>Danish</englishName>
|
115 |
+
<codes>
|
116 |
+
<code>
|
117 |
+
<standard>
|
118 |
+
<name>FB</name>
|
119 |
+
<representation>da_DK</representation>
|
120 |
+
</standard>
|
121 |
+
</code>
|
122 |
+
</codes>
|
123 |
+
</locale>
|
124 |
+
<locale>
|
125 |
+
<englishName>German</englishName>
|
126 |
+
<codes>
|
127 |
+
<code>
|
128 |
+
<standard>
|
129 |
+
<name>FB</name>
|
130 |
+
<representation>de_DE</representation>
|
131 |
+
</standard>
|
132 |
+
</code>
|
133 |
+
</codes>
|
134 |
+
</locale>
|
135 |
+
<locale>
|
136 |
+
<englishName>Greek</englishName>
|
137 |
+
<codes>
|
138 |
+
<code>
|
139 |
+
<standard>
|
140 |
+
<name>FB</name>
|
141 |
+
<representation>el_GR</representation>
|
142 |
+
</standard>
|
143 |
+
</code>
|
144 |
+
</codes>
|
145 |
+
</locale>
|
146 |
+
<locale>
|
147 |
+
<englishName>English (UK)</englishName>
|
148 |
+
<codes>
|
149 |
+
<code>
|
150 |
+
<standard>
|
151 |
+
<name>FB</name>
|
152 |
+
<representation>en_GB</representation>
|
153 |
+
</standard>
|
154 |
+
</code>
|
155 |
+
</codes>
|
156 |
+
</locale>
|
157 |
+
<locale>
|
158 |
+
<englishName>English (Pirate)</englishName>
|
159 |
+
<codes>
|
160 |
+
<code>
|
161 |
+
<standard>
|
162 |
+
<name>FB</name>
|
163 |
+
<representation>en_PI</representation>
|
164 |
+
</standard>
|
165 |
+
</code>
|
166 |
+
</codes>
|
167 |
+
</locale>
|
168 |
+
<locale>
|
169 |
+
<englishName>English (Upside Down)</englishName>
|
170 |
+
<codes>
|
171 |
+
<code>
|
172 |
+
<standard>
|
173 |
+
<name>FB</name>
|
174 |
+
<representation>en_UD</representation>
|
175 |
+
</standard>
|
176 |
+
</code>
|
177 |
+
</codes>
|
178 |
+
</locale>
|
179 |
+
<locale>
|
180 |
+
<englishName>English (US)</englishName>
|
181 |
+
<codes>
|
182 |
+
<code>
|
183 |
+
<standard>
|
184 |
+
<name>FB</name>
|
185 |
+
<representation>en_US</representation>
|
186 |
+
</standard>
|
187 |
+
</code>
|
188 |
+
</codes>
|
189 |
+
</locale>
|
190 |
+
<locale>
|
191 |
+
<englishName>Esperanto</englishName>
|
192 |
+
<codes>
|
193 |
+
<code>
|
194 |
+
<standard>
|
195 |
+
<name>FB</name>
|
196 |
+
<representation>eo_EO</representation>
|
197 |
+
</standard>
|
198 |
+
</code>
|
199 |
+
</codes>
|
200 |
+
</locale>
|
201 |
+
<locale>
|
202 |
+
<englishName>Spanish (Spain)</englishName>
|
203 |
+
<codes>
|
204 |
+
<code>
|
205 |
+
<standard>
|
206 |
+
<name>FB</name>
|
207 |
+
<representation>es_ES</representation>
|
208 |
+
</standard>
|
209 |
+
</code>
|
210 |
+
</codes>
|
211 |
+
</locale>
|
212 |
+
<locale>
|
213 |
+
<englishName>Spanish</englishName>
|
214 |
+
<codes>
|
215 |
+
<code>
|
216 |
+
<standard>
|
217 |
+
<name>FB</name>
|
218 |
+
<representation>es_LA</representation>
|
219 |
+
</standard>
|
220 |
+
</code>
|
221 |
+
</codes>
|
222 |
+
</locale>
|
223 |
+
<locale>
|
224 |
+
<englishName>Estonian</englishName>
|
225 |
+
<codes>
|
226 |
+
<code>
|
227 |
+
<standard>
|
228 |
+
<name>FB</name>
|
229 |
+
<representation>et_EE</representation>
|
230 |
+
</standard>
|
231 |
+
</code>
|
232 |
+
</codes>
|
233 |
+
</locale>
|
234 |
+
<locale>
|
235 |
+
<englishName>Basque</englishName>
|
236 |
+
<codes>
|
237 |
+
<code>
|
238 |
+
<standard>
|
239 |
+
<name>FB</name>
|
240 |
+
<representation>eu_ES</representation>
|
241 |
+
</standard>
|
242 |
+
</code>
|
243 |
+
</codes>
|
244 |
+
</locale>
|
245 |
+
<locale>
|
246 |
+
<englishName>Persian</englishName>
|
247 |
+
<codes>
|
248 |
+
<code>
|
249 |
+
<standard>
|
250 |
+
<name>FB</name>
|
251 |
+
<representation>fa_IR</representation>
|
252 |
+
</standard>
|
253 |
+
</code>
|
254 |
+
</codes>
|
255 |
+
</locale>
|
256 |
+
<locale>
|
257 |
+
<englishName>Leet Speak</englishName>
|
258 |
+
<codes>
|
259 |
+
<code>
|
260 |
+
<standard>
|
261 |
+
<name>FB</name>
|
262 |
+
<representation>fb_LT</representation>
|
263 |
+
</standard>
|
264 |
+
</code>
|
265 |
+
</codes>
|
266 |
+
</locale>
|
267 |
+
<locale>
|
268 |
+
<englishName>Finnish</englishName>
|
269 |
+
<codes>
|
270 |
+
<code>
|
271 |
+
<standard>
|
272 |
+
<name>FB</name>
|
273 |
+
<representation>fi_FI</representation>
|
274 |
+
</standard>
|
275 |
+
</code>
|
276 |
+
</codes>
|
277 |
+
</locale>
|
278 |
+
<locale>
|
279 |
+
<englishName>Faroese</englishName>
|
280 |
+
<codes>
|
281 |
+
<code>
|
282 |
+
<standard>
|
283 |
+
<name>FB</name>
|
284 |
+
<representation>fo_FO</representation>
|
285 |
+
</standard>
|
286 |
+
</code>
|
287 |
+
</codes>
|
288 |
+
</locale>
|
289 |
+
<locale>
|
290 |
+
<englishName>French (Canada)</englishName>
|
291 |
+
<codes>
|
292 |
+
<code>
|
293 |
+
<standard>
|
294 |
+
<name>FB</name>
|
295 |
+
<representation>fr_CA</representation>
|
296 |
+
</standard>
|
297 |
+
</code>
|
298 |
+
</codes>
|
299 |
+
</locale>
|
300 |
+
<locale>
|
301 |
+
<englishName>French (France)</englishName>
|
302 |
+
<codes>
|
303 |
+
<code>
|
304 |
+
<standard>
|
305 |
+
<name>FB</name>
|
306 |
+
<representation>fr_FR</representation>
|
307 |
+
</standard>
|
308 |
+
</code>
|
309 |
+
</codes>
|
310 |
+
</locale>
|
311 |
+
<locale>
|
312 |
+
<englishName>Frisian</englishName>
|
313 |
+
<codes>
|
314 |
+
<code>
|
315 |
+
<standard>
|
316 |
+
<name>FB</name>
|
317 |
+
<representation>fy_NL</representation>
|
318 |
+
</standard>
|
319 |
+
</code>
|
320 |
+
</codes>
|
321 |
+
</locale>
|
322 |
+
<locale>
|
323 |
+
<englishName>Irish</englishName>
|
324 |
+
<codes>
|
325 |
+
<code>
|
326 |
+
<standard>
|
327 |
+
<name>FB</name>
|
328 |
+
<representation>ga_IE</representation>
|
329 |
+
</standard>
|
330 |
+
</code>
|
331 |
+
</codes>
|
332 |
+
</locale>
|
333 |
+
<locale>
|
334 |
+
<englishName>Galician</englishName>
|
335 |
+
<codes>
|
336 |
+
<code>
|
337 |
+
<standard>
|
338 |
+
<name>FB</name>
|
339 |
+
<representation>gl_ES</representation>
|
340 |
+
</standard>
|
341 |
+
</code>
|
342 |
+
</codes>
|
343 |
+
</locale>
|
344 |
+
<locale>
|
345 |
+
<englishName>Hebrew</englishName>
|
346 |
+
<codes>
|
347 |
+
<code>
|
348 |
+
<standard>
|
349 |
+
<name>FB</name>
|
350 |
+
<representation>he_IL</representation>
|
351 |
+
</standard>
|
352 |
+
</code>
|
353 |
+
</codes>
|
354 |
+
</locale>
|
355 |
+
<locale>
|
356 |
+
<englishName>Hindi</englishName>
|
357 |
+
<codes>
|
358 |
+
<code>
|
359 |
+
<standard>
|
360 |
+
<name>FB</name>
|
361 |
+
<representation>hi_IN</representation>
|
362 |
+
</standard>
|
363 |
+
</code>
|
364 |
+
</codes>
|
365 |
+
</locale>
|
366 |
+
<locale>
|
367 |
+
<englishName>Croatian</englishName>
|
368 |
+
<codes>
|
369 |
+
<code>
|
370 |
+
<standard>
|
371 |
+
<name>FB</name>
|
372 |
+
<representation>hr_HR</representation>
|
373 |
+
</standard>
|
374 |
+
</code>
|
375 |
+
</codes>
|
376 |
+
</locale>
|
377 |
+
<locale>
|
378 |
+
<englishName>Hungarian</englishName>
|
379 |
+
<codes>
|
380 |
+
<code>
|
381 |
+
<standard>
|
382 |
+
<name>FB</name>
|
383 |
+
<representation>hu_HU</representation>
|
384 |
+
</standard>
|
385 |
+
</code>
|
386 |
+
</codes>
|
387 |
+
</locale>
|
388 |
+
<locale>
|
389 |
+
<englishName>Armenian</englishName>
|
390 |
+
<codes>
|
391 |
+
<code>
|
392 |
+
<standard>
|
393 |
+
<name>FB</name>
|
394 |
+
<representation>hy_AM</representation>
|
395 |
+
</standard>
|
396 |
+
</code>
|
397 |
+
</codes>
|
398 |
+
</locale>
|
399 |
+
<locale>
|
400 |
+
<englishName>Indonesian</englishName>
|
401 |
+
<codes>
|
402 |
+
<code>
|
403 |
+
<standard>
|
404 |
+
<name>FB</name>
|
405 |
+
<representation>id_ID</representation>
|
406 |
+
</standard>
|
407 |
+
</code>
|
408 |
+
</codes>
|
409 |
+
</locale>
|
410 |
+
<locale>
|
411 |
+
<englishName>Icelandic</englishName>
|
412 |
+
<codes>
|
413 |
+
<code>
|
414 |
+
<standard>
|
415 |
+
<name>FB</name>
|
416 |
+
<representation>is_IS</representation>
|
417 |
+
</standard>
|
418 |
+
</code>
|
419 |
+
</codes>
|
420 |
+
</locale>
|
421 |
+
<locale>
|
422 |
+
<englishName>Italian</englishName>
|
423 |
+
<codes>
|
424 |
+
<code>
|
425 |
+
<standard>
|
426 |
+
<name>FB</name>
|
427 |
+
<representation>it_IT</representation>
|
428 |
+
</standard>
|
429 |
+
</code>
|
430 |
+
</codes>
|
431 |
+
</locale>
|
432 |
+
<locale>
|
433 |
+
<englishName>Japanese</englishName>
|
434 |
+
<codes>
|
435 |
+
<code>
|
436 |
+
<standard>
|
437 |
+
<name>FB</name>
|
438 |
+
<representation>ja_JP</representation>
|
439 |
+
</standard>
|
440 |
+
</code>
|
441 |
+
</codes>
|
442 |
+
</locale>
|
443 |
+
<locale>
|
444 |
+
<englishName>Georgian</englishName>
|
445 |
+
<codes>
|
446 |
+
<code>
|
447 |
+
<standard>
|
448 |
+
<name>FB</name>
|
449 |
+
<representation>ka_GE</representation>
|
450 |
+
</standard>
|
451 |
+
</code>
|
452 |
+
</codes>
|
453 |
+
</locale>
|
454 |
+
<locale>
|
455 |
+
<englishName>Khmer</englishName>
|
456 |
+
<codes>
|
457 |
+
<code>
|
458 |
+
<standard>
|
459 |
+
<name>FB</name>
|
460 |
+
<representation>km_KH</representation>
|
461 |
+
</standard>
|
462 |
+
</code>
|
463 |
+
</codes>
|
464 |
+
</locale>
|
465 |
+
<locale>
|
466 |
+
<englishName>Korean</englishName>
|
467 |
+
<codes>
|
468 |
+
<code>
|
469 |
+
<standard>
|
470 |
+
<name>FB</name>
|
471 |
+
<representation>ko_KR</representation>
|
472 |
+
</standard>
|
473 |
+
</code>
|
474 |
+
</codes>
|
475 |
+
</locale>
|
476 |
+
<locale>
|
477 |
+
<englishName>Kurdish</englishName>
|
478 |
+
<codes>
|
479 |
+
<code>
|
480 |
+
<standard>
|
481 |
+
<name>FB</name>
|
482 |
+
<representation>ku_TR</representation>
|
483 |
+
</standard>
|
484 |
+
</code>
|
485 |
+
</codes>
|
486 |
+
</locale>
|
487 |
+
<locale>
|
488 |
+
<englishName>Latin</englishName>
|
489 |
+
<codes>
|
490 |
+
<code>
|
491 |
+
<standard>
|
492 |
+
<name>FB</name>
|
493 |
+
<representation>la_VA</representation>
|
494 |
+
</standard>
|
495 |
+
</code>
|
496 |
+
</codes>
|
497 |
+
</locale>
|
498 |
+
<locale>
|
499 |
+
<englishName>Lithuanian</englishName>
|
500 |
+
<codes>
|
501 |
+
<code>
|
502 |
+
<standard>
|
503 |
+
<name>FB</name>
|
504 |
+
<representation>lt_LT</representation>
|
505 |
+
</standard>
|
506 |
+
</code>
|
507 |
+
</codes>
|
508 |
+
</locale>
|
509 |
+
<locale>
|
510 |
+
<englishName>Latvian</englishName>
|
511 |
+
<codes>
|
512 |
+
<code>
|
513 |
+
<standard>
|
514 |
+
<name>FB</name>
|
515 |
+
<representation>lv_LV</representation>
|
516 |
+
</standard>
|
517 |
+
</code>
|
518 |
+
</codes>
|
519 |
+
</locale>
|
520 |
+
<locale>
|
521 |
+
<englishName>Macedonian</englishName>
|
522 |
+
<codes>
|
523 |
+
<code>
|
524 |
+
<standard>
|
525 |
+
<name>FB</name>
|
526 |
+
<representation>mk_MK</representation>
|
527 |
+
</standard>
|
528 |
+
</code>
|
529 |
+
</codes>
|
530 |
+
</locale>
|
531 |
+
<locale>
|
532 |
+
<englishName>Malayalam</englishName>
|
533 |
+
<codes>
|
534 |
+
<code>
|
535 |
+
<standard>
|
536 |
+
<name>FB</name>
|
537 |
+
<representation>ml_IN</representation>
|
538 |
+
</standard>
|
539 |
+
</code>
|
540 |
+
</codes>
|
541 |
+
</locale>
|
542 |
+
<locale>
|
543 |
+
<englishName>Malay</englishName>
|
544 |
+
<codes>
|
545 |
+
<code>
|
546 |
+
<standard>
|
547 |
+
<name>FB</name>
|
548 |
+
<representation>ms_MY</representation>
|
549 |
+
</standard>
|
550 |
+
</code>
|
551 |
+
</codes>
|
552 |
+
</locale>
|
553 |
+
<locale>
|
554 |
+
<englishName>Norwegian (bokmal)</englishName>
|
555 |
+
<codes>
|
556 |
+
<code>
|
557 |
+
<standard>
|
558 |
+
<name>FB</name>
|
559 |
+
<representation>nb_NO</representation>
|
560 |
+
</standard>
|
561 |
+
</code>
|
562 |
+
</codes>
|
563 |
+
</locale>
|
564 |
+
<locale>
|
565 |
+
<englishName>Nepali</englishName>
|
566 |
+
<codes>
|
567 |
+
<code>
|
568 |
+
<standard>
|
569 |
+
<name>FB</name>
|
570 |
+
<representation>ne_NP</representation>
|
571 |
+
</standard>
|
572 |
+
</code>
|
573 |
+
</codes>
|
574 |
+
</locale>
|
575 |
+
<locale>
|
576 |
+
<englishName>Dutch</englishName>
|
577 |
+
<codes>
|
578 |
+
<code>
|
579 |
+
<standard>
|
580 |
+
<name>FB</name>
|
581 |
+
<representation>nl_NL</representation>
|
582 |
+
</standard>
|
583 |
+
</code>
|
584 |
+
</codes>
|
585 |
+
</locale>
|
586 |
+
<locale>
|
587 |
+
<englishName>Norwegian (nynorsk)</englishName>
|
588 |
+
<codes>
|
589 |
+
<code>
|
590 |
+
<standard>
|
591 |
+
<name>FB</name>
|
592 |
+
<representation>nn_NO</representation>
|
593 |
+
</standard>
|
594 |
+
</code>
|
595 |
+
</codes>
|
596 |
+
</locale>
|
597 |
+
<locale>
|
598 |
+
<englishName>Punjabi</englishName>
|
599 |
+
<codes>
|
600 |
+
<code>
|
601 |
+
<standard>
|
602 |
+
<name>FB</name>
|
603 |
+
<representation>pa_IN</representation>
|
604 |
+
</standard>
|
605 |
+
</code>
|
606 |
+
</codes>
|
607 |
+
</locale>
|
608 |
+
<locale>
|
609 |
+
<englishName>Polish</englishName>
|
610 |
+
<codes>
|
611 |
+
<code>
|
612 |
+
<standard>
|
613 |
+
<name>FB</name>
|
614 |
+
<representation>pl_PL</representation>
|
615 |
+
</standard>
|
616 |
+
</code>
|
617 |
+
</codes>
|
618 |
+
</locale>
|
619 |
+
<locale>
|
620 |
+
<englishName>Pashto</englishName>
|
621 |
+
<codes>
|
622 |
+
<code>
|
623 |
+
<standard>
|
624 |
+
<name>FB</name>
|
625 |
+
<representation>ps_AF</representation>
|
626 |
+
</standard>
|
627 |
+
</code>
|
628 |
+
</codes>
|
629 |
+
</locale>
|
630 |
+
<locale>
|
631 |
+
<englishName>Portuguese (Brazil)</englishName>
|
632 |
+
<codes>
|
633 |
+
<code>
|
634 |
+
<standard>
|
635 |
+
<name>FB</name>
|
636 |
+
<representation>pt_BR</representation>
|
637 |
+
</standard>
|
638 |
+
</code>
|
639 |
+
</codes>
|
640 |
+
</locale>
|
641 |
+
<locale>
|
642 |
+
<englishName>Portuguese (Portugal)</englishName>
|
643 |
+
<codes>
|
644 |
+
<code>
|
645 |
+
<standard>
|
646 |
+
<name>FB</name>
|
647 |
+
<representation>pt_PT</representation>
|
648 |
+
</standard>
|
649 |
+
</code>
|
650 |
+
</codes>
|
651 |
+
</locale>
|
652 |
+
<locale>
|
653 |
+
<englishName>Romanian</englishName>
|
654 |
+
<codes>
|
655 |
+
<code>
|
656 |
+
<standard>
|
657 |
+
<name>FB</name>
|
658 |
+
<representation>ro_RO</representation>
|
659 |
+
</standard>
|
660 |
+
</code>
|
661 |
+
</codes>
|
662 |
+
</locale>
|
663 |
+
<locale>
|
664 |
+
<englishName>Russian</englishName>
|
665 |
+
<codes>
|
666 |
+
<code>
|
667 |
+
<standard>
|
668 |
+
<name>FB</name>
|
669 |
+
<representation>ru_RU</representation>
|
670 |
+
</standard>
|
671 |
+
</code>
|
672 |
+
</codes>
|
673 |
+
</locale>
|
674 |
+
<locale>
|
675 |
+
<englishName>Slovak</englishName>
|
676 |
+
<codes>
|
677 |
+
<code>
|
678 |
+
<standard>
|
679 |
+
<name>FB</name>
|
680 |
+
<representation>sk_SK</representation>
|
681 |
+
</standard>
|
682 |
+
</code>
|
683 |
+
</codes>
|
684 |
+
</locale>
|
685 |
+
<locale>
|
686 |
+
<englishName>Slovenian</englishName>
|
687 |
+
<codes>
|
688 |
+
<code>
|
689 |
+
<standard>
|
690 |
+
<name>FB</name>
|
691 |
+
<representation>sl_SI</representation>
|
692 |
+
</standard>
|
693 |
+
</code>
|
694 |
+
</codes>
|
695 |
+
</locale>
|
696 |
+
<locale>
|
697 |
+
<englishName>Albanian</englishName>
|
698 |
+
<codes>
|
699 |
+
<code>
|
700 |
+
<standard>
|
701 |
+
<name>FB</name>
|
702 |
+
<representation>sq_AL</representation>
|
703 |
+
</standard>
|
704 |
+
</code>
|
705 |
+
</codes>
|
706 |
+
</locale>
|
707 |
+
<locale>
|
708 |
+
<englishName>Serbian</englishName>
|
709 |
+
<codes>
|
710 |
+
<code>
|
711 |
+
<standard>
|
712 |
+
<name>FB</name>
|
713 |
+
<representation>sr_RS</representation>
|
714 |
+
</standard>
|
715 |
+
</code>
|
716 |
+
</codes>
|
717 |
+
</locale>
|
718 |
+
<locale>
|
719 |
+
<englishName>Swedish</englishName>
|
720 |
+
<codes>
|
721 |
+
<code>
|
722 |
+
<standard>
|
723 |
+
<name>FB</name>
|
724 |
+
<representation>sv_SE</representation>
|
725 |
+
</standard>
|
726 |
+
</code>
|
727 |
+
</codes>
|
728 |
+
</locale>
|
729 |
+
<locale>
|
730 |
+
<englishName>Swahili</englishName>
|
731 |
+
<codes>
|
732 |
+
<code>
|
733 |
+
<standard>
|
734 |
+
<name>FB</name>
|
735 |
+
<representation>sw_KE</representation>
|
736 |
+
</standard>
|
737 |
+
</code>
|
738 |
+
</codes>
|
739 |
+
</locale>
|
740 |
+
<locale>
|
741 |
+
<englishName>Tamil</englishName>
|
742 |
+
<codes>
|
743 |
+
<code>
|
744 |
+
<standard>
|
745 |
+
<name>FB</name>
|
746 |
+
<representation>ta_IN</representation>
|
747 |
+
</standard>
|
748 |
+
</code>
|
749 |
+
</codes>
|
750 |
+
</locale>
|
751 |
+
<locale>
|
752 |
+
<englishName>Telugu</englishName>
|
753 |
+
<codes>
|
754 |
+
<code>
|
755 |
+
<standard>
|
756 |
+
<name>FB</name>
|
757 |
+
<representation>te_IN</representation>
|
758 |
+
</standard>
|
759 |
+
</code>
|
760 |
+
</codes>
|
761 |
+
</locale>
|
762 |
+
<locale>
|
763 |
+
<englishName>Thai</englishName>
|
764 |
+
<codes>
|
765 |
+
<code>
|
766 |
+
<standard>
|
767 |
+
<name>FB</name>
|
768 |
+
<representation>th_TH</representation>
|
769 |
+
</standard>
|
770 |
+
</code>
|
771 |
+
</codes>
|
772 |
+
</locale>
|
773 |
+
<locale>
|
774 |
+
<englishName>Filipino</englishName>
|
775 |
+
<codes>
|
776 |
+
<code>
|
777 |
+
<standard>
|
778 |
+
<name>FB</name>
|
779 |
+
<representation>tl_PH</representation>
|
780 |
+
</standard>
|
781 |
+
</code>
|
782 |
+
</codes>
|
783 |
+
</locale>
|
784 |
+
<locale>
|
785 |
+
<englishName>Turkish</englishName>
|
786 |
+
<codes>
|
787 |
+
<code>
|
788 |
+
<standard>
|
789 |
+
<name>FB</name>
|
790 |
+
<representation>tr_TR</representation>
|
791 |
+
</standard>
|
792 |
+
</code>
|
793 |
+
</codes>
|
794 |
+
</locale>
|
795 |
+
<locale>
|
796 |
+
<englishName>Ukrainian</englishName>
|
797 |
+
<codes>
|
798 |
+
<code>
|
799 |
+
<standard>
|
800 |
+
<name>FB</name>
|
801 |
+
<representation>uk_UA</representation>
|
802 |
+
</standard>
|
803 |
+
</code>
|
804 |
+
</codes>
|
805 |
+
</locale>
|
806 |
+
<locale>
|
807 |
+
<englishName>Vietnamese</englishName>
|
808 |
+
<codes>
|
809 |
+
<code>
|
810 |
+
<standard>
|
811 |
+
<name>FB</name>
|
812 |
+
<representation>vi_VN</representation>
|
813 |
+
</standard>
|
814 |
+
</code>
|
815 |
+
</codes>
|
816 |
+
</locale>
|
817 |
+
<locale>
|
818 |
+
<englishName>Simplified Chinese (China)</englishName>
|
819 |
+
<codes>
|
820 |
+
<code>
|
821 |
+
<standard>
|
822 |
+
<name>FB</name>
|
823 |
+
<representation>zh_CN</representation>
|
824 |
+
</standard>
|
825 |
+
</code>
|
826 |
+
</codes>
|
827 |
+
</locale>
|
828 |
+
<locale>
|
829 |
+
<englishName>Traditional Chinese (Hong Kong)</englishName>
|
830 |
+
<codes>
|
831 |
+
<code>
|
832 |
+
<standard>
|
833 |
+
<name>FB</name>
|
834 |
+
<representation>zh_HK</representation>
|
835 |
+
</standard>
|
836 |
+
</code>
|
837 |
+
</codes>
|
838 |
+
</locale>
|
839 |
+
<locale>
|
840 |
+
<englishName>Traditional Chinese (Taiwan)</englishName>
|
841 |
+
<codes>
|
842 |
+
<code>
|
843 |
+
<standard>
|
844 |
+
<name>FB</name>
|
845 |
+
<representation>zh_TW</representation>
|
846 |
+
</standard>
|
847 |
+
</code>
|
848 |
+
</codes>
|
849 |
+
</locale>
|
850 |
+
</locales>
|
includes/settings-page.php
CHANGED
@@ -127,24 +127,34 @@
|
|
127 |
<option value=""<?php if (trim($fb_locale)=='') echo ' selected="selected"'; ?>>Wordpress current locale/language (<?php echo get_locale(); ?>) </option>
|
128 |
<?php
|
129 |
$listLocales=false;
|
|
|
|
|
130 |
//Online
|
131 |
-
if ($
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
}
|
|
|
141 |
}
|
142 |
-
curl_close($ch);
|
143 |
}
|
144 |
//Offline
|
145 |
if (!$listLocales) {
|
146 |
if ($fb_locales=file_get_contents(ABSPATH . 'wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/includes/FacebookLocales.xml')) {
|
147 |
$listLocales=true;
|
|
|
148 |
}
|
149 |
}
|
150 |
//OK
|
@@ -160,6 +170,18 @@
|
|
160 |
}
|
161 |
?>
|
162 |
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
</td>
|
164 |
</tr>
|
165 |
<tr>
|
127 |
<option value=""<?php if (trim($fb_locale)=='') echo ' selected="selected"'; ?>>Wordpress current locale/language (<?php echo get_locale(); ?>) </option>
|
128 |
<?php
|
129 |
$listLocales=false;
|
130 |
+
$loadedOnline=false;
|
131 |
+
$loadedOffline=false;
|
132 |
//Online
|
133 |
+
if (intval($_GET['localeOnline'])==1) {
|
134 |
+
if ($ch = curl_init('http://www.facebook.com/translations/FacebookLocales.xml')) {
|
135 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
136 |
+
$fb_locales=curl_exec($ch);
|
137 |
+
if (curl_errno($ch)) {
|
138 |
+
//echo curl_error($ch);
|
139 |
+
} else {
|
140 |
+
$info = curl_getinfo($ch);
|
141 |
+
if (intval($info['http_code'])==200) {
|
142 |
+
//Save the file locally
|
143 |
+
$fh = fopen(ABSPATH . 'wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/includes/FacebookLocales.xml', 'w') or die("Can't open file");
|
144 |
+
fwrite($fh, $fb_locales);
|
145 |
+
fclose($fh);
|
146 |
+
$listLocales=true;
|
147 |
+
$loadedOnline=true;
|
148 |
+
}
|
149 |
}
|
150 |
+
curl_close($ch);
|
151 |
}
|
|
|
152 |
}
|
153 |
//Offline
|
154 |
if (!$listLocales) {
|
155 |
if ($fb_locales=file_get_contents(ABSPATH . 'wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/includes/FacebookLocales.xml')) {
|
156 |
$listLocales=true;
|
157 |
+
$loadedOffline=true;
|
158 |
}
|
159 |
}
|
160 |
//OK
|
170 |
}
|
171 |
?>
|
172 |
</select>
|
173 |
+
<br/>
|
174 |
+
<?php
|
175 |
+
if ($loadedOnline) {
|
176 |
+
?>List loaded from Facebook (online)<?php
|
177 |
+
} else {
|
178 |
+
if ($loadedOffline) {
|
179 |
+
?>List loaded from local cache (offline) - <a href="?page=wonderm00n-open-graph.php&localeOnline=1" onClick="return(confirm('You\'l lose any changes you haven\'t saved. Are you sure?'));">Reload from Facebook</a><?php
|
180 |
+
} else {
|
181 |
+
?>List not loaded<?php
|
182 |
+
}
|
183 |
+
}
|
184 |
+
?>
|
185 |
</td>
|
186 |
</tr>
|
187 |
<tr>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-faceb
|
|
4 |
Tags: facebook, open graph, seo, share, social, meta
|
5 |
Requires at least: 3
|
6 |
Tested up to: 3.5.1
|
7 |
-
Stable tag: 0.5.
|
8 |
|
9 |
This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
|
10 |
It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results.
|
@@ -50,10 +50,17 @@ Other Tags:
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
= 0.5.1 =
|
54 |
|
55 |
-
* Fixed a typo
|
56 |
-
* Added the information about the recommended minimum image size
|
57 |
|
58 |
= 0.5 =
|
59 |
|
@@ -77,11 +84,11 @@ Other Tags:
|
|
77 |
|
78 |
= 0.3.5 =
|
79 |
|
80 |
-
* Minor fixes to avoid php notices filling up error logs. Thanks to flynsarmy.
|
81 |
|
82 |
= 0.3.4 =
|
83 |
|
84 |
-
* Fixed a bug where all the settings could be lost when saving other plugins options (Shame on me!!)
|
85 |
|
86 |
= 0.3.3 =
|
87 |
|
@@ -89,7 +96,7 @@ Other Tags:
|
|
89 |
|
90 |
= 0.3.2 =
|
91 |
|
92 |
-
* Fixed a typo on the settings page
|
93 |
|
94 |
= 0.3.1 =
|
95 |
|
@@ -99,8 +106,8 @@ Other Tags:
|
|
99 |
|
100 |
* "SubHeading" plugin integration. It's now possible add this field to the "og:title" tag.
|
101 |
* Changed the way defaults and user settings are loaded and saved, to "try" to eliminate the problem some users experienced where the user settings would disappear.
|
102 |
-
* Bugfix: "Also add image to RSS/RSS2 feeds?" option was not being correctly loaded
|
103 |
-
* The plugin version is now showed both as a comment before the open graph tags and on the settings page
|
104 |
|
105 |
= 0.2.3 =
|
106 |
|
@@ -131,7 +138,7 @@ Other Tags:
|
|
131 |
|
132 |
= 0.1.8.1 =
|
133 |
|
134 |
-
* Fixed the namespace declarations
|
135 |
|
136 |
= 0.1.8 =
|
137 |
|
@@ -152,7 +159,7 @@ Other Tags:
|
|
152 |
|
153 |
= 0.1.5 =
|
154 |
|
155 |
-
* Fixed the way Categories and Tags pages links were being retrieved that would cause an error on WP 3.0
|
156 |
* Added the option to use a Custom text as homepage og:description instead of the Website Tagline.
|
157 |
* Fixed a bug that wouldn't allow to uncheck the og:image tag.
|
158 |
|
4 |
Tags: facebook, open graph, seo, share, social, meta
|
5 |
Requires at least: 3
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 0.5.2
|
8 |
|
9 |
This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results.
|
10 |
It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results.
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 0.5.2 =
|
54 |
+
|
55 |
+
* Minor fix to avoid php notices filling up error logs. Thanks to @flynsarmy (again).
|
56 |
+
* Fixed FacebookLocales.xml URL.
|
57 |
+
* By default the FacebookLocales.xml is loaded from the local cache (to save on bandwidth) and it's only loaded from Facebook URL by user request.
|
58 |
+
* Deleted some commented debug stuff and translate portuguese comments to english.
|
59 |
+
|
60 |
= 0.5.1 =
|
61 |
|
62 |
+
* Fixed a typo.
|
63 |
+
* Added the information about the recommended minimum image size.
|
64 |
|
65 |
= 0.5 =
|
66 |
|
84 |
|
85 |
= 0.3.5 =
|
86 |
|
87 |
+
* Minor fixes to avoid php notices filling up error logs. Thanks to @flynsarmy.
|
88 |
|
89 |
= 0.3.4 =
|
90 |
|
91 |
+
* Fixed a bug where all the settings could be lost when saving other plugins options (Shame on me!!).
|
92 |
|
93 |
= 0.3.3 =
|
94 |
|
96 |
|
97 |
= 0.3.2 =
|
98 |
|
99 |
+
* Fixed a typo on the settings page.
|
100 |
|
101 |
= 0.3.1 =
|
102 |
|
106 |
|
107 |
* "SubHeading" plugin integration. It's now possible add this field to the "og:title" tag.
|
108 |
* Changed the way defaults and user settings are loaded and saved, to "try" to eliminate the problem some users experienced where the user settings would disappear.
|
109 |
+
* Bugfix: "Also add image to RSS/RSS2 feeds?" option was not being correctly loaded.
|
110 |
+
* The plugin version is now showed both as a comment before the open graph tags and on the settings page.
|
111 |
|
112 |
= 0.2.3 =
|
113 |
|
138 |
|
139 |
= 0.1.8.1 =
|
140 |
|
141 |
+
* Fixed the namespace declarations.
|
142 |
|
143 |
= 0.1.8 =
|
144 |
|
159 |
|
160 |
= 0.1.5 =
|
161 |
|
162 |
+
* Fixed the way Categories and Tags pages links were being retrieved that would cause an error on WP 3.0.
|
163 |
* Added the option to use a Custom text as homepage og:description instead of the Website Tagline.
|
164 |
* Fixed a bug that wouldn't allow to uncheck the og:image tag.
|
165 |
|
wonderm00n-open-graph.php
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Wonderm00n's Simple Facebook Open Graph Meta Tags
|
4 |
-
* @version 0.5.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
|
8 |
Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
|
9 |
Description: This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and twitterfeed post the image to Facebook correctly.
|
10 |
Author: Marco Almeida (Wonderm00n)
|
11 |
-
Version: 0.5.
|
12 |
Author URI: http://wonderm00n.com
|
13 |
*/
|
14 |
|
@@ -46,7 +46,7 @@ $wonderm00n_open_graph_plugin_settings=array(
|
|
46 |
'fb_show_businessdirectoryplugin'
|
47 |
);
|
48 |
|
49 |
-
//We have to remove canonical NOW because the plugin runs
|
50 |
if (get_option('wonderm00n_open_graph_fb_url_show')==1) {
|
51 |
if (get_option('wonderm00n_open_graph_fb_url_canonical')==1) {
|
52 |
remove_action('wp_head', 'rel_canonical');
|
@@ -56,37 +56,14 @@ if (get_option('wonderm00n_open_graph_fb_url_show')==1) {
|
|
56 |
function wonderm00n_open_graph() {
|
57 |
global $wonderm00n_open_graph_plugin_settings, $wonderm00n_open_graph_plugin_version;
|
58 |
|
|
|
59 |
foreach($wonderm00n_open_graph_plugin_settings as $key) {
|
60 |
$$key=get_option('wonderm00n_open_graph_'.$key);
|
61 |
}
|
62 |
|
63 |
-
//This should be set by options on wp-admin
|
64 |
-
/*$fb_app_id_show=get_option('wonderm00n_open_graph_fb_app_id_show');
|
65 |
-
$fb_app_id=get_option('wonderm00n_open_graph_fb_app_id');
|
66 |
-
$fb_admin_id_show=get_option('wonderm00n_open_graph_fb_admin_id_show');
|
67 |
-
$fb_admin_id=get_option('wonderm00n_open_graph_fb_admin_id');
|
68 |
-
$fb_locale_show=get_option('wonderm00n_open_graph_fb_locale_show');
|
69 |
-
$fb_locale = get_option('wonderm00n_open_graph_fb_locale');
|
70 |
-
$fb_sitename_show=get_option('wonderm00n_open_graph_fb_sitename_show');
|
71 |
-
$fb_title_show=get_option('wonderm00n_open_graph_fb_title_show');
|
72 |
-
$fb_url_show=get_option('wonderm00n_open_graph_fb_url_show');
|
73 |
-
$fb_url_add_trailing=get_option('wonderm00n_open_graph_fb_url_add_trailing');
|
74 |
-
$fb_type_show=get_option('wonderm00n_open_graph_fb_type_show');
|
75 |
-
$fb_type_homepage=get_option('wonderm00n_open_graph_fb_type_homepage');
|
76 |
-
$fb_desc_show=get_option('wonderm00n_open_graph_fb_desc_show');
|
77 |
-
$fb_desc_chars=intval(get_option('wonderm00n_open_graph_fb_desc_chars'));
|
78 |
-
$fb_desc_homepage = get_option('wonderm00n_open_graph_fb_desc_homepage');
|
79 |
-
$fb_desc_homepage_customtext = get_option('wonderm00n_open_graph_fb_desc_homepage_customtext');
|
80 |
-
$fb_image_show=get_option('wonderm00n_open_graph_fb_image_show');
|
81 |
-
$fb_image=get_option('wonderm00n_open_graph_fb_image');
|
82 |
-
$fb_image_use_featured=get_option('wonderm00n_open_graph_fb_image_use_featured');
|
83 |
-
$fb_image_use_content=get_option('wonderm00n_open_graph_fb_image_use_content');
|
84 |
-
$fb_image_use_media=get_option('wonderm00n_open_graph_fb_image_use_media');
|
85 |
-
$fb_image_use_default=get_option('wonderm00n_open_graph_fb_image_use_default');*/
|
86 |
-
|
87 |
$fb_type='article';
|
88 |
if (is_singular()) {
|
89 |
-
//It's a Post or a Page or an attachment page
|
90 |
global $post;
|
91 |
$fb_title=esc_attr(strip_tags(stripslashes($post->post_title)));
|
92 |
//All In One SEO - To Do
|
@@ -114,7 +91,7 @@ function wonderm00n_open_graph() {
|
|
114 |
}
|
115 |
$fb_url=get_permalink();
|
116 |
if (trim($post->post_excerpt)!='') {
|
117 |
-
//If there's an excerpt that's
|
118 |
$fb_desc=trim($post->post_excerpt);
|
119 |
} else {
|
120 |
//If not we grab it from the content
|
@@ -137,7 +114,7 @@ function wonderm00n_open_graph() {
|
|
137 |
$fb_title=esc_attr(strip_tags(stripslashes($bdppost->post_title))).' - '.$fb_title;
|
138 |
$fb_url=get_permalink($listing_id);
|
139 |
if (trim($bdppost->post_excerpt)!='') {
|
140 |
-
//If there's an excerpt that's
|
141 |
$fb_desc=trim($bdppost->post_excerpt);
|
142 |
} else {
|
143 |
//If not we grab it from the content
|
@@ -272,7 +249,7 @@ function wonderm00n_open_graph() {
|
|
272 |
$html.='<meta property="og:url" content="'.trim(esc_attr($fb_url)).'" />
|
273 |
';
|
274 |
if (intval($fb_url_canonical)==1) {
|
275 |
-
//remove_action('wp_head', 'rel_canonical'); //
|
276 |
$html.='<link rel="canonical" href="'.trim(esc_attr($fb_url)).'" />
|
277 |
';
|
278 |
}
|
@@ -338,7 +315,6 @@ function wonderm00n_open_graph_images_on_feed_image() {
|
|
338 |
$uploads = wp_upload_dir();
|
339 |
$url = parse_url($fb_image);
|
340 |
$path = $uploads['basedir'] . preg_replace( '/.*uploads(.*)/', '${1}', $url['path'] );
|
341 |
-
//echo $path;
|
342 |
if (file_exists($path)) {
|
343 |
$filesize=filesize($path);
|
344 |
$url=$path;
|
@@ -367,7 +343,6 @@ function wonderm00n_open_graph_post_image($fb_image_use_featured=1, $fb_image_us
|
|
367 |
//There's a featured/thumbnail image for this post
|
368 |
$fb_image=wp_get_attachment_url($id_attachment, false);
|
369 |
$thumbdone=true;
|
370 |
-
//echo 'IMG FEAT';
|
371 |
}
|
372 |
}
|
373 |
}
|
@@ -376,23 +351,22 @@ function wonderm00n_open_graph_post_image($fb_image_use_featured=1, $fb_image_us
|
|
376 |
if (intval($fb_image_use_content)==1) {
|
377 |
$imgreg = '/<img .*src=["\']([^ ^"^\']*)["\']/';
|
378 |
preg_match_all($imgreg, trim($post->post_content), $matches);
|
379 |
-
$
|
380 |
-
if ($image) {
|
381 |
//There's an image on the content
|
|
|
382 |
$pos = strpos($image, site_url());
|
383 |
if ($pos === false) {
|
384 |
if (stristr($image, 'http://') || stristr($image, 'https://')) {
|
385 |
-
//URL
|
386 |
$fb_image=$image;
|
387 |
} else {
|
388 |
$fb_image=site_url().$image;
|
389 |
}
|
390 |
} else {
|
391 |
-
//URL
|
392 |
$fb_image=$image;
|
393 |
}
|
394 |
$thumbdone=true;
|
395 |
-
//echo 'IMG CONTENT';
|
396 |
}
|
397 |
}
|
398 |
}
|
@@ -403,7 +377,6 @@ function wonderm00n_open_graph_post_image($fb_image_use_featured=1, $fb_image_us
|
|
403 |
if ($images) {
|
404 |
$fb_image=wp_get_attachment_url($images[0]->ID, false);
|
405 |
$thumbdone=true;
|
406 |
-
//echo 'IMG MEDIA';
|
407 |
}
|
408 |
}
|
409 |
}
|
@@ -412,11 +385,9 @@ function wonderm00n_open_graph_post_image($fb_image_use_featured=1, $fb_image_us
|
|
412 |
if (intval($fb_image_use_default)==1) {
|
413 |
//Well... We sure did try. We'll just keep the default one!
|
414 |
$fb_image=$default_image;
|
415 |
-
//echo 'IMG DEFAULT';
|
416 |
} else {
|
417 |
//User chose not to use default on pages/posts
|
418 |
$fb_image='';
|
419 |
-
//echo 'IMG NO IMG';
|
420 |
}
|
421 |
}
|
422 |
return $fb_image;
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Wonderm00n's Simple Facebook Open Graph Meta Tags
|
4 |
+
* @version 0.5.2
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Wonderm00n's Simple Facebook Open Graph Meta Tags
|
8 |
Plugin URI: http://blog.wonderm00n.com/2011/10/14/wordpress-plugin-simple-facebook-open-graph-tags/
|
9 |
Description: This plugin inserts Facebook Open Graph Tags into your WordPress Blog/Website for more effective Facebook sharing results. It also allows you to add the Meta Description tag and Schema.org Name, Description and Image tags for more effective Google+ sharing results. You can also choose to insert the "enclosure" and "media:content" tags to the RSS feeds, so that apps like RSS Graffiti and twitterfeed post the image to Facebook correctly.
|
10 |
Author: Marco Almeida (Wonderm00n)
|
11 |
+
Version: 0.5.2
|
12 |
Author URI: http://wonderm00n.com
|
13 |
*/
|
14 |
|
46 |
'fb_show_businessdirectoryplugin'
|
47 |
);
|
48 |
|
49 |
+
//We have to remove canonical NOW because the plugin runs too late
|
50 |
if (get_option('wonderm00n_open_graph_fb_url_show')==1) {
|
51 |
if (get_option('wonderm00n_open_graph_fb_url_canonical')==1) {
|
52 |
remove_action('wp_head', 'rel_canonical');
|
56 |
function wonderm00n_open_graph() {
|
57 |
global $wonderm00n_open_graph_plugin_settings, $wonderm00n_open_graph_plugin_version;
|
58 |
|
59 |
+
//Get options
|
60 |
foreach($wonderm00n_open_graph_plugin_settings as $key) {
|
61 |
$$key=get_option('wonderm00n_open_graph_'.$key);
|
62 |
}
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
$fb_type='article';
|
65 |
if (is_singular()) {
|
66 |
+
//It's a Post or a Page or an attachment page - It acan also be the homepage if it's set as a page
|
67 |
global $post;
|
68 |
$fb_title=esc_attr(strip_tags(stripslashes($post->post_title)));
|
69 |
//All In One SEO - To Do
|
91 |
}
|
92 |
$fb_url=get_permalink();
|
93 |
if (trim($post->post_excerpt)!='') {
|
94 |
+
//If there's an excerpt that's what we'll use
|
95 |
$fb_desc=trim($post->post_excerpt);
|
96 |
} else {
|
97 |
//If not we grab it from the content
|
114 |
$fb_title=esc_attr(strip_tags(stripslashes($bdppost->post_title))).' - '.$fb_title;
|
115 |
$fb_url=get_permalink($listing_id);
|
116 |
if (trim($bdppost->post_excerpt)!='') {
|
117 |
+
//If there's an excerpt that's what we'll use
|
118 |
$fb_desc=trim($bdppost->post_excerpt);
|
119 |
} else {
|
120 |
//If not we grab it from the content
|
249 |
$html.='<meta property="og:url" content="'.trim(esc_attr($fb_url)).'" />
|
250 |
';
|
251 |
if (intval($fb_url_canonical)==1) {
|
252 |
+
//remove_action('wp_head', 'rel_canonical'); //This is already done
|
253 |
$html.='<link rel="canonical" href="'.trim(esc_attr($fb_url)).'" />
|
254 |
';
|
255 |
}
|
315 |
$uploads = wp_upload_dir();
|
316 |
$url = parse_url($fb_image);
|
317 |
$path = $uploads['basedir'] . preg_replace( '/.*uploads(.*)/', '${1}', $url['path'] );
|
|
|
318 |
if (file_exists($path)) {
|
319 |
$filesize=filesize($path);
|
320 |
$url=$path;
|
343 |
//There's a featured/thumbnail image for this post
|
344 |
$fb_image=wp_get_attachment_url($id_attachment, false);
|
345 |
$thumbdone=true;
|
|
|
346 |
}
|
347 |
}
|
348 |
}
|
351 |
if (intval($fb_image_use_content)==1) {
|
352 |
$imgreg = '/<img .*src=["\']([^ ^"^\']*)["\']/';
|
353 |
preg_match_all($imgreg, trim($post->post_content), $matches);
|
354 |
+
if (isset($matches[1][0])) {
|
|
|
355 |
//There's an image on the content
|
356 |
+
$image=$matches[1][0];
|
357 |
$pos = strpos($image, site_url());
|
358 |
if ($pos === false) {
|
359 |
if (stristr($image, 'http://') || stristr($image, 'https://')) {
|
360 |
+
//Complete URL - offsite
|
361 |
$fb_image=$image;
|
362 |
} else {
|
363 |
$fb_image=site_url().$image;
|
364 |
}
|
365 |
} else {
|
366 |
+
//Complete URL - onsite
|
367 |
$fb_image=$image;
|
368 |
}
|
369 |
$thumbdone=true;
|
|
|
370 |
}
|
371 |
}
|
372 |
}
|
377 |
if ($images) {
|
378 |
$fb_image=wp_get_attachment_url($images[0]->ID, false);
|
379 |
$thumbdone=true;
|
|
|
380 |
}
|
381 |
}
|
382 |
}
|
385 |
if (intval($fb_image_use_default)==1) {
|
386 |
//Well... We sure did try. We'll just keep the default one!
|
387 |
$fb_image=$default_image;
|
|
|
388 |
} else {
|
389 |
//User chose not to use default on pages/posts
|
390 |
$fb_image='';
|
|
|
391 |
}
|
392 |
}
|
393 |
return $fb_image;
|