Rosalie241 / RMG

Rosalie's Mupen GUI
GNU General Public License v3.0
573 stars 50 forks source link

Init Translations #124

Open JakobDev opened 1 year ago

JakobDev commented 1 year ago

This PR adds initial Support for translations. It's alrady fully working, but you need to prepare your code a little. On Every string that should be translated replace

"my String"

with

tr("my String")

If you have something in your ui files that should not be translated e.g. a Placeholder text, you should mark it as not translatable.

You can add new languages by running

lupdate . -ts ./Translations/RMG_de.ts

In the Sourcedirectory

It can also be used with Weblate

I added a German translation with currently only includes the About Dialog as Example.

Rosalie241 commented 1 year ago

I'm sorry it took so long for me to get to taking a look at this, life has (and still is) rather busy due to moving out.

If I merge this and make those required changes, will you finish the German translation?

JakobDev commented 1 year ago

If I merge this and make those required changes, will you finish the German translation?

Yes

In case you're interested, I could also make a PR to use gettext with the .desktop and .appdata file, so they could also be intrated into Weblate

JakobDev commented 11 months ago

Ping @Rosalie241