当我更改我的应用程序的语言和字体时(en-fr-fa-es) 我失去了它的设计
当我更改字体时出现问题
startlanguage = "Fa";
HelliStaticform.ActiveForm.Font = Bzar;
automaticdeletebutton.Text = "حذف هوشمند";
filebutton.Text = "بایگانی";
newproject.Text = "جدید";
openproject.Text = "بازکردن";
save.Text = "ذخیره";
saveas.Text = "ذخیره در";
pointerbutton.Text = "نشانگر";
insert.Text = "درج";
drawlinebutton.Text = "خط";
drawforcebutton.Text = "نیرو";
basebutton.Text = "تکیه گاه";
drawnormalbasebutton.Text = "تکیه گاه ساده";
drawgradientbasebutton.Text = "تکیه گاه متحرک";
Horizontalgradientbasebutton.Text = "افقی";
Verticalgradientbasebutton.Text = "عمودی";
degreegradientbase.Text = "زاویه دار";
mirrorbutton.Text = "آینه...";
editbutton.Text = "ویرایش";
editbasebutton.Text = "تکیه گاه ها";
editforcebutton.Text = "نیروها";
editlinebutton.Text = "خطوط";
editpointbutton.Text = "نقاط";
Delete.Text = "پاک کردن";
clearAllbutton.Text = "پاک کردن همه";
checkbutton.Text = "آزمایش پایداری";
solvebutton.Text = "حل";
solveboxvisible.Text = "شکل تحلیل شده";
aboutbutton.Text = "درمورد..";
tableview.Text = "نمای جدولی";
calculatemenu.Text = "تحلیل";
Helpmenu.Text = "راهنمایی";
addcommentoolbox.Text = "توضیح";
和
startlanguage = "En";
toolStrip1.Font = AmbersHand;
automaticdeletebutton.Text = "Automatic Delete";
filebutton.Text = "File";
newproject.Text = "New Project";
openproject.Text = "Open Project";
save.Text = "Save";
saveas.Text = "Save az";
pointerbutton.Text = "Pointer";
insert.Text = "Insert";
drawlinebutton.Text = "Line";
drawforcebutton.Text = "Force";
basebutton.Text = "Base";
drawnormalbasebutton.Text = "fixed hinge";
drawgradientbasebutton.Text = "roller hinges";
Horizontalgradientbasebutton.Text = "Horizontal";
Verticalgradientbasebutton.Text = "Vertical";
degreegradientbase.Text = "Degree";
mirrorbutton.Text = "Mirror";
editbutton.Text = "Edit";
editbasebutton.Text = "Bases";
editforcebutton.Text = "Forces";
editlinebutton.Text = "Lines";
editpointbutton.Text = "Points";
Delete.Text = "Delete";
clearAllbutton.Text = "Delete All";
checkbutton.Text = "Cheak solvability";
solvebutton.Text = "Solve";
solveboxvisible.Text = "Solved picture";
aboutbutton.Text = "about..";
tableview.Text = "table";
calculatemenu.Text = "Analysis";
Helpmenu.Text = "Help";
addcommentoolbox.Text = "Comment";
(我的图片框和工具箱以及更改语言时移动的许多texbox)
我该如何预防?
答案 0 :(得分:1)
1)通过将表单的Localizable
属性设置为true
,使您可以进行本地化。 Language
属性自动设置为(默认)。
2)从工具箱中拖动窗体上的TextBox
控件。将其文本更改为:“名称”。
3)将表单的Language
属性更改为另一种语言,即:Italian。
4)将文本框的文本更改为“Nome”。
5)继续使用您要添加本地化的每种语言。
6)您的表格和控件可能需要针对每种语言进行不同的调整/布局。