virtaal
virtaal copied to clipboard
Virtaal changes some things in ts file (" becomes ", etc.)
When saving a .ts file in Virtaal...
This:
<translation></translation>
Becomes:
<translation/>
And:
" becomes ".
' becomes '.
And:
<?xml version="1.0" encoding="utf-8"?>
Becomes:
<?xml version='1.0' encoding='utf-8'?>
Or the line is removed...
Maybe this i done by some tool Virtaal is using and not Virtaal it self. Maybe there is an option to avoid it.
@scootergrisen Does this still happen? I've never seen this, but I've never translated .ts in Virtaal.
Yes. I just updated the first post since the website was not showing it as intended.
It seems now this line is removed instead of changed:
<?xml version="1.0" encoding="utf-8"?>
So maybe its not Virtaal making the change but a tool that Virtaal is using.
Here is an example from a .ts file. Notice the ' and '
Before saving in Virtaal:
<message>
<source>Error registering documentation file '%1': %2</source>
<translation>Fejl ved registrering af dokumentationsfilen '%1': %2</translation>
</message>
After saving in Virtaal:
<message>
<source>Error registering documentation file '%1': %2</source>
<translation>Fejl ved registrering af dokumentationsfilen '%1': %2</translation>
</message>
I am not saying if one if better then the other. But i prefer to not change things in the file that might be unwanted by the user.
Thanks for the confirmation. Which version of virtaal and translate-toolkit did you use? Also, Windows ou Linux?
I think i have been using Virtaal 0.7.1 all the time. Windows 7. How do i check translate-toolkit version in Windows?
How do i check translate-toolkit version in Windows?
I don't know. I'll try to set up Virtaal in Windows to check that.