Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4542

_x() can't retrieve translation with placeholders but without parameters

    XMLWordPrintable

    Details

    • Sprint:
      Sprint 33

      Description

      If string with placeholders is requested by function _x(), but no parameters are given to replace placeholders with, the function can't return translated string.

      Example: _x('Added, %1$s', ZBX_CONTEXT_SCREEN_READER) will return false.

      In order to avoid such, function _x() should be separated into two functions:

      1. _x() should return translated string with unreplaced placeholders. Similar to function _().
      2. _xs() should return translated string with replaced placeholders.Similar to function _s().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              HunterCRS Alexander Shubin
              Reporter:
              vmurzins Valdis Murzins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: