You are here

function i18n_string_get_source in Internationalization 7

Get source string object.

This returns the i18nstring object only when it has a source.

Return value

i18n_string_object

2 calls to i18n_string_get_source()
i18n_string_l10n_client_save_string in i18n_string/i18n_string.pages.inc
Menu callback. Saves a string translation coming as POST data.
i18n_string_translation_update in i18n_string/i18n_string.module
Update / create translation for a certain source.

File

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

Code

function i18n_string_get_source($name) {
  return i18n_string_build($name)
    ->get_source();
}