基于网友的栗子,有需要的可参考。 winform多语言xml文件格式语言包,实现实时语言切换,language切换-C#文档类资源-CSDN下载
<?xml version="1.0" encoding="utf-8"?>
<TranslateXMl>
<Options>
<Language>CN</Language>
<Language>EN</Language>
<Language>JP</Language>
<Language>粤语</Language>
<Language>ES</Language>
</Options>
<Form>
!界面1
<Form Name = "Form1">
<Item 属性="Text" CN = "界面" ES ="30" EN = "From" JP ="インターフェース "/>
<Control Name="bt_Test">
<Item 属性="Text" CN = "测试" ES ="30" EN = "Test" JP ="テスト " 粤语 = "AAA"/>
<Item 属性="Font" CN = "20" ES ="30" EN = "10" JP ="30"/>
</Control>
<Control Name="button1">
<Item 属性="Text" CN = "按钮1" ES ="30" EN = "btn1" JP ="ボタン1 "/>
</Control>
<Control Name="button2">
<Item 属性="Text" CN = "按钮2" ES ="30" EN = "btn2" JP ="ボタン2 "/>
</Control>
<Control Name="toolStripMenuItem1">
<Item 属性="Text" CN = "目录1" ES ="30" EN = "Menu1" JP ="目次1"/>
</Control>
<Control Name="toolStripMenuItem2">
<Item 属性="Text" CN = "目录2" ES ="30" EN = "Menu2" JP ="目次2"/>
</Control>
<Control Name="toolStripTextBox1">
<Item 属性="Text" CN = "按钮" ES ="30" EN = "btn" JP ="ボタン"/>
</Control>
<Control Name="toolStripTextBox3">
<Item 属性="Text" CN = "目录的按钮" ES ="30" EN = "Menubtn" JP ="ボタン"/>
</Control>
<Control Name="toolStripTextBox2">
<Item 属性="Text" CN = "最底按钮" ES ="30" EN = "Lowbtn" JP ="ボタン"/>
</Control>
</Form>
!界面2
<Form Name = "Form2">
<Item 属性="Text" CN = "界面" EN = "From" ES="LLLL" JP ="インターフェース "/>
<Control Name="button1">
<Item 属性="Text" CN = "测试" EN = "Test" ES ="LLLL" JP ="テスト " 粤语 = "AAA"/>
<Item 属性="Font" CN = "20" EN = "10" JP="" ES ="30" />
</Control>
<Control Name="label1">
<Item 属性="Text" CN = "我的" EN = "My" ES="LLLL" JP ="テスト " 粤语 = "移库"/>
<Item 属性="Font" CN = "20" EN = "10" ES="30" JP ="30"/>
</Control>
</Form>
</Form>
</TranslateXMl>