Closed johnstef99 closed 1 month ago
I think this issue is related
Using phpencode
should be safe even without the condition, but it just needs to be invoked only in case array members are rendered, not in other cases. The existing tests should cover this pretty well, so you are welcome to experiment with a PR.
In a php translation file it's possible to have a key that contains a quote
'
for example:when converted to po and back to php the above will turn to a broken php file
in /translate/storage/php.py:282 the function getoutput should escape the name too.
Trying to add something like this
works fine for me but I'am sure this is not the best way to do that so I will not open a PR.
Could we get this fixed?