guerinoni / qTsConverter

A simple tool to convert qt translation file (ts) to other format (xlsx / csv) and vice versa
MIT License
42 stars 16 forks source link

Fix/multiple location lines #34

Closed LeonardMontagna closed 3 years ago

LeonardMontagna commented 4 years ago

Add support for multi-line strings (see below), Add ts2xlsx and xlsx2ts tests, Update other tests.

Previous behaviour 1- If Qt Creator Linguist detects the same translatable string in multiple lines of code, the *.ts files stores all the locations 2- qTsConverter only saves the first location of the string, meaning all following locations are lost

Current behaviour with this PR: 1- Same as before 2- qTsConverter stores all the string's locations in subsequent columns