~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to UpdateManager/Core/MetaRelease.py

  • Committer: Michael Vogt
  • Date: 2010-04-07 14:26:00 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100407142600-h0656qhdor4hq23o
when requesting the release announcement, append ?lang=current_lang
to the request URI

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
                dist = Dist(name, version, date,supported)
195
195
                if index_tag.Section.has_key("ReleaseNotes"):
196
196
                    dist.releaseNotesURI = index_tag.Section["ReleaseNotes"]
 
197
                    lang = get_lang()
 
198
                    if lang:
 
199
                        dist.releaseNotesURI += "?lang=%s" % lang
197
200
                if index_tag.Section.has_key("ReleaseNotesHtml"):
198
201
                    dist.releaseNotesHtmlUri = index_tag.Section["ReleaseNotesHtml"]
 
202
                    lang = get_lang()
 
203
                    if lang:
 
204
                        dist.releaseNotesHtmlUri += "?lang=%s" % lang
199
205
                if index_tag.Section.has_key("UpgradeTool"):
200
206
                    dist.upgradeTool =  index_tag.Section["UpgradeTool"]
201
207
                if index_tag.Section.has_key("UpgradeToolSignature"):