Add support for translation notes

To add a translation note, use it as a filter. For example,
consider
   {% Free %}
If we want to say that this means free as in no monetary value,
wrap it around in {{ }} and apply the tl_note filter:
   {% {{ "Free" | tl_note: Free as in no monetary value }} %}
The tl_note parameter will be ignored when this Liquid filter is
parsed, but the entirety will be used as the keyed string. Just
make sure that translators don't remove the quotes around "Free".
This commit is contained in:
djoate 2019-11-24 13:43:26 -05:00
parent 8800be73ae
commit 2a82bc59fa
No known key found for this signature in database
GPG Key ID: E8366E2E207EFB0E

View File

@ -38,6 +38,10 @@ module Jekyll
"#{page}/#{page_language}"
end
end
def tl_note(text, comment)
text
end
end
end