public function views_plugin_localization_test::translate_string in Views (for Drupal 7) 7.3
Return the string and take sure that the test can find out whether the string got translated.
Overrides views_plugin_localization::translate_string
File
- tests/
views_plugin_localization_test.inc, line 22 - Definition of views_plugin_localization_test.
Class
- views_plugin_localization_test
- A stump localisation plugin which has static variables to cache the input.
Code
public function translate_string($string, $keys = array(), $format = '') {
$this->translated_strings[] = $string;
return $string . "-translated";
}