CodingWonders / DISMTools

The connected place for Windows system administration
GNU General Public License v3.0
331 stars 12 forks source link

Are you interested in a translation? #112

Open Y-PLONI opened 5 months ago

Y-PLONI commented 5 months ago

Is your feature request related to a problem? I like that the programs I use are in my language

Describe the solution you'd like Translate the software into my language

Describe alternatives you've considered I am ready to do it myself, but I will need the consent of the software developer and a short tutorial - which files to handle.

CodingWonders commented 5 months ago

To which language do you want to translate the program?

Y-PLONI commented 5 months ago

But it will help everyone. It turns out that more people will be happy to translate. Hebrew

CodingWonders commented 5 months ago

I have to inform you that I haven't tested right-to-left languages at all. However, if you want to try, do the following:

Translation guide

You must add the translations to each Select Case MainForm.Language and Select Case Language statements. Also, add main window translations in the ChangeLangs procedure:

devenv_a8lurVkNGF

devenv_amoOauA64d

You also have to provide translations twice: one time for automatic language detection (Case 0) and another time for when the user manually sets the language (since there are 4 languages supported, your case is Case 5)

In the Case 0 blocks, the language code is important. Insert a new line and add Case <Three-Letter-Rep> at the end of the blocks (<Three-Letter-Rep> is the three-letter representation of your language name)

[!NOTE] Since Hebrew is a right-to-left language, add code to set the right-to-left layout by enabling this property:

devenv_2oLOeIdvzF

RightToLeft = Windows.Forms.RightToLeft.Yes

If that doesn't work, try setting up the RightToLeftLayout property to True as well

After having basic translations, add your language item to the ComboBox3 in the Options window:

devenv_Dr5eFVa5Z4 devenv_mGhC5pi8dn

If you have more questions, feel free to ask them

CodingWonders commented 4 months ago

@Y-PLONI, how are the translations going?

Y-PLONI commented 4 months ago

I didn't like to admit, but I got in trouble with the instructions... I'm more about translation, not programming .Can you give me a specific file for treatment? If so, I can just download it and translate, and upload it to you in this thread. @CodingWonders

CodingWonders commented 4 months ago

Everything in quotation marks is a string, which you can replace to add your translations. That is the basic bit. The properties are just for right-to-left languages.

If you want, you can just work on the translations. I'll add the right-to-left property. You will need to add your language to the ComboBox though

Y-PLONI commented 4 months ago

I know how to translate strings... I need a direct link to the file that I need to translate.

CodingWonders commented 4 months ago

I know how to translate strings... I need a direct link to the file that I need to translate.

Follow the contribution guidelines to get started, and then begin translating the strings in all .vb files