Files
i18n_formatter/README.md
2023-11-02 17:06:38 +08:00

14 lines
712 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# i18n_formatter
本仓库存储的代码是孟威在进行LuCAD国际化过程中开发的工具。
# 用法
首先调用ExtractChineseStrings(),(指定需要提取中文字符串的代码文件存放的目录)
然后通过有道翻译进行翻译https://fanyi.youdao.com/index.html#/可每次复制不多于5000的内容进行翻译
需要翻译的中文文本存放在raw.text将翻译后的文本存放在文本文件里。命名里需要包含translation并以.txt结尾
然后调用ResxHelper.GenerateResxFileForTranslationsInCurrentDirectory()指定翻译后的文本文件存放的目录将raw.text也放入该目录
之后将生成的资源文件放入工程目录即可