juliagoda / antimicroX

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support
GNU General Public License v3.0
92 stars 13 forks source link

How does one contribute to the translations? #142

Open Simao-Santos opened 4 years ago

Simao-Santos commented 4 years ago

I want to translate the application to portuguese, and I was wondering how to do that. Thanks in advance!

juliagoda commented 4 years ago

You need a Qt Linguist program, that you can find generally in package like qt5-tools.

In the file I've prepared for you there is some content from another file (but only partially) you can just replace it with your own text.

The file is in the path share/translations, it's antimicroX_pt.ts

Simao-Santos commented 4 years ago

Can you give me instructions on how to run that program?

I looked it up and i found this link, which said to install the package qt5-default. And when I tried to install it, I got this message: image

And when I ran sudo apt --fix-broken install it said to uninstall antimicrox, which I guess is another issue altogether. image

Anyway, can you tell me how to get the Qt Linguist?

juliagoda commented 4 years ago

You have Ubuntu, right? If so, try installing the qttools5-dev-tools package, because it contains this program, among other things. Here is the link:

https://launchpad.net/ubuntu/bionic/+package/qttools5-dev-tools

other necessary packages should be automatically installed within the dependency.

If you already have Qt5 installed, make sure that you have this program installed on your system

Simao-Santos commented 4 years ago

So I've never done this before and I'm searching online how to do it. But how do I install a package through the link you gave? I get the package page but I'm not sure if I'm suppose to add to my ppa, but if so how what do I put in the package name/link?

pktiuk commented 4 years ago

Try just (in terminal): sudo apt-get install qttools5-dev-tools These packages belong do default ubuntu repository (you don't need to edit PPAs).

Simao-Santos commented 4 years ago

Oops I'm dumb dumb. I was doing a dumb complicated thing, that worked! Thanks!

Simao-Santos commented 4 years ago

image

In the strings that are grey, like the arrow points at in the image, I can't edit the translation. Also, some of them came auto translated from spanish. Why is that?

pktiuk commented 4 years ago

I think you should check some simple tutorials or docs. Here are descriptions of these symbols: https://doc.qt.io/qt-5/linguist-translators.html

In terms of translation you could also edit .desktop file: https://github.com/juliagoda/antimicroX/blob/master/other/com.github.juliagoda.antimicroX.desktop Add portugese description of an app and add translation for "Open in system tray only"