/administrator/components/com_zoo/framework/helpers/language.php

https://gitlab.com/vnsoftdev/amms · PHP · 30 lines · 6 code · 3 blank · 21 comment · 0 complexity · ca0870407f1eb73c1c240e52f5403a6d MD5 · raw file

  1. <?php
  2. /**
  3. * @package com_zoo
  4. * @author YOOtheme http://www.yootheme.com
  5. * @copyright Copyright (C) YOOtheme GmbH
  6. * @license http://www.gnu.org/licenses/gpl.html GNU/GPL
  7. */
  8. /**
  9. * Language helper. Wrapper for JText and JLanguage
  10. *
  11. * @package Framework.Helpers
  12. */
  13. class LanguageHelper extends AppHelper {
  14. /**
  15. * Translate a string into the current language
  16. *
  17. * @param string $string The string to translate
  18. * @param booolean $js_safe If the string should be made js safe (default: true)
  19. *
  20. * @return string The translated string
  21. *
  22. * @since 1.0.0
  23. */
  24. public function l($string, $js_safe = false) {
  25. return $this->app->system->language->_($string, $js_safe);
  26. }
  27. }