You are here

function _biblio_localize_fields in Bibliography Module 7.2

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

Translate field titles and hints through the interface translation system, if the i18nstrings module is enabled.

File

./biblio.module, line 47

Code

function _biblio_localize_fields(&$fields) {
  if (module_exists('i18nstrings')) {
    foreach ($fields as $key => $row) {
      $fields[$key]['title'] = tt("biblio:field:{$row['ftdid']}:title", $fields[$key]['title']);
      $fields[$key]['hint'] = tt("biblio:field:{$row['ftdid']}:hint", $fields[$key]['hint']);
    }
  }
}