Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17272

Translation target sentences that require multiple arguments with order

XMLWordPrintable

    • Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
    • 1

      There is a statement added in 5.0.0alpha1 and the latest trunk, which is specified only as %s even when multiple arguments are required.
      When translating, We sometimes want to change the order, so please make sure the order is clear, such as %1$s and %2$s. It is also specified in the guidelines.

      Current state:
      **

      #: include/classes/core/CModuleManager.php:228
      #, c-format
      msgid "%s - thrown by module located at %s."
      
      #: include/classes/core/ZBase.php:451
      #, c-format
      msgid "Action class %s must extend %s class."
      
      #: include/classes/core/ZBase.php:445
      #, c-format
      msgid "Class %s not found for action %s."
      
      #: include/classes/core/CModuleManager.php:155
      #, c-format
      msgid "Identical ID (%s) is used by modules located at %s."
      
      #: include/classes/core/CModuleManager.php:162
      #, c-format
      msgid "Identical namespace (%s) is used by modules located at %s."
      
      #: include/classes/core/CModuleManager.php:222
      #, c-format
      msgid "Module.php class must extend %s for module located at %s."
      

       

      In Guidelines:

      If more than one variable is inserted, variable placeholders MUST have order number.
      https://www.zabbix.com/documentation/guidelines/coding/php#translatable_strings

            iivs Ivo Kurzemnieks
            atanaka Atsushi Tanaka
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: