code: def get_entries(self):
          
          if self.query:
              # Scenario #1: terms matching a search query
              rx = re.compile(re.escape(self.query), re.IGNORECASE)
  
              def concat_entry(e):
                  return (six.text_type(e.msgstr) +
                          six.text_type(e.msgid) +
                          six.text_type(e.msgctxt) +
                          six.text_type(e.comment) +
                          u''.join([o[0] for o in e.occurrences]) +
                          six.text_type(e.msgid_plural) +
                          u''.join(e.msgstr_plural.values())
                          )
  
              entries = [e_ for e_ in self.po_file
                         if not e_.obsolete and rx.search(concat_entry(e_))]
          else:
              # Scenario #2: filtered list of messages
              if self.msg_filter == 'untranslated':
                  entries = self.po_file.untranslated_entries()
              elif self.msg_filter == 'translated':
                  entries = self.po_file.translated_entries()
              elif self.msg_filter == 'fuzzy':
                  entries = [e_ for e_ in self.po_file.fuzzy_entries()
                             if not e_.obsolete]
              else:
                  # ("all")
                  entries = [e_ for e_ in self.po_file if not e_.obsolete]
          return entries
docs: Return a list of the entries (messages) that would be part of the
          current "view"; that is, all of the ones from this .po file matching the
          current query or msg_filter.