protected function i18n_field::get_translate_context in Internationalization 7
Context to be pre-loaded before translation.
Overrides i18n_string_object_wrapper::get_translate_context
File
- i18n_field/
i18n_field.inc, line 90 - Field and field instance object handlers
Class
- i18n_field
- Field object
Code
protected function get_translate_context($langcode, $options) {
return array(
$this->object['field_name'],
array(
'#field',
'#allowed_values',
),
'*',
);
}