Projet

Général

Profil

Paste
Télécharger (1,15 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / panels / i18n_panels / i18n_panels.i18n.inc @ 5a7e6170

1
<?php
2
/**
3
 * @file
4
 * Internationalization (i18n) hooks
5
 */
6

    
7
/**
8
 * Implements hook_i18n_object_info().
9
 */
10
function i18n_panels_i18n_object_info() {
11
  $info['pane_configuration'] = array(
12
    'title' => t('Pane Configuration'),
13
    'key' => 'uuid',
14
    'string translation' => array(
15
      'textgroup' => 'panels',
16
      'type' => 'pane_configuration',
17
      'properties' => array(
18
        'title' => t('Pane Title'),
19
      ),
20
    ),
21
  );
22
  $info['display_configuration'] = array(
23
    'title' => t('Display Configuration'),
24
    'key' => 'uuid',
25
    'string translation' => array(
26
      'textgroup' => 'panels',
27
      'type' => 'display_configuration',
28
      'properties' => array(
29
        'title' => t('Display Title'),
30
      ),
31
    ),
32
  );
33

    
34
  return $info;
35
}
36

    
37
/**
38
 * Implements hook_i18n_string_info().
39
 */
40
function i18n_panels_i18n_string_info() {
41
  $groups['panels'] = array(
42
    'title' => t('Panels'),
43
    'description' => t('Translatable panels items: display and pane configuration items. E.g. Title.'),
44
    // This group doesn't have strings with format.
45
    'format' => FALSE,
46
    // This group can list all strings.
47
    'list' => FALSE,
48
  );
49
  return $groups;
50
}