public function i18n_string_object::get_string in Internationalization 7
Get source string
2 calls to i18n_string_object::get_string()
- i18n_string_object::format_translation in i18n_string/
i18n_string.inc - Format the resulting translation or the default string applying callbacks
- i18n_string_object::get_args in i18n_string/
i18n_string.inc - Get message parameters from context and string.
File
- i18n_string/
i18n_string.inc, line 123 - API for internationalization strings
Class
- i18n_string_object
- String object that contains source and translations.
Code
public function get_string() {
if (isset($this->string)) {
return $this->string;
}
elseif (isset($this->source)) {
return $this->source;
}
elseif ($this
->textgroup()->debug) {
return empty($this->lid) ? t('[Source not found]') : t('[String not found]');
}
else {
return '';
}
}