function _biblio_localize_type in Bibliography Module 7
Same name and namespace in other branches
- 6.2 biblio.module \_biblio_localize_type()
- 6 biblio.module \_biblio_localize_type()
- 7.2 biblio.module \_biblio_localize_type()
Translate a publication type through the interface translation system, if the i18nstrings module is enabled.
Parameters
int $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 62 - Bibliography Module for Drupal.
Code
function _biblio_localize_type($tid, $value, $field = 'name') {
if (function_exists('i18n_string')) {
return i18n_string("biblio:type:{$tid}:{$field}", $value);
}
return $value;
}