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

Add support for I18N #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

CloneWith
Copy link

@CloneWith CloneWith commented May 16, 2024

This PR implements I18N function using .resx files and the native methods, and closes #8 and #27.

  • Update dependencies to avoid security issues
  • Mark forms as translatable and use resources to translate them
  • Add Strings resource item to translate strings in the source code (invisible in Designer view)
  • Add Simplified Chinese translation

Todos:

  • Mark IO strings as translatable
  • Simplify translation process (e.g. put all strings in a single resource file) seems like a bad idea...

After this PR merged, translation to other languages can be done by:

  • Add <Form>.<Language Code>.resx for corresponding forms. Such as Updater.zh-CN.resx
  • Add Strings.<Language Code>.resx for strings not covered above.
  • Add Resources.<Language Code>.resx under Properties/ directory for resource texts.

* Set C# version to latest
* Update Microsoft.Windows.Compatibility to 8.0.5 (to avoid security issues)
* Include System.Net.Http
* Temporarily disable DPI aware
@CloneWith CloneWith marked this pull request as draft May 31, 2024 03:41
@CloneWith CloneWith marked this pull request as ready for review June 12, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to provide multi-language support
1 participant