You are here

function _biblio_localize_type in Bibliography Module 6.2

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

Translates a publication type for the interface.

If the i18nstrings module is enabled, this function translates a publication type through the interface translation system.

Parameters

integer $tid: The biblio publication type identifier.

string $value: The string to translate.

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

Return value

string The translated text for publication type.

6 calls to _biblio_localize_type()
biblio_form in ./biblio.module
Implements hook_form().
theme_biblio_long in includes/biblio_theme.inc
DEPRECIATED! this was the original output format which is not to flexable it will be removed TODO: remove this function
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

... See full list

File

./biblio.module, line 145
Main file for Drupal module biblio.

Code

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