You are here

public static function SearchAdBase::adsenseEncodings in Google AdSense integration 8

Supply available encodings for the search configuration forms.

Return value

array encoding options with the key used by Google and its description.

File

src/SearchAdBase.php, line 16

Class

SearchAdBase
Base class for search AdsenseAd plugins.

Namespace

Drupal\adsense

Code

public static function adsenseEncodings() {
  return [
    'windows-1256' => t('Arabic (Windows-1256)'),
    'cp852' => t('Central European (CP852)'),
    'windows-1250' => t('Central European (Windows-1250)'),
    'ISO-8859-2' => t('Central European Latin-2 (ISO-8859-2)'),
    'GB18030' => t('Chinese Simplified (GB18030)'),
    'GB2312' => t('Chinese Simplified (GB2312)'),
    'big5' => t('Chinese Traditional (Big5)'),
    'ISO-8859-5' => t('Cyrillic (ISO-8859-5)'),
    'KOI8-R' => t('Cyrillic (KOI8-R)'),
    'windows-1251' => t('Cyrillic (Windows-1251)'),
    'cp-866' => t('Cyrillic/Russian (CP-866)'),
    'ISO-8859-7' => t('Greek (ISO-8859-7)'),
    'ISO-8859-8-I' => t('Hebrew (ISO-8859-8-I)'),
    'windows-1255' => t('Hebrew (Windows-1255)'),
    'EUC-JP' => t('Japanese (EUC-JP)'),
    'ISO-2022-JP' => t('Japanese (ISO-2022-JP)'),
    'Shift_JIS' => t('Japanese (Shift_JIS)'),
    'EUC-KR' => t('Korean (EUC-KR)'),
    'ISO-8859-10' => t('Nordic Latin-6 (ISO-8859-10)'),
    'ISO-8859-3' => t('South European Latin-3 (ISO-8859-3)'),
    'windows-874' => t('Thai (Windows-874)'),
    'ISO-8859-9' => t('Turkish Latin-5 (ISO-8859-9)'),
    'windows-1254' => t('Turkish (Windows-1254)'),
    'UTF-8' => t('Unicode (UTF-8)'),
    'windows-1258' => t('Vietnamese (Windows-1258)'),
    'windows-1252' => t('Western (Windows-1252)'),
    'ISO-8859-1' => t('West European Latin-1 (ISO-8859-1)'),
    'ISO-8859-15' => t('West European Latin-9 (ISO-8859-15)'),
  ];
}