add l10n and added reserved tag list

This commit is contained in:
danhanson committed 2026-09-07 15:09:13 -05:00
1 parent c0e7b4697d
commit 7eb95e4e84
10 files changed
+37876 -27455

No files matched your search

+55
View File
@@ -229,3 +229,58 @@ Builtin Filter With An Argument It Does Not Take
{{ x|length:2 }}
---
==================
Custom Tag Does Not Cover An End Tag
:error
==================
{% endif %}
---
==================
Custom Tag Does Not Cover A Part Of A Tag Group
:error
==================
{% else %}
---
==================
A Name Reserved For A Tag Is Still A Variable
==================
{{ endif }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))))
(content))
==================
A Name Reserved For A Tag Is Still An Argument
==================
{% mytag endif %}
---
(template
(content)
(custom_tag
tag: (identifier)
(filtered_value
(value
(variable_attribute
(identifier)))))
(content))
+129
View File
@@ -39,3 +39,132 @@ content
(template
(content)))
(content))
==================
Ifchanged With Else
==================
{% ifchanged %}
content
{% else %}
unchanged
{% endifchanged %}
---
(template
(content)
(ifchanged_group
(template
(content))
(template
(content)))
(content))
==================
Ifchanged With Values And Else
==================
{% ifchanged x y|upper %}
content
{% else %}
unchanged
{% endifchanged %}
---
(template
(content)
(ifchanged_group
(filtered_value
(value
(variable_attribute
(identifier))))
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter)))
(template
(content))
(template
(content)))
(content))
==================
Ifchanged With An Empty Else
==================
{% ifchanged %}
content
{% else %}{% endifchanged %}
---
(template
(content)
(ifchanged_group
(template
(content)))
(content))
==================
Ifchanged Nested In The Else Of Another
==================
{% ifchanged %}
a
{% else %}
{% ifchanged %}
b
{% else %}
c
{% endifchanged %}
{% endifchanged %}
---
(template
(content)
(ifchanged_group
(template
(content))
(template
(content)
(ifchanged_group
(template
(content))
(template
(content)))
(content)))
(content))
==================
Ifchanged With Two Elses
:error
==================
{% ifchanged %}
a
{% else %}
b
{% else %}
c
{% endifchanged %}
---
==================
Ifchanged With An Argument On Else
:error
==================
{% ifchanged %}
a
{% else x %}
b
{% endifchanged %}
---
+163
View File
@@ -0,0 +1,163 @@
==================
Localize
==================
{% localize %}x{% endlocalize %}
---
(template
(content)
(localize_group
(template
(content)))
(content))
==================
Localize On
==================
{% localize on %}x{% endlocalize %}
---
(template
(content)
(localize_group
(template
(content)))
(content))
==================
Localize Off
==================
{% localize off %}x{% endlocalize %}
---
(template
(content)
(localize_group
(template
(content)))
(content))
==================
Localize Hugging Its Delimiters
==================
{%localize%}x{%endlocalize%}
---
(template
(content)
(localize_group
(template
(content)))
(content))
==================
Localize Nested
==================
{% localize on %}{% localize off %}y{% endlocalize %}{% endlocalize %}
---
(template
(content)
(localize_group
(template
(localize_group
(template
(content)))))
(content))
==================
Localize With Another Argument
:error
==================
{% localize maybe %}x{% endlocalize %}
---
==================
Localize With Two Arguments
:error
==================
{% localize on off %}x{% endlocalize %}
---
==================
Localize Unclosed
:error
==================
{% localize %}
---
==================
Localize Filter
==================
{{ x|localize }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter))))
(content))
==================
Unlocalize Filter
==================
{{ x|unlocalize }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter))))
(content))
==================
Localize Filter With An Argument
:error
==================
{{ x|localize:1 }}
---
==================
Unlocalize Filter With An Argument
:error
==================
{{ x|unlocalize:1 }}
---