clarify 1/0 comment

This commit is contained in:
welpo 2024-02-14 00:08:23 +01:00
parent 13448cb567
commit 276229f350
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -1,7 +1,7 @@
{% macro translate(key, number=-1, language_strings="", default="") %}
{%- set key_prefix = "" -%}
{# All languages have `zero_` and `one_` prefix #}
{# `zero_` and `one_` are common cases. We handle "many" (plural) later, after language-specific pluralization #}
{%- if number == 0 -%}
{%- set key_prefix = "zero_" -%}
{%- elif number == 1 -%}