Review main Abandoned

64911[FEATURE] Implement XLIFF pluralization forms "zero", "one" and "many"

Armin Vieweg CR 0 V 0 Normal +127 −9 updated 11/05/21, 08:39

Commit message

Example usage in Locallang.xlf:

<group restype="x-gettext-plurals">
    <trans-unit id="label.itemsFound[0]">
        <source>No items found.</source>
    </trans-unit>
    <trans-unit id="label.itemsFound[1]">
        <source>Found one item.</source>
    </trans-unit>
    <trans-unit id="label.itemsFound[2]">
        <source>Found %d items.</source>
    </trans-unit>
</group>

Example usage in Fluid template:
<f:translate key="label.itemsFound" arguments="{0: '{items -> f:count()}'}">

Overwrite pluralized translations example, using typoscript:
plugin.tx_myext._LOCAL_LANG.default.label.itemsFound._pluralize {
  0 = %d items found
  1 = 1 item found
  2 = %d items found
}

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2