public_html/wp-content/plugins/google-document-embedder/libs/lib-langs.php
/**
 * List of WordPress supported langs mapped to Google lang codes
 *
 * @since   2.5.0.4
 * @note	Last updated from wordpress.org: 12 Nov 2012
 * @return  Array of Google Docs supported languages
 */
List of WordPress supported langs mapped to Google lang codes
@since   2.5.0.4
@note        Last updated from wordpress.org: 12 Nov 2012
@return  Array of Google Docs supported languages
List of WordPress supported langs mapped to Google lang codes @since 2 . 5 . 0 . 4 @note Last updated from wordpress . org : 12 Nov 2012 @return Array of Google Docs supported languages
function gde_mapped_langs( $locale = '' ) {
	$langs = array(
		'ar'	=>	'ar',		
		'bg_BG'	=>	'bg',		
		'bn_BD'	=>	'bn',		
		'ca'	=>	'ca',		
		'cs_CZ'	=>	'cs',		
		'da_DK'	=>	'da',		
		'de_DE'	=>	'de',		
		'el'	=>	'el',		
		'en_GB'	=>	'en_GB',	
		'en_US'	=>	'en_US',	
		'es_ES'	=>	'es',		
		'fi'	=>	'fi',		
		'fr_FR'	=>	'fr',		
		'he_IL'	=>	'iw',		
		'hi_IN'	=>	'hi',		
		'hu_HU'	=>	'hu',		
		'hr'	=>	'hr',		
		'id_ID'	=>	'in',		
		'it_IT'	=>	'it',		
		'ja'	=>	'ja',		
		'ko_KR'	=>	'ko',		
		'lt_LT'	=>	'lt',		
		'lv'	=>	'lv',		
		'nl_NL'	=>	'nl',		
		'nb_NO'	=>	'no',		
		'nn_NO'	=>	'no',		
		'pl_PL'	=>	'pl',		
		'pt_BR'	=>	'pt_BR',	
		'pt_PT'	=>	'pt_PT',	
		'ro_RO'	=>	'ro',		
		'ru_RU'	=>	'ru',		
		'sk_SK'	=>	'sk',		
		'sl_SL'	=>	'sl',		
		'sr_RS'	=>	'sr',		
		'sv_SE'	=>	'sv',		
		'ta_LK'	=>	'ta',		
		'th'	=>	'th',		
		'tr'	=>	'tr',		
		'uk'	=>	'uk',		
		'vi'	=>	'vi',		
		'zh_CN'	=>	'zh_CN',	
		'zh_TW'	=>	'zh_TW'		 (Taiwan)
	);
	if ( ! empty( $locale ) && array_key_exists( $locale, $langs ) ) {
		return $langs[$locale];
	} else {
		return "en_US";
	}
}
function gde_mapped_langs ( $ locale = '' ) { $ langs = array ( 'ar' => 'ar' , 'bg_BG' => 'bg' , 'bn_BD' => 'bn' , 'ca' => 'ca' , 'cs_CZ' => 'cs' , 'da_DK' => 'da' , 'de_DE' => 'de' , 'el' => 'el' , 'en_GB' => 'en_GB' , 'en_US' => 'en_US' , 'es_ES' => 'es' , 'fi' => 'fi' , 'fr_FR' => 'fr' , 'he_IL' => 'iw' , 'hi_IN' => 'hi' , 'hu_HU' => 'hu' , 'hr' => 'hr' , 'id_ID' => 'in' , 'it_IT' => 'it' , 'ja' => 'ja' , 'ko_KR' => 'ko' , 'lt_LT' => 'lt' , 'lv' => 'lv' , 'nl_NL' => 'nl' , 'nb_NO' => 'no' , 'nn_NO' => 'no' , 'pl_PL' => 'pl' , 'pt_BR' => 'pt_BR' , 'pt_PT' => 'pt_PT' , 'ro_RO' => 'ro' , 'ru_RU' => 'ru' , 'sk_SK' => 'sk' , 'sl_SL' => 'sl' , 'sr_RS' => 'sr' , 'sv_SE' => 'sv' , 'ta_LK' => 'ta' , 'th' => 'th' , 'tr' => 'tr' , 'uk' => 'uk' , 'vi' => 'vi' , 'zh_CN' => 'zh_CN' , 'zh_TW' => 'zh_TW' ) ; if ( ! empty ( $ locale ) && array_key_exists ( $ locale , $ langs ) ) { return $ langs [ $ locale ] ; } else { return " en_US " ; } }
List of WordPress supported langs mapped to Google lang codes
 @since   2.5.0.4
 @note        Last updated from wordpress.org: 12 Nov 2012
 @return  Array of Google Docs supported languages
List of WordPress supported langs mapped to Google lang codes @since 2 . 5 . 0 . 4 @note Last updated from wordpress . org : 12 Nov 2012 @return Array of Google Docs supported languages
// wp_lang locale	=>	Google lang code // Arabic // Bulgarian // Bengala // Catalan // Czech // Danish // German // Greek // English UK // English USA // Spanish // Finnish // French // Hebrew // India (Hindi) // Magyar (Hungarian) // Croatian // Bahasa Indonesian // Italian // Japanese // Korean // Lithuanian // Latvian // Netherlands (Dutch) // Norwegian (Norsk) // Polish // Portuguese (Brazil) // Portuguese (Portugal) // Romanian // Russian // Slovak // Slovenian // Serbian // Swedish // Tamil (Sri Lanka) // Thai // Turkish // Ukranian // Vietnamese // Chinese // Chinese (Taiwan)