~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 15:52:24 UTC
  • Revision ID: daniel.holbach@canonical.com-20150303155224-1xigtc832vf03gy7
also bend links if the link title is translated

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
            if not link_msgstr:
127
127
                entry.msgstr = entry.msgid
128
128
                link_msgstr = [link_msgid]
129
 
                entry.msgstr = entry.msgstr.replace(link_msgstr[0],
130
 
                                                    translated_doc_fn)
 
129
            entry.msgstr = entry.msgstr.replace(link_msgstr[0],
 
130
                                                translated_doc_fn)
131
131
        self.save()
132
132
 
133
133
    def find_translated_title_line(self, original_title):