function _biblio_localize_type in Bibliography Module 6
Same name and namespace in other branches
- 6.2 biblio.module \_biblio_localize_type()
- 7 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
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.
6 calls to _biblio_localize_type()
- biblio_form in ./
biblio.module - Implementation of hook_form().
- theme_biblio_long in ./
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 ./
biblio_theme.inc - _biblio_category_separator_bar in ./
biblio.pages.inc - _biblio_filter_info_line in ./
biblio.pages.inc
File
- ./
biblio.module, line 87
Code
function _biblio_localize_type($tid, $value, $field = 'name') {
if (module_exists('i18nstrings')) {
return tt("biblio:type:{$tid}:{$field}", $value);
}
return $value;
}