You are here

function i18n_string_get_string in Internationalization 7

Get full string object.

Builds string and loads the source if available.

Return value

i18n_string_object

File

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

Code

function i18n_string_get_string($name, $default = NULL) {
  $i18nstring = i18n_string_build($name, $default);
  $i18nstring
    ->get_source();
  return $i18nstring;
}