Stop changing comments
When i edit PO-files in Virtaal 0.7.1 it changes the comments the other people write in to header of the files which is annoying.
Lets say some people have write some lines with:
#
# here is my comment
#
Then Virtaal will remove the "empty" comment lines and remove the spaces so there are only one after #.
# here is my comment
Thank you for reporting this. I'm reasonably sure this is behaviour that comes form the PO support in the Translate Toolkit. I don't know how to move/reassign it to the Toolkit. Can someone help?
I don't remember a specific reason for this behaviour. We might just want to check the unit tests, but altering existing header comments doesn't sound right.
First step is to actually replicate in some way this behavior, for example having some string with a PO file with empty comment lines in header, parse it with factory and check if the output keeps those empty comment lines or not.
@friedelwolff there doesn't seem to be a way to shift issues. But I think testing replication in ttk would be the first step.
I was unable to replicate this on TTK (see https://github.com/unho/translate/commit/363bcf52363037df4b86dff91d93fdf6bff3fa24). Perhaps I was doing something wrong?
I have just testing the the Virtaal 1.0.0-beta1 i have build.
This:
# Danish translation for X
# Copyright (C) 2016 X
# This file is distributed under the same license as the X package.
#
# scootergrisen, 2016.
#
#
#
# test1
# test2
# test3
# test4
#
#
#
msgid ""
msgstr ""
Becomes this:
# Danish translation for X
# Copyright (C) 2016 X
# This file is distributed under the same license as the X package.
# scootergrisen, 2016.
# test1
# test2
# test3
# test4
# scootergrisen <>, 2016.
msgid ""
msgstr ""