i18n_panels.i18n.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * @file
  4. * Internationalization (i18n) hooks.
  5. */
  6. /**
  7. * Implements hook_i18n_object_info().
  8. */
  9. function i18n_panels_i18n_object_info() {
  10. $info['pane_configuration'] = array(
  11. 'title' => t('Pane Configuration'),
  12. 'key' => 'uuid',
  13. 'string translation' => array(
  14. 'textgroup' => 'panels',
  15. 'type' => 'pane_configuration',
  16. 'properties' => array(
  17. 'title' => t('Pane Title'),
  18. ),
  19. ),
  20. );
  21. $info['display_configuration'] = array(
  22. 'title' => t('Display Configuration'),
  23. 'key' => 'uuid',
  24. 'string translation' => array(
  25. 'textgroup' => 'panels',
  26. 'type' => 'display_configuration',
  27. 'properties' => array(
  28. 'title' => t('Display Title'),
  29. ),
  30. ),
  31. );
  32. return $info;
  33. }
  34. /**
  35. * Implements hook_i18n_string_info().
  36. */
  37. function i18n_panels_i18n_string_info() {
  38. $groups['panels'] = array(
  39. 'title' => t('Panels'),
  40. 'description' => t('Translatable panels items: display and pane configuration items. E.g. Title.'),
  41. // This group doesn't have strings with format.
  42. 'format' => FALSE,
  43. // This group can list all strings.
  44. 'list' => FALSE,
  45. );
  46. return $groups;
  47. }