You are here

function Currency::translateTitle in Currency 7.2

Translates the human-readable currency title.

Parameters

string|null $language_code: The ISO 639-1 code of the language to translate the title to, or NULL to use the default language.

Return value

string

File

currency/includes/Currency.inc, line 117
Contains class Currency.

Class

Currency
Describes a currency.

Code

function translateTitle($language_code = NULL) {
  if (module_exists('i18n_string')) {
    return i18n_string('currency:currency:' . $this->ISO4217Code . ':title', $this->title, array(
      'langcode' => $language_code,
    ));
  }
  return $this->title;
}