You are here

function views_plugin_localization_core::translate_string in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_localization_core.inc \views_plugin_localization_core::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'.

$format: The input format of the string. This is optional.

Overrides views_plugin_localization::translate_string

File

plugins/views_plugin_localization_core.inc, line 26
Contains the Drupal core localization plugin.

Class

views_plugin_localization_core
Localization plugin to pass translatable strings through t().

Code

function translate_string($string, $keys = array(), $format = '') {
  return t($string);
}