WordPress.org

Plugin Directory

Changeset 1700822


Ignore:
Timestamp:
07/22/17 16:53:56 (3 months ago)
Author:
KAPlugins
Message:

Fixed Facebook languages

Location:
soslider-social-slider
Files:
59 added
3 edited

Legend:

Unmodified
Added
Removed
  • soslider-social-slider/trunk/handlers/facebook/init.php

    r1545164 r1700822  
    251251            ) 
    252252        ); 
    253         $body        = get_transient( 'soslider_cache_fb_langs' ); 
    254         if ( false === $body ) { 
    255             $body = wp_remote_get( 
    256                 'http://www.facebook.com/translations/FacebookLocales.xml' 
    257             ); 
    258         } 
    259         if ( ! is_wp_error( $body ) ) { 
    260             $body        = is_array( $body ) ? $body['body'] : $body; 
    261             $nb->choices = array(); 
    262             $xml         = simplexml_load_string( $body ); 
    263             foreach ( $xml->locale as $element ) { 
    264                 $name          = (string) $element->englishName; 
    265                 $code          = (string) $element->codes->code->standard->representation; 
    266                 $nb->choices[] = array( $code, $name ); 
    267             } 
    268             set_transient( 'soslider_cache_fb_langs', $body, 12 * HOUR_IN_SECONDS ); 
    269         } 
     253        $choices = '[["af_ZA","Afrikaans"],["ar_AR","Arabic"],["az_AZ","Azerbaijani"],["be_BY","Belarusian"],["bg_BG","Bulgarian"],["bn_IN","Bengali"],["bs_BA","Bosnian"],["ca_ES","Catalan"],["cs_CZ","Czech"],["cx_PH","Cebuano"],["cy_GB","Welsh"],["da_DK","Danish"],["de_DE","German"],["el_GR","Greek"],["en_GB","English (UK)"],["en_PI","English (Pirate)"],["en_UD","English (Upside Down)"],["en_US","English (US)"],["eo_EO","Esperanto"],["es_ES","Spanish (Spain)"],["es_LA","Spanish"],["et_EE","Estonian"],["eu_ES","Basque"],["fa_IR","Persian"],["fb_LT","Leet Speak"],["fi_FI","Finnish"],["fo_FO","Faroese"],["fr_CA","French (Canada)"],["fr_FR","French (France)"],["fy_NL","Frisian"],["ga_IE","Irish"],["gl_ES","Galician"],["gn_PY","Guarani"],["he_IL","Hebrew"],["hi_IN","Hindi"],["hr_HR","Croatian"],["hu_HU","Hungarian"],["hy_AM","Armenian"],["id_ID","Indonesian"],["is_IS","Icelandic"],["it_IT","Italian"],["ja_JP","Japanese"],["jv_ID","Javanese"],["ka_GE","Georgian"],["km_KH","Khmer"],["kn_IN","Kannada"],["ko_KR","Korean"],["ku_TR","Kurdish"],["la_VA","Latin"],["lt_LT","Lithuanian"],["lv_LV","Latvian"],["mk_MK","Macedonian"],["ml_IN","Malayalam"],["ms_MY","Malay"],["nb_NO","Norwegian (bokmal)"],["ne_NP","Nepali"],["nl_NL","Dutch"],["nn_NO","Norwegian (nynorsk)"],["pa_IN","Punjabi"],["pl_PL","Polish"],["ps_AF","Pashto"],["pt_BR","Portuguese (Brazil)"],["pt_PT","Portuguese (Portugal)"],["ro_RO","Romanian"],["ru_RU","Russian"],["si_LK","Sinhala"],["sk_SK","Slovak"],["sl_SI","Slovenian"],["sq_AL","Albanian"],["sr_RS","Serbian"],["sv_SE","Swedish"],["sw_KE","Swahili"],["ta_IN","Tamil"],["te_IN","Telugu"],["th_TH","Thai"],["tl_PH","Filipino"],["tr_TR","Turkish"],["uk_UA","Ukrainian"],["ur_PK","Urdu"],["vi_VN","Vietnamese"],["zh_CN","Simplified Chinese (China)"],["zh_HK","Traditional Chinese (Hong Kong)"],["zh_TW","Traditional Chinese (Taiwan)"]]'; 
     254        $nb->choices = json_decode( $choices, true ); 
    270255        $bo[6][] = $nb; 
    271256 
  • soslider-social-slider/trunk/readme.txt

    r1700819 r1700822  
    55Requires at least: 3.6 
    66Tested up to: 4.8 
    7 Stable tag: 1.3.1 
     7Stable tag: 1.3.2 
    88License: GPLv2 
    99 
  • soslider-social-slider/trunk/soslider.php

    r1545173 r1700822  
    66  Description: Slider for Dailymotion, Facebook, Flickr, GooglePlus, Instagram, LinkedIn, Pinterest, Twitter, Vimeo, YouTube, SoundCloud or for your very custom slider. 
    77  Author: SoSoft 
    8   Version: 1.3.1 
     8  Version: 1.3.2 
    99  Author URI: http://soslider.com 
    1010 */ 
Note: See TracChangeset for help on using the changeset viewer.