コード例 #1
0
        private void TranslateForm()
        {
            l_localizations.Text = LoCa.Trans("main_localizations") + ":";

            l_key.Text     = LoCa.Trans("main_key") + ":";
            l_english.Text = LoCa.Trans("main_english") + ":";
            l_local.Text   = LoCa.Trans("main_local") + ":";
            l_author.Text  = LoCa.Trans("main_author") + ":";
            l_version.Text = LoCa.Trans("main_version") + ":";

            dgv_trans.Columns[0].HeaderText = LoCa.Trans("main_key");
            dgv_trans.Columns[1].HeaderText = LoCa.Trans("main_localization");

            ms_main.Text     = LoCa.Trans("menu_main");
            ts_folder.Text   = LoCa.Trans("menu_open");
            ts_settings.Text = LoCa.Trans("menu_settings");
            ts_exit.Text     = LoCa.Trans("menu_exit");
        }
コード例 #2
0
 public MainForm()
 {
     InitializeComponent();
     LoCa.Init(System.IO.Path.Combine(Application.StartupPath, "Localization"));
     TranslateForm();
 }