Skip to content

Spreek je Nederlands

Compare
Choose a tag to compare
@cooperaj cooperaj released this 07 Jul 13:54
· 16 commits to main since this release
1db25d3

This release has changed the way translation key extractions work such that all internal whitespace of more than 2 characters (inlcuding carriage returns and new lines) is stripped from the key.

For example you may have a key thats extracted from a template that looks like:

This is my long key, due to template formatting\n
            it may be split on multiple lines with lots of\n 
            odd spaces, due to template indentation.

Consequently your extracted POT files would also have keys that look like that. This is a big problem when you go to change the indentation of a template (perhaps because of a new condtional) as it would break all existing keys, and disassociate them from their completed translations.

This release would now make your key look like:

This is my long key, due to template formatting it may be split on multiple lines with lots of odd spaces, due to template indentation.

It follows HTML rules such that a sequence of multiple whitespace characters are collapsed to a single whitespace.

As you might expect this could be breaking change for you. Please upgrade and test with caution.

Please look at the README.md for more information about upgrading.