PacketSender icon indicating copy to clipboard operation
PacketSender copied to clipboard

[IDEA] I want to create a portuguese translation

Open thiagomiranda3 opened this issue 1 year ago • 6 comments

Hello. I was trying to find an alternative to the Hercules program I used on Windows, and just found this incredible PacketSender program, that is even better.

I saw that it has multiple language support, but no portuguese so far. I would like to contribute writing a translation to it and keep working on future translations for portuguese if possible.

I didn't saw any contributing guidelines here, so decided to create this issue to suggest the portuguese translation that I'm willing to do.

I just need to get my self used to the files needed to change, and could start working on it later if that is possible.

thiagomiranda3 avatar Mar 09 '24 13:03 thiagomiranda3

Awesome. Always happy to add another language.

The translations are XML format and located here as .ts files: https://github.com/dannagle/PacketSender/tree/master/src/languages

Here are the steps...

  1. Download the English version: https://github.com/dannagle/PacketSender/blob/master/src/languages/packetsender_en.ts

  2. Rename the file. The Portuguese code is "PT", so packetsender_pt.ts will be good.

  3. Write your translations between <translation></translation>. Note that maintaining the spacing in the text is important.

  4. Remove the type="unfinished" when that line is finished.

You can attach your finished file to this issue if you are not familiar with git version control or creating github pull requests. I will load it in to the source and give you a shout-out in the release notes.

The finished Spanish version might be a helpful reference for you: https://github.com/dannagle/PacketSender/blob/master/src/languages/packetsender_es.ts

Thanks again.

dannagle avatar Mar 09 '24 21:03 dannagle

Thanks. I will work on it and submit a PR as soon as I finish it.

thiagomiranda3 avatar Mar 11 '24 18:03 thiagomiranda3