def compareEnFr(): frFile = FrenchFile.frenchFile() frFile.openFile() enFile = EnglishFile.englishFile() enFile.openFile() ret = compareEnFrAux(enFile,frFile ) frFile.closeFile() enFile.closeFile() return ret
def compareEnFr(): frFile = FrenchFile.frenchFile() frFile.openFile() enFile = EnglishFile.englishFile() enFile.openFile() ret = compareEnFrAux(enFile, frFile) frFile.closeFile() enFile.closeFile() return ret
def compareFrEn(): frFile = FrenchFile.frenchFile() frFile.openFile() enFile = EnglishFile.englishFile() enFile.openFile() ret = compareFrEnAux(enFile,frFile) frFile.closeFile() enFile.closeFile() return ret #listNotUsed = compareEnFr() #print " " #print " " #print "----------- There is in english file and not in french file -----------" #for item in listNotUsed: # print item
def compareFrEn(): frFile = FrenchFile.frenchFile() frFile.openFile() enFile = EnglishFile.englishFile() enFile.openFile() ret = compareFrEnAux(enFile, frFile) frFile.closeFile() enFile.closeFile() return ret #listNotUsed = compareEnFr() #print " " #print " " #print "----------- There is in english file and not in french file -----------" #for item in listNotUsed: # print item
file.close() print "________________________________________________ " print "Do you want to synchronize french with flex ?" print " 1 - yes" print " 0 - no" print "________________________________________________ " inp = input("option:") if inp: list = InterLanguage.compareFrEn(); print "\n----------------------------------" print "words in french and not in english :" for line in list: print line print "----------------------------------\n" # print " 1 - to change the file message.properties" # print " 0 - to continue" # inp = input("number:") inp = 0 if inp: FrenchFile.deleteInFrFile(list) print "" print "____________________________" print "END" print "____________________________"
file.writelines(list) file.close() print "________________________________________________ " print "Do you want to synchronize french with flex ?" print " 1 - yes" print " 0 - no" print "________________________________________________ " inp = input("option:") if inp: list = InterLanguage.compareFrEn() print "\n----------------------------------" print "words in french and not in english :" for line in list: print line print "----------------------------------\n" # print " 1 - to change the file message.properties" # print " 0 - to continue" # inp = input("number:") inp = 0 if inp: FrenchFile.deleteInFrFile(list) print "" print "____________________________" print "END" print "____________________________"