~dholbach/help-app/1426304

« back to all changes in this revision

Viewing changes to edit-here/translations.py

  • Committer: Daniel Holbach
  • Date: 2015-03-03 16:00:33 UTC
  • Revision ID: daniel.holbach@canonical.com-20150303160033-hod1mpj1tboq7j7v
fix case where 'original_title in msgid' was not good enough, we need it exact

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
 
133
133
    def find_translated_title_line(self, original_title):
134
134
        for entry in self.find_in_msgid(original_title):
135
 
            if entry.msgstr:
136
 
                return entry.msgstr
137
 
            return entry.msgid
 
135
            if entry.msgid == original_title:
 
136
                if entry.msgstr:
 
137
                    return entry.msgstr
 
138
                return entry.msgid
138
139
 
139
140
 
140
141
class PO(object):