You are here

function i18nviews_plugin_localization_i18nstrings::translate_string in Internationalization Views 6.3

Same name and namespace in other branches
  1. 7.3 includes/i18nviews_plugin_localization_i18nstrings.inc \i18nviews_plugin_localization_i18nstrings::translate_string()

Translate a string.

Parameters

$string: The string to be translated.

$keys: An array of keys to identify the string. Generally constructed from view name, display_id, and a property, e.g., 'header'.

Overrides views_plugin_localization::translate_string

File

includes/i18nviews_plugin_localization_i18nstrings.inc, line 23
Contains the i18nstrings localization plugin.

Class

i18nviews_plugin_localization_i18nstrings
Localization plugin to pass translatable strings through i18nstrings().

Code

function translate_string($string, $keys = array()) {
  return i18nstrings($this
    ->stringid($keys), $string);
}