Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/plugins/views_plugin_localization_none.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Contains the 'none' localization plugin.
|
|
5 |
* Definition of views_plugin_localization_none.
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
/** |
... | ... | |
11 | 11 |
* @ingroup views_localization_plugins |
12 | 12 |
*/ |
13 | 13 |
class views_plugin_localization_none extends views_plugin_localization { |
14 |
var $translate = FALSE; |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public $translate = FALSE; |
|
15 | 19 |
|
16 | 20 |
/** |
17 | 21 |
* Translate a string; simply return the string. |
18 | 22 |
*/ |
19 |
function translate($source) { |
|
23 |
public function translate($source) {
|
|
20 | 24 |
return $source['value']; |
21 | 25 |
} |
22 | 26 |
|
23 | 27 |
/** |
24 | 28 |
* Save a string for translation; not supported. |
25 | 29 |
*/ |
26 |
function save($source) { |
|
30 |
public function save($source) {
|
|
27 | 31 |
return FALSE; |
28 | 32 |
} |
29 | 33 |
|
30 | 34 |
/** |
31 | 35 |
* Delete a string; not supported. |
32 | 36 |
*/ |
33 |
function delete($source) { |
|
37 |
public function delete($source) {
|
|
34 | 38 |
return FALSE; |
35 | 39 |
} |
40 |
|
|
36 | 41 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules