Example #1
0
        public void Execute()
        {
            Console.WriteLine(@"翻译对照表为: TranslateData\msgstringtable\maps.txt");
            Console.WriteLine("");

            LoadTranslateDict(AppDirectory + @"TranslateData\msgstringtable\maps.txt");

            AgentClass agent = new AgentClass();

            agent.ClientListDirectory = AppDirectory + "RagexeClient" + "\\";
            ArrayList ClientList = agent.GetClientList();

            for (int i = 0; i < ClientList.Count; i++)
            {
                List <string> MsgstringtableData = new List <string>();
                string        srcFilename        = agent.ClientListDirectory + ClientList[i] + "\\Basic\\data\\msgstringtable.txt";

                Console.Write(string.Format("正在汉化 RagexeClient\\{0} ... ", ClientList[i] + "\\Basic\\data\\msgstringtable.txt"));

                LoadMsgStringTable(ref MsgstringtableData, srcFilename);
                DoTranslate(ref MsgstringtableData);
                SaveMsgStringTable(MsgstringtableData, srcFilename);

                Console.WriteLine("完毕");
            }
            return;
        }
Example #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            AppDirectory = Path.GetDirectoryName(Application.ExecutablePath) + "\\";
            agent.ClientListDirectory = AppDirectory + "RagexeClient" + "\\";
            agent.LeeClientDirectory  = AppDirectory + "..\\";

            ArrayList ClientList = agent.GetClientList();

            ClientListBox.Items.Clear();

            if (ClientList != null)
            {
                for (int i = 0; i < ClientList.Count; i++)
                {
                    ClientListBox.Items.Add(ClientList[i]);
                }
            }
        }