Translations with a comma in the key are rewritten to be on a single line. But this failed when the comma was just preceded by a dot (like in `etc.,`). Fix the script so that it works even in those cases.