views_plugin_localization_none.inc

Contains the 'none' localization plugin.

File

plugins/views_plugin_localization_none.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains the 'none' localization plugin.
  5. */
  6. /**
  7. * Localization plugin for no localization.
  8. *
  9. * @ingroup views_localization_plugins
  10. */
  11. class views_plugin_localization_none extends views_plugin_localization {
  12. var $translate = FALSE;
  13. /**
  14. * Translate a string; simply return the string.
  15. */
  16. function translate($source) {
  17. return $source['value'];
  18. }
  19. /**
  20. * Save a string for translation; not supported.
  21. */
  22. function save($source) {
  23. return FALSE;
  24. }
  25. /**
  26. * Delete a string; not supported.
  27. */
  28. function delete($source) {
  29. return FALSE;
  30. }
  31. }