You are here

protected function i18n_field_instance::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 175
Field and field instance object handlers

Class

i18n_field_instance
Field instance object

Code

protected function get_translate_context($langcode, $options) {
  return array(
    $this->object['field_name'],
    array(
      '#field',
      '#allowed_values',
      $this->object['bundle'],
    ),
    '*',
  );
}