Mercurial > babel > mirror
comparison babel/messages/frontend.py @ 563:c6bc419cc32a trunk
fix spelling in comments
author | fschwarz |
---|---|
date | Sun, 25 Sep 2011 20:30:45 +0000 |
parents | fd3bda2d3d34 |
children | 1b801a0cb2cb |
comparison
equal
deleted
inserted
replaced
562:a97af7870185 | 563:c6bc419cc32a |
---|---|
437 self.input_file) | 437 self.input_file) |
438 | 438 |
439 infile = open(self.input_file, 'r') | 439 infile = open(self.input_file, 'r') |
440 try: | 440 try: |
441 # Although reading from the catalog template, read_po must be fed | 441 # Although reading from the catalog template, read_po must be fed |
442 # the locale in order to correcly calculate plurals | 442 # the locale in order to correctly calculate plurals |
443 catalog = read_po(infile, locale=self.locale) | 443 catalog = read_po(infile, locale=self.locale) |
444 finally: | 444 finally: |
445 infile.close() | 445 infile.close() |
446 | 446 |
447 catalog.locale = self._locale | 447 catalog.locale = self._locale |
968 os.makedirs(os.path.dirname(options.output_file)) | 968 os.makedirs(os.path.dirname(options.output_file)) |
969 | 969 |
970 infile = open(options.input_file, 'r') | 970 infile = open(options.input_file, 'r') |
971 try: | 971 try: |
972 # Although reading from the catalog template, read_po must be fed | 972 # Although reading from the catalog template, read_po must be fed |
973 # the locale in order to correcly calculate plurals | 973 # the locale in order to correctly calculate plurals |
974 catalog = read_po(infile, locale=options.locale) | 974 catalog = read_po(infile, locale=options.locale) |
975 finally: | 975 finally: |
976 infile.close() | 976 infile.close() |
977 | 977 |
978 catalog.locale = locale | 978 catalog.locale = locale |