You are here

function _adsense_search_options_language in Google AdSense integration 7

Same name and namespace in other branches
  1. 5.3 includes/adsense.search_options.inc \_adsense_search_options_language()
  2. 6 includes/adsense.search_options.inc \_adsense_search_options_language()

Supply the available languages for the search configuration forms.

Return value

array array of language options with the key used by Google and its description

3 calls to _adsense_search_options_language()
adsense_cse_settings in cse/adsense_cse.admin.inc
Menu callback for the adsense_cse module settings form.
adsense_main_settings in ./adsense.admin.inc
Menu callback for the adsense module settings form.
adsense_search_settings in old/search/adsense_search.admin.inc
Menu callback for the adsense_search module settings form.

File

includes/adsense.search_options.inc, line 306
Helper functions used by AdSense for Search configuration forms.

Code

function _adsense_search_options_language() {
  return array(
    'ar' => t('Arabic'),
    'bg' => t('Bulgarian'),
    'ca' => t('Catalan'),
    'zh-Hans' => t('Chinese Simplified'),
    'zh-TW' => t('Chinese Traditional'),
    'hr' => t('Croatian'),
    'cs' => t('Czech'),
    'da' => t('Danish'),
    'nl' => t('Dutch'),
    'en' => t('English'),
    'et' => t('Estonian'),
    'fi' => t('Finnish'),
    'fr' => t('French'),
    'de' => t('German'),
    'el' => t('Greek'),
    'iw' => t('Hebrew'),
    'hi' => t('Hindi'),
    'hu' => t('Hungarian'),
    'is' => t('Icelandic'),
    'in' => t('Indonesian'),
    'it' => t('Italian'),
    'ja' => t('Japanese'),
    'ko' => t('Korean'),
    'lv' => t('Latvian'),
    'lt' => t('Lithuanian'),
    'no' => t('Norwegian'),
    'pl' => t('Polish'),
    'pt' => t('Portuguese'),
    'ro' => t('Romanian'),
    'ru' => t('Russian'),
    'sr' => t('Serbian'),
    'sk' => t('Slovak'),
    'sl' => t('Slovenian'),
    'es' => t('Spanish'),
    'sv' => t('Swedish'),
    'th' => t('Thai'),
    'tr' => t('Turkish'),
    'uk' => t('Ukrainian'),
    'vi' => t('Vietnamese'),
  );
}