You are here

protected function i18n_string_object_wrapper::get_translate_context in Internationalization 7

Context to be pre-loaded before translation.

1 call to i18n_string_object_wrapper::get_translate_context()
i18n_string_object_wrapper::translate_object in i18n_string/i18n_string.inc
Translate all properties for object.
2 methods override i18n_string_object_wrapper::get_translate_context()
i18n_field::get_translate_context in i18n_field/i18n_field.inc
Context to be pre-loaded before translation.
i18n_field_instance::get_translate_context in i18n_field/i18n_field.inc
Context to be pre-loaded before translation.

File

i18n_string/i18n_string.inc, line 1299
API for internationalization strings

Class

i18n_string_object_wrapper
String object wrapper

Code

protected function get_translate_context($langcode, $options) {

  // One-query translation of all textgroup:type:objectid:* properties
  $context = $this
    ->get_string_context();
  $context[] = '*';
  return $context;
}