$xmf = new GP_Locale(); $xmf->english_name = 'Mingrelian'; $xmf->native_name = 'მარგალური ნინა'; $xmf->lang_code_iso_639_3 = 'xmf'; $xmf->country_code = 'ge'; $xmf->wp_locale = 'xmf'; $xmf->slug = 'xmf'; $yi = new GP_Locale(); $yi->english_name = 'Yiddish'; $yi->native_name = 'ייִדיש'; $yi->lang_code_iso_639_1 = 'yi'; $yi->lang_code_iso_639_2 = 'yid'; $yi->slug = 'yi'; $yi->text_direction = 'rtl'; $yi->google_code = 'yi'; $yor = new GP_Locale(); $yor->english_name = 'Yoruba'; $yor->native_name = 'Yorùbá'; $yor->lang_code_iso_639_1 = 'yo'; $yor->lang_code_iso_639_2 = 'yor'; $yor->lang_code_iso_639_3 = 'yor'; $yor->country_code = 'ng'; $yor->wp_locale = 'yor'; $yor->slug = 'yor'; $yor->google_code = 'yo'; $yor->facebook_locale = 'yo_NG'; $zh_cn = new GP_Locale(); $zh_cn->english_name = 'Chinese (China)'; $zh_cn->native_name = '简体中文'; $zh_cn->lang_code_iso_639_1 = 'zh'; $zh_cn->lang_code_iso_639_2 = 'zho'; $zh_cn->country_code = 'cn'; $zh_cn->wp_locale = 'zh_CN'; $zh_cn->slug = 'zh-cn'; $zh_cn->nplurals = 1; $zh_cn->plural_expression = '0'; $zh_cn->google_code = 'zh-CN'; $zh_cn->facebook_locale = 'zh_CN'; $zh_hk = new GP_Locale(); $zh_hk->english_name = 'Chinese (Hong Kong)'; $zh_hk->native_name = '香港中文版 '; $zh_hk->lang_code_iso_639_1 = 'zh'; $zh_hk->lang_code_iso_639_2 = 'zho'; $zh_hk->country_code = 'hk'; $zh_hk->wp_locale = 'zh_HK'; $zh_hk->slug = 'zh-hk'; $zh_hk->nplurals = 1; $zh_hk->plural_expression = '0'; $zh_hk->facebook_locale = 'zh_HK'; $zh_sg = new GP_Locale(); $zh_sg->english_name = 'Chinese (Singapore)'; $zh_sg->native_name = '中文'; $zh_sg->lang_code_iso_639_1 = 'zh'; $zh_sg->lang_code_iso_639_2 = 'zho'; $zh_sg->country_code = 'sg'; $zh_sg->wp_locale = 'zh_SG'; $zh_sg->slug = 'zh-sg'; $zh_sg->nplurals = 1; $zh_sg->plural_expression = '0'; $zh_tw = new GP_Locale(); $zh_tw->english_name = 'Chinese (Taiwan)'; $zh_tw->native_name = '繁體中文'; $zh_tw->lang_code_iso_639_1 = 'zh'; $zh_tw->lang_code_iso_639_2 = 'zho'; $zh_tw->country_code = 'tw'; $zh_tw->slug = 'zh-tw'; $zh_tw->wp_locale= 'zh_TW'; $zh_tw->nplurals = 1; $zh_tw->plural_expression = '0'; $zh_tw->google_code = 'zh-TW'; $zh_tw->facebook_locale = 'zh_TW'; $zh = new GP_Locale(); $zh->english_name = 'Chinese'; $zh->native_name = '中文'; $zh->lang_code_iso_639_1 = 'zh'; $zh->lang_code_iso_639_2 = 'zho'; $zh->slug = 'zh'; $zh->nplurals = 1; $zh->plural_expression = '0'; $zul = new GP_Locale(); $zul->english_name = 'Zulu'; $zul->native_name = 'isiZulu'; $zul->lang_code_iso_639_1 = 'zu'; $zul->lang_code_iso_639_2 = 'zul'; $zul->lang_code_iso_639_3 = 'zul'; $zul->country_code = 'za'; $zul->wp_locale = 'zul'; $zul->slug = 'zul'; $zul->google_code = 'zu'; foreach( get_defined_vars() as $locale ) { $this->locales[ $locale->slug ] = $locale; } } public static function &instance() { if ( ! isset( $GLOBALS['gp_locales'] ) ) $GLOBALS['gp_locales'] = new GP_Locales; return $GLOBALS['gp_locales']; } public static function locales() { $instance = GP_Locales::instance(); return $instance->locales; } public static function exists( $slug ) { $instance = GP_Locales::instance(); return isset( $instance->locales[ $slug ] ); } public static function by_slug( $slug ) { $instance = GP_Locales::instance(); return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null; } public static function by_field( $field_name, $field_value ) { $instance = GP_Locales::instance(); $result = false; foreach( $instance->locales() as $locale ) { if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) { $result = $locale; break; } } return $result; } } endif; WordPress › fout

Er heeft zich een kritieke fout voorgedaan op deze site.

Meer informatie over probleemoplossing in WordPress.