Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

How does one contribute to the translations? #142

Open
Simao-Santos opened this issue Jul 3, 2020 · 8 comments
Open

How does one contribute to the translations? #142

Simao-Santos opened this issue Jul 3, 2020 · 8 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@Simao-Santos
Copy link
Contributor

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

@juliagoda
Copy link
Owner

juliagoda commented Jul 3, 2020

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

@juliagoda juliagoda added enhancement New feature or request question Further information is requested labels Jul 4, 2020
@Simao-Santos
Copy link
Contributor Author

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
Copy link
Owner

juliagoda commented Jul 5, 2020

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
Copy link
Contributor Author

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
Copy link
Contributor

pktiuk commented Jul 13, 2020

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
Copy link
Contributor Author

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

@Simao-Santos
Copy link
Contributor Author

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
Copy link
Contributor

pktiuk commented Jul 15, 2020

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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants