資源檔的格式可以直接是 .txt 文字檔
.txt 可用 resgen 轉為 .resources
.txt 的格式很簡單,就是這樣
xyz=aaa
然後可再用下列命令編為 assembly (注意:可依據 locale “/c” 喔!)
al /out:your_app.resources.dll /V:1.0.0.0 /c:zh-TW /embed:your_app.zh-TW.resources,your_app.zh_TW.resources,private
一般來說,製作多國語系資源檔時,與 ap 放在同一層的就是 en 這個 locale.
程式內的寫法: new ResourceManager(“your_app”,this.getType().Assembly );