dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
55 stars 17 forks source link

How to test translation? #190

Closed narcisgarcia closed 1 year ago

narcisgarcia commented 1 year ago

I'm contributing to a localization translation. I'm using Kraft 0.96 from Debian (stable) repositories.

How can I download~apply these translation "as is" to my Kraft instance?

dragotin commented 1 year ago

Interesting question - which I can not completely answer.

What should work: Your packages should load the translations from a file such as /usr/share/locale/de/LC_MESSAGES/kraft.mo - depending on your language with another locale name.

If you put your work kraft.mo there, ie. to /usr/share/locale/es/LC_MESSAGES/kraft.mo that should work.

To get the mo-file out of the po file you can use the tool msgfmt from gettext.

There might be better ways to do that that I do not know.

Note: Version 0.96 is already a bit old - so not all strings might be used. Keep that in mind.

dragotin commented 1 year ago

@narcisgarcia any luck? Are you working on translations?