function nivo_slider_translate in Nivo Slider 8
Same name and namespace in other branches
- 7 nivo_slider.module \nivo_slider_translate()
Translates a user defined slide string.
Parameters
string $name: Location glued with ':'.
string $string: String in default language. Default language may or may not be English.
int $langcode: The language code if it is different from the page request one.
string $textgroup: Textgroup.
Return value
string Translated string, $string if not found.
1 call to nivo_slider_translate()
- nivo_slider_slider in includes/
nivo_slider_slider.inc - Generates slider markup.
File
- ./
nivo_slider.module, line 104 - Primarily Drupal hooks.
Code
function nivo_slider_translate($name, $string, $langcode = NULL, $textgroup = 'nivo_slider') {
return function_exists('i18n_string') ? i18n_string($textgroup . ':' . $name, $string, [
'langcode' => $langcode,
]) : $string;
}