function i18n_string_build in Internationalization 7
Create string class from string name
2 calls to i18n_string_build()
- i18nStringTestCase::testCaching in i18n_string/
i18n_string.test - Test base i18n_string caching.
- i18n_string_get_string in i18n_string/
i18n_string.module - Get full string object.
1 string reference to 'i18n_string_build'
- i18n_test_menu in tests/
i18n_test.module - Implements hook_menu().
File
- i18n_string/
i18n_string.module, line 330 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_build($name, $string = NULL) {
list($group, $context) = i18n_string_context($name);
return i18n_string_textgroup($group)
->build_string($context, $string);
}