◐ Shell
clean mode source ↗

do not store `.ui` lines in `.ts` files by firewave · Pull Request #7020 · cppcheck-opensource/cppcheck

We could also specify -locations none and it would also get rid of the file is originates from reducing the chance of it being modified even more.

I have never understood how that really works anyway. If the same string appears 3 times in a source file and is translated into 3 different strings.. then developer refactors the code.. the same strings still appear but in changed locations.. I don't understand how qt can be sure that the correct translations will be matched.

A basic refactoring is that some functions are moved so that the strings do not appear in the same order anymore.

Idea to prevent problems: I believe it would be simple to write a small script that checks the ts files.. if the same string should be translated into different translated strings then write error message.. we will then have to look into that and see what we can do about it. If the script is happy then removing ui and locations should be safe?