Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About Translation into Chinese (Simplified) language issue #38

Open
8MiYile opened this issue Apr 19, 2024 · 5 comments · Fixed by #39, #42 or #43
Open

About Translation into Chinese (Simplified) language issue #38

8MiYile opened this issue Apr 19, 2024 · 5 comments · Fixed by #39, #42 or #43
Labels
enhancement New feature or request

Comments

@8MiYile
Copy link
Contributor

8MiYile commented Apr 19, 2024

i want thanslate this app
but i'm not developer
so i don't know how to set this app to i18n

@hoplik hoplik added the enhancement New feature or request label Apr 19, 2024
@hoplik
Copy link
Owner

hoplik commented Apr 19, 2024

Oh, that's great. You don't need to be a developer for localization. I will fix everything necessary in the code myself. I will provide a link to your profile with a thank you for the transfer in the "About the program" section. You just need to translate all the text lines into the required language. The algorithm for this is as follows.

  1. Open a new issue named "Translation into xxx language".
  2. There you send a screenshot of the form in language 1 and the text of the translation into language 2, indicating which button or other element this translation refers to. And so it is for each form window. I will make these changes at the next update (usually once a month).
  3. It's even easier with text dialogs. There is a resource file (Resources.en.resx) in the Properties folder. https://github.com/hoplik/Firehose-Finder/blob/master/Properties/Resources.en.resx In it, starting from line 120, there is a translation of text values. The value of "name" is followed by the English text "value" and the Russian text "comment". You need to download this file and in any editor convenient for you, locally, on your computer, replace the "value" data with a translation into the selected language and attach this edited version to the message in the issue you have opened (item 1). I'll transfer all this to the distribution later.

@hoplik
Copy link
Owner

hoplik commented Apr 19, 2024

  1. In conclusion, when the forms from item 2 are corrected, it will be possible to translate the help. The translation of the forms is needed to make screenshots for the help. Select a help in the desired language from the Resources folder https://github.com/hoplik/Firehose-Finder/tree/master/Resources and I will hang this help in the .doc format, so that it is convenient to translate and edit images. Then I will save the translated help in the .pdf format and I will put a link for the appropriate language.

@8MiYile
Copy link
Contributor Author

8MiYile commented Apr 20, 2024

I added Resources.zh_CN.resx using Pull Request form
and I'm using Deepin Linux
So I can't do the following conditions

There you send a screenshot of the form in language 1 and the text of the translation into language 2, indicating which button or other element this translation refers to. And so it is for each form window. I will make these changes at the next update (usually once a month).

@8MiYile 8MiYile changed the title more languages Translation into Chinese (Simplified) language Apr 20, 2024
@8MiYile 8MiYile changed the title Translation into Chinese (Simplified) language About Translation into Chinese (Simplified) language issue Apr 20, 2024
@hoplik
Copy link
Owner

hoplik commented Apr 20, 2024

Great job. The dialogs are already displayed in Chinese. Now we also need to translate the text on the forms https://github.com/hoplik/Firehose-Finder/tree/master/Forms It is better to take the formname.en.resx, because there are only those text strings that need to be translated. Extension for the final forms .zh-Hans.resx.
Like this:
https://github.com/hoplik/Firehose-Finder/blob/master/Forms/AboutBox1.zh-Hans.resx

@hoplik
Copy link
Owner

hoplik commented Apr 21, 2024

Excellent. I added everything to the project.
The hardest thing left is the main form - Form1.
https://github.com/hoplik/Firehose-Finder/blob/master/Forms/Form1.zh-Hans.resx
The text fields needed for translation can be taken from the en.form
https://github.com/hoplik/Firehose-Finder/blob/master/Forms/Form1.en.resx
After translating Form1, I will post the project release here so that you can check the correctness of the translation on all forms of the application on a desktop computer. You also need to check that the automatic selection of Chinese language, which is taken from the system settings, works correctly. Then you can switch to forced language selection if the system language does not need to match the application language.
And sweet things: Greeting and Help.
https://github.com/hoplik/Firehose-Finder/blob/master/Resources/Greeting_en.txt
https://github.com/hoplik/Firehose-Finder/blob/master/Resources/help_en.pdf
It is advisable to add images from the translated forms to the help. I will hang a file in .doc format here, so that you can easily edit it.
help_en.docx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment