1 views_plugin_localization_test.inc public views_plugin_localization_test::translate_string($string, $keys = array(), $format = '')

Return the string and take sure that the test can find out whether the string got translated.

Overrides views_plugin_localization::translate_string

File

core/modules/views/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";
}