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

    • Sprint 33

      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().

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

              Created:
              Updated:
              Resolved: