public function views_plugin_localization::translate_string in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_localization.inc \views_plugin_localization::translate_string()
Translate a string.
Parameters
string $string: The string to be translated.
array $keys: An array of keys to identify the string. Generally constructed from view name, display_id, and a property, e.g. 'header'.
string $format: The input format of the string. This is optional.
1 call to views_plugin_localization::translate_string()
- views_plugin_localization::translate in plugins/
views_plugin_localization.inc - Translate a string / text with format.
2 methods override views_plugin_localization::translate_string()
- views_plugin_localization_core::translate_string in plugins/
views_plugin_localization_core.inc - Translate a string.
- views_plugin_localization_test::translate_string in tests/
views_plugin_localization_test.inc - Return the string and take sure that the test can find out whether the string got translated.
File
- plugins/
views_plugin_localization.inc, line 76 - Definition of views_plugin_localization.
Class
- views_plugin_localization
- The base plugin to handle localization of Views strings.
Code
public function translate_string($string, $keys = array(), $format = '') {
}