You are here

function nivo_slider_translate in Nivo Slider 7

Same name and namespace in other branches
  1. 8 nivo_slider.module \nivo_slider_translate()

Translates a user defined slide string.

Parameters

$name: Location glued with ':'.

$string: String in default language. Default language may or may not be English.

$langcode: The language code if it is different from the page request one.

$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 223
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, array(
    'langcode' => $langcode,
  )) : $string;
}