Commit c18dcbf0 authored by Julien Pivotto's avatar Julien Pivotto

add missing function

Signed-off-by: Julien Pivotto's avatarJulien Pivotto <roidelapluie@inuits.eu>
parent 6f6c9409
......@@ -138,6 +138,21 @@ class Pox:
filenames.add(filename)
return filenames
def get_pot_files(self, filenames):
results = []
for filename in filenames:
if not filename.startswith('.'):
logging.debug('Filename does not start with .: %s' % filename)
continue
if not filename.endswith('.pot'):
logging.debug('Filename does not ends with .pot: %s' % filename)
continue
if not len(filename.split('.')) == 3:
logging.debug('Filename does not contain 2 dots: %s' % filename)
continue
results.append(filename)
return results
def get_po_files(self, filenames):
results = []
for filename in filenames:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment