我正在尝试将程序语言更改为其他多种语言。
该程序已经具有csv语言翻译。
通常,我们进入配置文件(app.config(xml)),并从用户部分进行更改。
如果我们更改属性下的设置,则该程序已经具有用于检测和更改语言的代码。
我想做的是通过从组合框中选择将设置字符串类型从英语更改为土耳其语。
这是用于其中只有1 os的自动化机器。
这是全局设置
代码:
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Turkish")]
public string Language {
get {
return ((string)(this["Language"]));
}
set {
this["Language"] = value;
}
}
/*Settings.setting language code is here I made it user but have no idea how to impelement my combobox selections to here */
namespace BackOffCnsl.Properties {
internal sealed partial class Settings {
public Settings() {
// this.SettingChanging += this.SettingChangingEventHandler;
// this.SettingsSaving += this.SettingsSavingEventHandler;
}
private void SettingChangingEventHandler(object sender,System.Configuration.SettingChangingEventArgs e) {}
private void SettingsSavingEventHandler(object sender,System.ComponentModel.CancelEventArgs e) {}
我希望选择组合框语言,并且在setting.settings中输入从土耳其语更改为英语,或者在这些值更改之后可以在app.config(xml配置文件)中更改,程序可以重新启动也可以不重新启动,因为用于自动化机械上的单个操作系统。