Merge lp:~ken-vandine/gwibber/lp_1055762 into lp:gwibber

Proposed by Ken VanDine
Status: Merged
Merged at revision: 1383
Proposed branch: lp:~ken-vandine/gwibber/lp_1055762
Merge into: lp:gwibber
Diff against target: 15 lines (+2/-2)
1 file modified
gwibber/microblog/plugins/facebook/__init__.py (+2/-2)
To merge this branch: bzr merge lp:~ken-vandine/gwibber/lp_1055762
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Review via email: mp+126091@code.launchpad.net

Description of the change

decode the translated string for "at" (LP: #1055762)

To post a comment you must log in.
lp:~ken-vandine/gwibber/lp_1055762 updated
1384. By Ken VanDine

decode the other translated string for "at" (LP: #1055762)

Revision history for this message
Sebastien Bacher (seb128) wrote :

looks good to me and confirmed to work locally

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gwibber/microblog/plugins/facebook/__init__.py'
2--- gwibber/microblog/plugins/facebook/__init__.py 2012-09-19 00:23:53 +0000
3+++ gwibber/microblog/plugins/facebook/__init__.py 2012-09-24 20:57:24 +0000
4@@ -269,9 +269,9 @@
5 m["location"]["id"] = data["place"]["id"]
6 m["location"]["name"] = data["place"].get("name", None)
7 if m["location"]["name"]:
8- m["html"] += " " + _("at") + " <p><b>%s</b></p>" % m["location"]["name"]
9+ m["html"] += " " + _("at").decode('utf8') + " <p><b>%s</b></p>" % m["location"]["name"]
10 m["content"] = m["html"]
11- m["text"] += " " + _("at") + " " + m["location"]["name"]
12+ m["text"] += " " + _("at").decode('utf8') + " " + m["location"]["name"]
13 if data["place"].has_key("location"):
14 m["location"]["latitude"] = data["place"]["location"].get("latitude", None)
15 m["location"]["longitude"] = data["place"]["location"].get("longitude", None)