You are here

function _adsense_search_options_language in Google AdSense integration 5.3

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

Helper function to supply the available languages for the search configuration forms

Return value

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 303
Helper functions used by AdSense for Search configuration forms

Code

function _adsense_search_options_language() {
  return array(
    'ar' => t('Arabic'),
    'bg' => t('Bulgarian'),
    'zh-CN' => t('Chinese (simplified)'),
    'zh-TW' => t('Chinese (traditional)'),
    'hr' => t('Croatian'),
    'cs' => t('Czech'),
    'da' => t('Danish'),
    'nl' => t('Dutch'),
    'en' => t('English'),
    'fi' => t('Finnish'),
    'fr' => t('French'),
    'de' => t('German'),
    'el' => t('Greek'),
    'iw' => t('Hebrew'),
    'hu' => t('Hungarian'),
    'in' => t('Indonesian'),
    'it' => t('Italian'),
    'ja' => t('Japanese'),
    'ko' => t('Korean'),
    'no' => t('Norwegian'),
    'pl' => t('Polish'),
    'pt' => t('Portuguese'),
    'ro' => t('Romanian'),
    'ru' => t('Russian'),
    'sr' => t('Serbian'),
    'sk' => t('Slovak'),
    'es' => t('Spanish'),
    'sv' => t('Swedish'),
    'th' => t('Thai'),
    'tr' => t('Turkish'),
    'vi' => t('Vietnamese'),
  );
}