Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/tests/views_plugin_localization_test.inc
9 9
 * A stump localisation plugin which has static variables to cache the input.
10 10
 */
11 11
class views_plugin_localization_test extends views_plugin_localization {
12

  
12 13
  /**
13 14
   * Store the strings which was translated.
14 15
   */
15
  var $translated_strings;
16
  public $translated_strings;
17

  
16 18
  /**
17 19
   * Return the string and take sure that the test can find out whether the
18 20
   * string got translated.
19 21
   */
20
  function translate_string($string, $keys = array(), $format = '') {
22
  public function translate_string($string, $keys = array(), $format = '') {
21 23
    $this->translated_strings[] = $string;
22 24
    return $string . "-translated";
23 25
  }
......
25 27
  /**
26 28
   * Store the export strings.
27 29
   */
28
  function export($source) {
30
  public function export($source) {
29 31
    if (!empty($source['value'])) {
30 32
      $this->export_strings[] = $source['value'];
31 33
    }
......
34 36
  /**
35 37
   * Return the stored strings for the simpletest.
36 38
   */
37
  function get_export_strings() {
39
  public function get_export_strings() {
38 40
    return $this->export_strings;
39 41
  }
42

  
40 43
}

Formats disponibles : Unified diff