function currency_api_get_currencies in Currency 6
Same name and namespace in other branches
- 7 currency_api/currency_api.module \currency_api_get_currencies()
Returns an array of all currency properties.
2 calls to currency_api_get_currencies()
- currency_api_get_list in currency_api/
currency_api.module - Returns an array of all currency names.
- currency_api_get_symbols in currency_api/
currency_api.module - Returns an array of all currency symbols.
File
- currency_api/
currency_api.module, line 456 - This module provides an API for currency conversion.
Code
function currency_api_get_currencies() {
return array(
'AFN' => array(
'name' => t('Afghanistani Afghani (AFN)'),
'symbol' => '؋',
'decimals' => 2,
),
'ALL' => array(
'name' => t('Albanian Lek (ALL)'),
'symbol' => 'Lek',
'decimals' => 2,
),
'DZD' => array(
'name' => t('Algerian Dinar (DZD)'),
'symbol' => 'دج',
'decimals' => 2,
),
'ARS' => array(
'name' => t('Argentine Peso (ARS)'),
'symbol' => '$',
'decimals' => 2,
),
'AWG' => array(
'name' => t('Aruba Florin (AWG)'),
'symbol' => 'ƒ',
'decimals' => 2,
),
'AUD' => array(
'name' => t('Australian Dollar (AUD)'),
'symbol' => '$',
'decimals' => 2,
),
'AZN' => array(
'name' => t('Azerbaijan New Maneat (AZN)'),
'symbol' => 'ман',
'decimals' => 2,
),
'BSD' => array(
'name' => t('Bahamian Dollar (BSD)'),
'symbol' => 'D',
'decimals' => 2,
),
'BHD' => array(
'name' => t('Bahraini Dinar (BHD)'),
'symbol' => '.د.ب',
'decimals' => 2,
),
'BDT' => array(
'name' => t('Bangladeshi Taka (BDT)'),
'symbol' => '৳, ৲',
'decimals' => 2,
),
'BBD' => array(
'name' => t('Barbadian Dollar (BBD)'),
'symbol' => 'Bds$',
'decimals' => 2,
),
'BYR' => array(
'name' => t('Belarus Ruble (BYR)'),
'symbol' => 'p.',
'decimals' => 2,
),
'BZD' => array(
'name' => t('Belize Dollar (BZD)'),
'symbol' => 'BZ$',
'decimals' => 2,
),
'BMD' => array(
'name' => t('Bermuda Dollar (BMD)'),
'symbol' => '$',
'decimals' => 2,
),
'BTN' => array(
'name' => t('Bhutanese Ngultrum (BTN)'),
'symbol' => 'Nu.',
'decimals' => 2,
),
'BOB' => array(
'name' => t('Bolivian Boliviano (BOB)'),
'symbol' => '$b',
'decimals' => 2,
),
'BAM' => array(
'name' => t('Bosnia and Herzegovina Convertible Marka (BAM)'),
'symbol' => 'KM',
'decimals' => 2,
),
'BWP' => array(
'name' => t('Botswana Pula (BWP)'),
'symbol' => 'P',
'decimals' => 2,
),
'BRL' => array(
'name' => t('Brazilian Real (BRL)'),
'symbol' => 'R$',
'decimals' => 2,
),
'GBP' => array(
'name' => t('British Pound (GBP)'),
'symbol' => '£',
'decimals' => 2,
),
'BND' => array(
'name' => t('Brunei Dollar (BND)'),
'symbol' => '$',
'decimals' => 2,
),
'BGN' => array(
'name' => t('Bulgarian Lev (BGN)'),
'symbol' => 'лв',
'decimals' => 2,
),
'BIF' => array(
'name' => t('Burundi Franc (BIF)'),
'symbol' => 'FBu',
'decimals' => 2,
),
'KHR' => array(
'name' => t('Cambodia Riel (KHR)'),
'symbol' => '៛',
'decimals' => 2,
),
'CAD' => array(
'name' => t('Canadian Dollar (CAD)'),
'symbol' => '$',
'decimals' => 2,
),
'CVE' => array(
'name' => t('Cape Verdean Escudo (CVE)'),
'symbol' => 'Esc',
'decimals' => 2,
),
'KYD' => array(
'name' => t('Cayman Islands Dollar (KYD)'),
'symbol' => '$',
'decimals' => 2,
),
'XOF' => array(
'name' => t('CFA Franc (BCEAO) (XOF)'),
'symbol' => 'F',
'decimals' => 2,
),
'XAF' => array(
'name' => t('CFA Franc (BEAC) (XAF)'),
'symbol' => 'F',
'decimals' => 2,
),
'CLP' => array(
'name' => t('Chilean Peso (CLP)'),
'symbol' => '$',
'decimals' => 2,
),
'CNY' => array(
'name' => t('Chinese Yuan (CNY)'),
'symbol' => '元',
'decimals' => 2,
),
'COP' => array(
'name' => t('Colombian Peso (COP)'),
'symbol' => '$',
'decimals' => 2,
),
'KMF' => array(
'name' => t('Comoros Franc (KMF)'),
'symbol' => 'F',
'decimals' => 2,
),
'CRC' => array(
'name' => t('Costa Rica Colon (CRC)'),
'symbol' => '₡',
'decimals' => 2,
),
'HRK' => array(
'name' => t('Croatian Kuna (HRK)'),
'symbol' => 'kn',
'decimals' => 2,
),
'CUP' => array(
'name' => t('Cuban Peso (CUP)'),
'symbol' => '₱',
'decimals' => 2,
),
'CYP' => array(
'name' => t('Cyprus Pound (CYP)'),
'symbol' => '£',
'decimals' => 2,
),
'CZK' => array(
'name' => t('Czech Koruna (CZK)'),
'symbol' => 'Kč',
'decimals' => 2,
),
'DKK' => array(
'name' => t('Danish Krone (DKK)'),
'symbol' => 'kr',
'decimals' => 2,
),
'DJF' => array(
'name' => t('Dijiboutian Franc (DJF)'),
'symbol' => 'Fdj',
'decimals' => 2,
),
'DOP' => array(
'name' => t('Dominican Peso (DOP)'),
'symbol' => 'RD$',
'decimals' => 2,
),
'XCD' => array(
'name' => t('East Caribbean Dollar (XCD)'),
'symbol' => '$',
'decimals' => 2,
),
'EGP' => array(
'name' => t('Egyptian Pound (EGP)'),
'symbol' => 'LE',
'decimals' => 2,
),
'SVC' => array(
'name' => t('El Salvador Colon (SVC)'),
'symbol' => '$',
'decimals' => 2,
),
'ERN' => array(
'name' => t('Eritrean Nakfa (ERN)'),
'symbol' => 'Nfk',
'decimals' => 2,
),
'EEK' => array(
'name' => t('Estonian Kroon (EEK)'),
'symbol' => 'kr',
'decimals' => 2,
),
'ETB' => array(
'name' => t('Ethiopian Birr (ETB)'),
'symbol' => 'Br',
'decimals' => 2,
),
'EUR' => array(
'name' => t('Euro (EUR)'),
'symbol' => '€',
'decimals' => 2,
),
'FKP' => array(
'name' => t('Falkland Islands Pound (FKP)'),
'symbol' => '£',
'decimals' => 2,
),
'FJD' => array(
'name' => t('Fiji Dollar (FJD)'),
'symbol' => '$',
'decimals' => 2,
),
'GMD' => array(
'name' => t('Gambian Dalasi (GMD)'),
'symbol' => 'D',
'decimals' => 2,
),
'GHC' => array(
'name' => t('Ghanian Cedi (GHC)'),
'symbol' => '¢',
'decimals' => 2,
),
'GIP' => array(
'name' => t('Gibraltar Pound (GIP)'),
'symbol' => '£',
'decimals' => 2,
),
'XAU' => array(
'name' => t('Gold Ounces (XAU)'),
'symbol' => 'XAU',
'decimals' => 2,
),
'GTQ' => array(
'name' => t('Guatemala Quetzal (GTQ)'),
'symbol' => 'Q',
'decimals' => 2,
),
'GGP' => array(
'name' => t('Guernsey Pound (GGP)'),
'symbol' => '£',
'decimals' => 2,
),
'GNF' => array(
'name' => t('Guinea Franc (GNF)'),
'symbol' => 'FG',
'decimals' => 2,
),
'GYD' => array(
'name' => t('Guyana Dollar (GYD)'),
'symbol' => '$',
'decimals' => 2,
),
'HTG' => array(
'name' => t('Haiti Gourde (HTG)'),
'symbol' => 'G',
'decimals' => 2,
),
'HNL' => array(
'name' => t('Honduras Lempira (HNL)'),
'symbol' => 'L',
'decimals' => 2,
),
'HKD' => array(
'name' => t('Hong Kong Dollar (HKD)'),
'symbol' => 'HK$',
'decimals' => 2,
),
'HUF' => array(
'name' => t('Hungarian Forint (HUF)'),
'symbol' => 'Ft',
'decimals' => 0,
),
'ISK' => array(
'name' => t('Iceland Krona (ISK)'),
'symbol' => 'kr',
'decimals' => 2,
),
'INR' => array(
'name' => t('Indian Rupee (INR)'),
'symbol' => '₹',
'decimals' => 2,
),
'IDR' => array(
'name' => t('Indonesian Rupiah (IDR)'),
'symbol' => 'Rp',
'decimals' => 2,
),
'IRR' => array(
'name' => t('Iran Rial (IRR)'),
'symbol' => '﷼',
'decimals' => 2,
),
'IQD' => array(
'name' => t('Iraqi Dinar (IQD)'),
'symbol' => 'ع.د',
'decimals' => 2,
),
'ILS' => array(
'name' => t('Israeli Shekel (ILS)'),
'symbol' => '₪',
'decimals' => 2,
),
'JMD' => array(
'name' => t('Jamaican Dollar (JMD)'),
'symbol' => 'J$',
'decimals' => 2,
),
'JPY' => array(
'name' => t('Japanese Yen (JPY)'),
'symbol' => '¥',
'decimals' => 0,
),
'JOD' => array(
'name' => t('Jordanian Dinar (JOD)'),
'symbol' => 'din.',
'decimals' => 2,
),
'KZT' => array(
'name' => t('Kazakhstan Tenge (KZT)'),
'symbol' => 'лв',
'decimals' => 2,
),
'KES' => array(
'name' => t('Kenyan Shilling (KES)'),
'symbol' => 'KSh',
'decimals' => 2,
),
'KRW' => array(
'name' => t('Korean Won (KRW)'),
'symbol' => '₩',
'decimals' => 2,
),
'KWD' => array(
'name' => t('Kuwaiti Dinar (KWD)'),
'symbol' => 'د.ك',
'decimals' => 2,
),
'KGS' => array(
'name' => t('Kyrgyzstan Som (KGS)'),
'symbol' => 'лв',
'decimals' => 2,
),
'LAK' => array(
'name' => t('Lao Kip (LAK)'),
'symbol' => '₭',
'decimals' => 2,
),
'LVL' => array(
'name' => t('Latvian Lat (LVL)'),
'symbol' => 'Ls',
'decimals' => 2,
),
'LBP' => array(
'name' => t('Lebanese Pound (LBP)'),
'symbol' => '£',
'decimals' => 2,
),
// L for singular, M for plural
'LSL' => array(
'name' => t('Lesotho Loti (LSL)'),
'symbol' => 'M',
'decimals' => 2,
),
'LRD' => array(
'name' => t('Liberian Dollar (LRD)'),
'symbol' => '$',
'decimals' => 2,
),
'LYD' => array(
'name' => t('Libyan Dinar (LYD)'),
'symbol' => 'ل.د',
'decimals' => 2,
),
'LTL' => array(
'name' => t('Lithuanian Lita (LTL)'),
'symbol' => 'Lt',
'decimals' => 2,
),
'MOP' => array(
'name' => t('Macau Pataca (MOP)'),
'symbol' => 'MOP$',
'decimals' => 2,
),
'MKD' => array(
'name' => t('Macedonian Denar (MKD)'),
'symbol' => 'ден',
'decimals' => 2,
),
// Non-decimal currency.
'MGA' => array(
'name' => t('Malagasy ariary (MGA)'),
'symbol' => 'Ar',
'decimals' => 0,
),
'MWK' => array(
'name' => t('Malawian Kwacha (MWK)'),
'symbol' => 'MK',
'decimals' => 2,
),
'MYR' => array(
'name' => t('Malaysian Ringgit (MYR)'),
'symbol' => 'RM',
'decimals' => 2,
),
'MVR' => array(
'name' => t('Maldives Rufiyaa (MVR)'),
'symbol' => 'Rf',
'decimals' => 2,
),
'MTL' => array(
'name' => t('Maltese Lira (MTL)'),
'symbol' => 'Lm',
'decimals' => 2,
),
// Non-decimal currency.
'MRO' => array(
'name' => t('Mauritania Ougulya (MRO)'),
'symbol' => 'UM',
'decimals' => 0,
),
'MUR' => array(
'name' => t('Mauritius Rupee (MUR)'),
'symbol' => '₨',
'decimals' => 2,
),
'MXN' => array(
'name' => t('Mexican Peso (MXN)'),
'symbol' => '$',
'decimals' => 2,
),
'MDL' => array(
'name' => t('Moldovan Leu (MDL)'),
'symbol' => 'lei',
'decimals' => 2,
),
'MNT' => array(
'name' => t('Mongolian Tugrik (MNT)'),
'symbol' => '₮',
'decimals' => 2,
),
'MAD' => array(
'name' => t('Moroccan Dirham (MAD)'),
'symbol' => 'د.م.',
'decimals' => 2,
),
'MZM' => array(
'name' => t('Mozambique Metical (MZM)'),
'symbol' => 'MT',
'decimals' => 2,
),
'MMK' => array(
'name' => t('Myanmar Kyat (MMK)'),
'symbol' => 'K',
'decimals' => 2,
),
'NAD' => array(
'name' => t('Namibian Dollar (NAD)'),
'symbol' => '$',
'decimals' => 2,
),
'NPR' => array(
'name' => t('Nepalese Rupee (NPR)'),
'symbol' => '₨',
'decimals' => 2,
),
'ANG' => array(
'name' => t('Neth Antilles Guilder (ANG)'),
'symbol' => 'ƒ',
'decimals' => 2,
),
'NZD' => array(
'name' => t('New Zealand Dollar (NZD)'),
'symbol' => '$',
'decimals' => 2,
),
'NIO' => array(
'name' => t('Nicaragua Cordoba (NIO)'),
'symbol' => 'C$',
'decimals' => 2,
),
'NGN' => array(
'name' => t('Nigerian Naira (NGN)'),
'symbol' => '₦',
'decimals' => 2,
),
'KPW' => array(
'name' => t('North Korean Won (KPW)'),
'symbol' => '₩',
'decimals' => 2,
),
'NOK' => array(
'name' => t('Norwegian Krone (NOK)'),
'symbol' => 'kr',
'decimals' => 2,
),
'OMR' => array(
'name' => t('Omani Rial (OMR)'),
'symbol' => '﷼',
'decimals' => 2,
),
'XPF' => array(
'name' => t('Pacific Franc (XPF)'),
'symbol' => 'F',
'decimals' => 2,
),
'PKR' => array(
'name' => t('Pakistani Rupee (PKR)'),
'symbol' => '₨',
'decimals' => 2,
),
'XPD' => array(
'name' => t('Palladium Ounces (XPD)'),
'symbol' => 'XPD',
'decimals' => 2,
),
'PAB' => array(
'name' => t('Panama Balboa (PAB)'),
'symbol' => 'B/.',
'decimals' => 2,
),
'PGK' => array(
'name' => t('Papua New Guinea Kina (PGK)'),
'symbol' => 'K',
'decimals' => 2,
),
'PYG' => array(
'name' => t('Paraguayan Guarani (PYG)'),
'symbol' => 'Gs',
'decimals' => 2,
),
'PEN' => array(
'name' => t('Peruvian Nuevo Sol (PEN)'),
'symbol' => 'S/.',
'decimals' => 2,
),
'PHP' => array(
'name' => t('Philippine Peso (PHP)'),
'symbol' => 'Php',
'decimals' => 2,
),
'XPT' => array(
'name' => t('Platinum Ounces (XPT)'),
'symbol' => 'XPT',
'decimals' => 2,
),
'PLN' => array(
'name' => t('Polish Zloty (PLN)'),
'symbol' => 'zł',
'decimals' => 2,
),
'QAR' => array(
'name' => t('Qatar Rial (QAR)'),
'symbol' => '﷼',
'decimals' => 2,
),
'RON' => array(
'name' => t('Romanian New Leu (RON)'),
'symbol' => 'lei',
'decimals' => 2,
),
'RUB' => array(
'name' => t('Russian Rouble (RUB)'),
'symbol' => 'руб.',
'decimals' => 2,
),
'RWF' => array(
'name' => t('Rwandese Franc (RWF)'),
'symbol' => 'RF',
'decimals' => 2,
),
'WST' => array(
'name' => t('Samoan Tala (WST)'),
'symbol' => 'WS$',
'decimals' => 2,
),
'STD' => array(
'name' => t('Sao Tome Dobra (STD)'),
'symbol' => 'Db',
'decimals' => 2,
),
'SAR' => array(
'name' => t('Saudi Arabian Riyal (SAR)'),
'symbol' => '﷼',
'decimals' => 2,
),
'SCR' => array(
'name' => t('Seychelles Rupee (SCR)'),
'symbol' => '₨',
'decimals' => 2,
),
'RSD' => array(
'name' => t('Serbian Dinar (RSD)'),
'symbol' => 'Дин.',
'decimals' => 2,
),
'SLL' => array(
'name' => t('Sierra Leone Leone (SLL)'),
'symbol' => 'Le',
'decimals' => 2,
),
'XAG' => array(
'name' => t('Silver Ounces (XAG)'),
'symbol' => 'XAG',
'decimals' => 2,
),
'SGD' => array(
'name' => t('Singapore Dollar (SGD)'),
'symbol' => '$',
'decimals' => 2,
),
'SKK' => array(
'name' => t('Slovak Koruna (SKK)'),
'symbol' => 'SIT',
'decimals' => 2,
),
'SBD' => array(
'name' => t('Solomon Islands Dollar (SBD)'),
'symbol' => '$',
'decimals' => 2,
),
'SOS' => array(
'name' => t('Somali Shilling (SOS)'),
'symbol' => 'S',
'decimals' => 2,
),
'ZAR' => array(
'name' => t('South African Rand (ZAR)'),
'symbol' => 'R',
'decimals' => 2,
),
'LKR' => array(
'name' => t('Sri Lanka Rupee (LKR)'),
'symbol' => '₨',
'decimals' => 2,
),
'SHP' => array(
'name' => t('St Helena Pound (SHP)'),
'symbol' => '£',
'decimals' => 2,
),
// No symbol.
// See http://en.wikipedia.org/wiki/Sudanese_pound
'SDG' => array(
'name' => t('Sudanese Pound (SDG)'),
'symbol' => 'SDG',
'decimals' => 2,
),
'SRD' => array(
'name' => t('Surinam Dollar (SRD)'),
'symbol' => '$',
'decimals' => 2,
),
// L for singular, E for plural
'SZL' => array(
'name' => t('Swaziland Lilageni (SZL)'),
'symbol' => 'E',
'decimals' => 2,
),
'SEK' => array(
'name' => t('Swedish Krona (SEK)'),
'symbol' => 'kr',
'decimals' => 2,
),
'CHF' => array(
'name' => t('Swiss Franc (CHF)'),
'symbol' => 'CHF',
'decimals' => 2,
),
'SYP' => array(
'name' => t('Syrian Pound (SYP)'),
'symbol' => '£',
'decimals' => 2,
),
'TWD' => array(
'name' => t('Taiwan Dollar (TWD)'),
'symbol' => 'NT$',
'decimals' => 2,
),
// No symbol, but instead an insane formatting.
// See http://en.wikipedia.org/wiki/Tanzanian_shilling#Symbol
'TZS' => array(
'name' => t('Tanzanian Shilling (TZS)'),
'symbol' => 'TZS',
'decimals' => 2,
),
'THB' => array(
'name' => t('Thai Baht (THB)'),
'symbol' => '฿',
'decimals' => 2,
),
'TOP' => array(
'name' => t('Tonga Pa\'anga (TOP)'),
'symbol' => 'T$',
'decimals' => 2,
),
'TTD' => array(
'name' => t('Trinidad & Tobago Dollar (TTD)'),
'symbol' => 'TT$',
'decimals' => 2,
),
'TND' => array(
'name' => t('Tunisian Dinar (TND)'),
'symbol' => 'د.ت',
'decimals' => 2,
),
'TRY' => array(
'name' => t('Turkish Lira (TRY)'),
'symbol' => 'TL',
'decimals' => 2,
),
'USD' => array(
'name' => t('U.S. Dollar (USD)'),
'symbol' => '$',
'decimals' => 2,
),
'AED' => array(
'name' => t('UAE Dirham (AED)'),
'symbol' => 'د.إ',
'decimals' => 2,
),
'UGX' => array(
'name' => t('Ugandan Shilling (UGX)'),
'symbol' => 'USh',
'decimals' => 2,
),
// There is a new sign as of March 2004, which is encoded as U+20B4 in
// Unicode 4.1 released in 2005. It's not yet supported by most operating
// systems, so I opted for the abbrevation instead.
'UAH' => array(
'name' => t('Ukraine Hryvnia (UAH)'),
'symbol' => 'грн.',
'decimals' => 2,
),
'UYU' => array(
'name' => t('Uruguayan New Peso (UYU)'),
'symbol' => '$U',
'decimals' => 2,
),
'UZS' => array(
'name' => t('Uzbekistan Sum (UZS)'),
'symbol' => 'лв',
'decimals' => 2,
),
'VUV' => array(
'name' => t('Vanuatu Vatu (VUV)'),
'symbol' => 'Vt',
'decimals' => 2,
),
'VEB' => array(
'name' => t('Venezuelan Bolivar (VEB)'),
'symbol' => 'Bs',
'decimals' => 2,
),
'VND' => array(
'name' => t('Vietnam Dong (VND)'),
'symbol' => '₫',
'decimals' => 2,
),
'YER' => array(
'name' => t('Yemen Riyal (YER)'),
'symbol' => '﷼',
'decimals' => 2,
),
'YUM' => array(
'name' => t('Yugoslav Dinar (YUM)'),
'symbol' => 'дин',
'decimals' => 2,
),
'ZMK' => array(
'name' => t('Zambian Kwacha (ZMK)'),
'symbol' => 'ZK',
'decimals' => 2,
),
'ZMW' => array(
'name' => t('Zambian Kwacha (ZMW)'),
'symbol' => 'ZK',
'decimals' => 2,
),
'ZWD' => array(
'name' => t('Zimbabwe Dollar (ZWD)'),
'symbol' => 'Z$',
'decimals' => 2,
),
);
}