Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15666

Language system is not fully supported in Twig

XMLWordPrintable

      The language system provides for translations like this in PHP:

      $language->lang(array('datetime', 'AGO'), 1)

      but when used in Twig as below in development mode (set in config.php) it returns an "array to string conversion" error:

      {{ lang(['datetime', 'Sunday'], 1) }}

            nicofuma nicofuma
            Blitze Blitze [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: