function views_plugin_localization_test::translate_string

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

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.

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";
}