qlipper icon indicating copy to clipboard operation
qlipper copied to clipboard

How do update translations

Open scootergrisen opened this issue 6 years ago • 5 comments

I dont see any instructions on how to update a translation. I wanted to bring the danish translation up to date but how do i do that?

scootergrisen avatar Sep 26 '18 11:09 scootergrisen

The lupdate is your friend :) -> http://doc.qt.io/qt-5/linguist-manager.html#using-lupdate

palinek avatar Sep 26 '18 11:09 palinek

It says i have to run it on a .pro file. But there are none.

scootergrisen avatar Sep 26 '18 11:09 scootergrisen

$ lupdate --help
Usage:
    lupdate [options] [project-file]...
    lupdate [options] [source-file|path|@lst-file]... -ts ts-files|@lst-file
...

with the second form of usage, there is no need for project-file.

palinek avatar Sep 26 '18 12:09 palinek

Its not very clear instructions.

I can do:

lupdate src/*.cpp -ts da.ts

But im just guessing and have no idea if this is the correct way.

scootergrisen avatar Sep 26 '18 14:09 scootergrisen

See that did not work well guessing it should use *.cpp files.

Now i use this which seems to work:

lupdate src/ -ts ts/qlipper_da.ts

But again im just guessing.

scootergrisen avatar Sep 26 '18 17:09 scootergrisen