Skip to content

Conversation

@XTsat
Copy link

@XTsat XTsat commented Dec 30, 2025

I rewrote the software translation based on the resx resource dictionary.

我基于resx资源字典重新做了一个软件翻译版本

Interface Display (界面展示)

image image

You can refresh the page language without restarting the switching page, but the title will not refresh

不重启切换页面可以刷新页面语言,但是标题不会刷新

image

The text that needs to be displayed in the designer interface is an additional addition to the original text

设计器界面需要显示的文字都额外增加了原始文本

image

Language Contributions (语言贡献)

I added the @i18n character where the code needs to add the language code

我在代码需要添加语言代码的地方增加了 @i18n 字符

image

Consider using Crowdin to join or download ResX Manager for quick editing

可以考虑使用 Crowdin 接入,或是下载 ResX Manager 进行快速编辑

image

ResX Manager can use machine translation to quickly generate multilingual translation files and have them edited by local people in each language, so I only submitted Chinese translations

可以使用 ResX Manager 中的机器翻译快速生成多语言翻译文件,再由各语言本地人员润色,所以我只提交了中文翻译

image

VS resx can also be used normally, but it cannot block some content that can be used without localization

VS的 resx 也可以正常使用,不过不能屏蔽部分可以不用本地化的内容

image

@XTsat
Copy link
Author

XTsat commented Dec 30, 2025

Additional Notes (额外说明)

Comparison of advantages and disadvantages compared to JSON (相比 json 的优缺点比较)

Pros: (优点)

  • No error will be reported because the language is not updated in time, and the language that is not updated will load
    en-US by default
  • You can easily view and add languages
  • 不会因为没有及时更新语言而报错,没有更新的语言默认加载 en-US
  • 可以便捷的查看和增添语言

Cons: (缺点)

  • It is troublesome to refresh the language in real time without installing the plugin, and you need to restart to fully load the new language
  • When writing code, you need to bind the key to use
  • 不安装插件做实时刷新语言比较麻烦,需要重启才能完全加载新语言
  • 在编写代码的时候需要绑定 Key 使用

Use ResX Manager for quick conversions (使用 ResX Manager 快速转换)

Add "{local:Localize $Key}" to the program's xaml configuration
Add local:Localize $Key to the program's vb configuration
Remember to add the division number |

在程序的 xaml 配置中添加 "{local:Localize $Key}"
在程序的 vb 配置中添加 local:Localize $Key
记得添加分割号 |

image

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.

1 participant