You are here

function _registration_translate_update in Entity Registration 7

Same name and namespace in other branches
  1. 8.2 registration.module \_registration_translate_update()
  2. 8 registration.module \_registration_translate_update()
  3. 7.2 registration.module \_registration_translate_update()

Registers a config string so it can later be translated.

Parameters

$name string: A key *without* a textgroup (this module's textgroup will be prefixed automatically).

$string string: A user-entered configuration string in the default language. The default language may or may not be English.

$langcode string: The language code. Defaults to NULL.

Return value

string The translated string, if i18n_string() is available. Otherwise, returns $string.

See also

https://drupal.org/node/1114010

i18n_string()

1 call to _registration_translate_update()
registration_field_formatter_settings_form_process in includes/registration.field.inc
Form element process handler for registration_field_formatter_settings_form().

File

./registration.module, line 2103

Code

function _registration_translate_update($name, $string, $langcode = NULL) {
  return function_exists('i18n_string') ? i18n_string('registration:' . $name, $string, array(
    'update' => TRUE,
    'langcode' => $langcode,
  )) : FALSE;
}