Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15666

Language system is not fully supported in Twig

    XMLWordPrintable

    Details

      Description

      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) }}

        Attachments

          Activity

            People

            • Assignee:
              nicofuma nicofuma
              Reporter:
              Blitze Blitze
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: