def _load_files(self):
     """Loads the files to extract strings from. They are expected to
     be listed in the POFILES.in file"""
     with open(translate_htmlconfig.get_source_file(PO_FOLDER, POTFILES)) as fp:
         file_list = []
         for line in fp.readlines():
             if not line.startswith("#"):
                 line = os.path.join(translate_htmlconfig.get_sources_path(), line)
                 file_list.append(line.strip())
         return file_list
Esempio n. 2
0
 def _load_files(self):
     """Gets the list of files to merge translations for"""
     with open(translate_htmlconfig.get_source_file(PO_FOLDER,
                                                    POTFILES)) as fp:
         file_list = []
         for line in fp.readlines():
             if not line.startswith('#'):
                 line = os.path.join(
                     translate_htmlconfig.get_sources_path(), line)
                 file_list.append(line.strip())
         return file_list
Esempio n. 3
0
 def _load_files(self):
     """Loads the files to extract strings from. They are expected to
     be listed in the POFILES.in file"""
     with open(translate_htmlconfig.get_source_file(PO_FOLDER,
                                                    POTFILES)) as fp:
         file_list = []
         for line in fp.readlines():
             if not line.startswith('#'):
                 line = os.path.join(
                     translate_htmlconfig.get_sources_path(), line)
                 file_list.append(line.strip())
         return file_list