예제 #1
0
 private void set_language(LanguageSel sel = LanguageSel.English)
 {
     if (open_erp.language == sel)
     {
         return;                          //init once
     }
     open_erp.language = sel;
     Clanguage.sel_language(sel);
     //this.company.set_language(sel);//company windows language
     //this language
     this.fileToolStripMenuItem.Text     = Clanguage.ls_file + "(F)";
     this.openToolStripMenuItem.Text     = Clanguage.ls_open;
     this.newToolStripMenuItem.Text      = Clanguage.ls_new;
     this.exitToolStripMenuItem.Text     = Clanguage.ls_exit;
     this.settingToolStripMenuItem.Text  = Clanguage.ls_setting + "(S)";
     this.languageToolStripMenuItem.Text = Clanguage.ls_language;
     this.chineseToolStripMenuItem.Text  = Clanguage.ls_chinese;
     this.englishToolStripMenuItem.Text  = Clanguage.ls_english;
     this.viewToolStripMenuItem.Text     = Clanguage.ls_view;         //View
     this.groupToolStripMenuItem.Text    = Clanguage.ls_group;        //Group
     this.companyToolStripMenuItem.Text  = Clanguage.ls_company;
     this.settingToolStripMenuItem.Text  = Clanguage.ls_setting;      //Setting
     this.helpToolStripMenuItem.Text     = Clanguage.ls_help;         //Help
     this.editToolStripMenuItem.Text     = Clanguage.ls_edit;         //Edit
     this.organizationTabPage.Text       = Clanguage.ls_organization; //Organization
     this.contactTabPage.Text            = Clanguage.ls_contact;      //Contact
     this.recordTabPage.Text             = Clanguage.ls_record;       //Record
     this.workspaceTabPage.Text          = Clanguage.ls_workspace;    //Workspace
     this.inputTabPage.Text  = Clanguage.ls_input;                    //Input
     this.outputTabPage.Text = Clanguage.ls_output;                   //Output
 }
예제 #2
0
 public static void sel_language(LanguageSel sel = LanguageSel.English)
 {
     Clanguage.ls_english = "English";
     Clanguage.ls_chinese = "简体中文";
     Clanguage.ls_colon = ":";
     if (sel == LanguageSel.English) Clanguage.sel_english();
     if (sel == LanguageSel.Chinese) Clanguage.sel_chinese();
     Clanguage.lang = sel;
 }
예제 #3
0
 public void set_language(LanguageSel sel = LanguageSel.English)
 {
     if (this.language == sel)
     {
         return;                                  //init once
     }
     this.language = sel;
     this.Text     = Clanguage.ls_company;
     this.fileToolStripMenuItem.Text         = Clanguage.ls_file;               //File
     this.databaseToolStripMenuItem.Text     = Clanguage.ls_database;           //DataBase
     this.stockToolStripMenuItem.Text        = Clanguage.ls_stock;              //Stock
     this.personnelToolStripMenuItem.Text    = Clanguage.ls_personnel;          //Personnel
     this.fiscalToolStripMenuItem.Text       = Clanguage.ls_fiscal;             //Fiscal
     this.materialsToolStripMenuItem.Text    = Clanguage.ls_materials;          //Materials
     this.projectToolStripMenuItem.Text      = Clanguage.ls_project;            //Project
     this.developToolStripMenuItem.Text      = Clanguage.ls_develop;            //Develop
     this.businessToolStripMenuItem.Text     = Clanguage.ls_business;           //Business
     this.legalAffairsToolStripMenuItem.Text = Clanguage.ls_legal_affairs;      //LegalAffairs
     this.qualityToolStripMenuItem.Text      = Clanguage.ls_quantity;           //Quality
     this.envSafetyToolStripMenuItem.Text    = Clanguage.ls_environment_safety; //environment
     this.requireToolStripMenuItem.Text      = Clanguage.ls_require;            //Require
     this.productToolStripMenuItem.Text      = Clanguage.ls_product;            //Product
     this.trainingToolStripMenuItem.Text     = Clanguage.ls_training;           //Training
     this.communicateToolStripMenuItem.Text  = Clanguage.ls_communicate;        //Communicate
     this.serviceToolStripMenuItem.Text      = Clanguage.ls_service;            //Service
     this.taskToolStripMenuItem.Text         = Clanguage.ls_task;               //Task
     this.questionToolStripMenuItem.Text     = Clanguage.ls_question;           //Question
     this.helpToolStripMenuItem.Text         = Clanguage.ls_help;               //Help
     this.organizationTabPage.Text           = Clanguage.ls_organization;       //Organization
     this.contactTabPage.Text   = Clanguage.ls_contact;                         //Contact
     this.groupTabPage.Text     = Clanguage.ls_organize_group;
     this.recordTabPage.Text    = Clanguage.ls_record;                          //Record
     this.workspaceTabPage.Text = Clanguage.ls_workspace;                       //Workspace
     this.inputTabPage.Text     = Clanguage.ls_input;                           //Input
     this.outputTabPage.Text    = Clanguage.ls_output;                          //Output
 }
예제 #4
0
 //fun
 public Clanguage(LanguageSel sel= LanguageSel.English)
 {
     Clanguage.sel_language(sel);
     Clanguage.lang = sel;
 }