{% load helpers %} {% with system=preferences|get_key:"ui.measurement_system" %} {% if system == "imperial" %} {% with lbs=value|kg_to_pounds %}{{ lbs|floatformat }} {{ lbs|pluralize:"lb,lbs" }}{% endwith %} {% elif system == "metric" %} {% with formatted=value|floatformat %}{{ formatted }} kg{% endwith %} {% else %} {% with formatted=value|floatformat %}{% with lbs=value|kg_to_pounds %}{{ formatted }} kg ({{ lbs|floatformat }} {{ lbs|pluralize:"lb,lbs" }}){% endwith %}{% endwith %} {% endif %} {% endwith %}