Révision 6331c987
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/i18n/tests/i18n_test.module | ||
---|---|---|
36 | 36 |
'format' => FALSE, // This group doesn't have strings with format |
37 | 37 |
'refresh callback' => 'i18n_test_i18n_string_refresh', |
38 | 38 |
); |
39 |
$groups['test_cached'] = array( |
|
40 |
'title' => t('Test Cached Strings'), |
|
41 |
'description' => t('Translatable items of a textgroup with caching enabled.'), |
|
42 |
'format' => FALSE, // This group doesn't have strings with format |
|
43 |
'class' => 'i18n_string_textgroup_cached', |
|
44 |
); |
|
39 | 45 |
return $groups; |
40 | 46 |
} |
41 | 47 |
/** |
... | ... | |
43 | 49 |
*/ |
44 | 50 |
function i18n_test_i18n_string_refresh() { |
45 | 51 |
return TRUE; |
52 |
} |
|
53 |
|
|
54 |
/** |
|
55 |
* Implements hook_menu(). |
|
56 |
*/ |
|
57 |
function i18n_test_menu() { |
|
58 |
// Required for the i18n_string caching tests. |
|
59 |
$items['tests/i18n/i18n_string_build/%'] = array( |
|
60 |
'title' => 'Load string', |
|
61 |
'access callback' => TRUE, |
|
62 |
'page callback' => 'i18n_string_build', |
|
63 |
'page arguments' => array(3), |
|
64 |
'type' => MENU_CALLBACK, |
|
65 |
'delivery callback' => 'drupal_json_output', |
|
66 |
); |
|
67 |
$items['tests/i18n/i18n_string_build/%/%'] = array( |
|
68 |
'title' => 'Load string', |
|
69 |
'access callback' => TRUE, |
|
70 |
'page callback' => 'i18n_string_build', |
|
71 |
'page arguments' => array(3, 4), |
|
72 |
'type' => MENU_CALLBACK, |
|
73 |
'delivery callback' => 'drupal_json_output', |
|
74 |
); |
|
75 |
$items['tests/i18n/i18n_string_translation_search/%'] = array( |
|
76 |
'title' => 'Search string translations', |
|
77 |
'access callback' => TRUE, |
|
78 |
'page callback' => 'i18n_string_translation_search', |
|
79 |
'page arguments' => array(3), |
|
80 |
'type' => MENU_CALLBACK, |
|
81 |
'delivery callback' => 'drupal_json_output', |
|
82 |
); |
|
83 |
$items['tests/i18n/i18n_string_translation_search/%/%'] = array( |
|
84 |
'title' => 'Search string translations', |
|
85 |
'access callback' => TRUE, |
|
86 |
'page callback' => 'i18n_string_translation_search', |
|
87 |
'page arguments' => array(3, 4), |
|
88 |
'type' => MENU_CALLBACK, |
|
89 |
'delivery callback' => 'drupal_json_output', |
|
90 |
); |
|
91 |
return $items; |
|
46 | 92 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules