You are here

function i18n_string_update_context in Internationalization 7

Update context for strings.

As some string locations depend on configurable values, the field needs sometimes to be updated without losing existing translations. I.e:

  • profile fields indexed by field name.
  • content types indexted by low level content type name.

Example: 'profile:field:oldfield:*' -> 'profile:field:newfield:*'

1 call to i18n_string_update_context()
i18n_node_node_type_update in i18n_node/i18n_node.module
Implements hook_node_type_update()

File

i18n_string/i18n_string.module, line 369
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_update_context($oldname, $newname) {
  module_load_install('i18n_string');
  return i18n_string_install_update_context($oldname, $newname);
}