You are here

function _biblio_localize_type in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 biblio.module \_biblio_localize_type()
  2. 6 biblio.module \_biblio_localize_type()
  3. 7 biblio.module \_biblio_localize_type()

Translate a publication type through the interface translation system, if the i18nstrings module is enabled.

Parameters

integer $tid: The biblio publication type identifier.

string $value: The string to translate.

string $field: The publication type field to translate (either 'name' or 'description').

Return value

Translated value.

5 calls to _biblio_localize_type()
biblio_category_section in includes/biblio.pages.inc
theme_biblio_tabular in includes/biblio.theme.inc
_biblio_category_separator_bar in includes/biblio.pages.inc
_biblio_filter_info_line in includes/biblio.pages.inc
_get_biblio_filters in includes/biblio.pages.inc

File

./biblio.module, line 72

Code

function _biblio_localize_type($publication_type, $field = 'name') {
  if (module_exists('i18nstrings')) {
    return tt("biblio:type:{$field}", $publication_type);
  }
  return $publication_type;
}