function i18n_string_element_mark in Internationalization 7
Mark form element as localizable
File
- i18n_string/
i18n_string.module, line 434 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_element_mark(&$element) {
$description = '<strong>' . t('This string will be localizable. You can translate it using the <a href="@translate-interface">translate interface</a> pages.', array(
'@translate-interface' => url('admin/config/regional/translate/translate'),
)) . '</strong>';
if (empty($element['#description'])) {
$element['#description'] = $description;
}
else {
$element['#description'] .= ' ' . $description;
}
}