function views_plugin_localization_test::translate_string
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
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";
}