예제 #1
0
        static void swap_languages(String projectDirectory, String srcPO, String destPO)
        {
            //read PO file and generate list of substitutions
            POParser parser = new POParser(srcPO);

            //one by one read all source files and make changes
            foreach (String f in Directory.GetFiles(projectDirectory, "*.pas", SearchOption.AllDirectories))
            {
                parser.ApplySubstitutions(f);
            }
            foreach (String f in Directory.GetFiles(projectDirectory, "*.dfm", SearchOption.AllDirectories))
            {
                parser.ApplySubstitutions(f);
            }

            //save result PO file
            parser.CreateNewPOFile(destPO);
        }
예제 #2
0
        static void swap_languages(String projectDirectory, String srcPO, String destPO) {
            //read PO file and generate list of substitutions
            POParser parser = new POParser(srcPO);

            //one by one read all source files and make changes
            foreach (String f in Directory.GetFiles(projectDirectory, "*.pas", SearchOption.AllDirectories)) {
                parser.ApplySubstitutions(f);
            }
            foreach (String f in Directory.GetFiles(projectDirectory, "*.dfm", SearchOption.AllDirectories)) {
                parser.ApplySubstitutions(f);
            }

            //save result PO file 
            parser.CreateNewPOFile(destPO);
        }