def wordcount(string): # TODO: po class should understand KDE style plurals string = kdepluralre.sub("", string) string = brtagre.sub("\n", string) string = xmltagre.sub("", string) string = numberre.sub(" ", string) #TODO: This should still use the correct language to count in the target #language return len(Common.words(string))
def wordcount(string): # TODO: po class should understand KDE style plurals ## #string = kdepluralre.sub("", string) #Restore this if you really need support for old kdeplurals string = brtagre.sub("\n", string) string = xmltagre.sub("", string) string = numberre.sub(" ", string) # TODO: This should still use the correct language to count in the target # language return len(Common.words(string))