More WX Python 4 changes

This commit is contained in:
2018-09-03 08:33:05 -05:00
parent 3e43f67ee2
commit 72348008a2
3 changed files with 4 additions and 4 deletions

View File

@@ -301,7 +301,7 @@ class baseBuffer(object):
post = self.get_post()
original_date = arrow.get(post["date"])
created_at = original_date.humanize(locale=languageHandler.getLanguage())
self.tab.list.list.SetStringItem(self.tab.list.get_selected(), 2, created_at)
self.tab.list.list.SetItem(self.tab.list.get_selected(), 2, created_at)
class feedBuffer(baseBuffer):
""" This buffer represents an user's wall. It may be used either for the current user or someone else."""
@@ -760,7 +760,7 @@ class peopleBuffer(feedBuffer):
if post.has_key("last_seen") == False: return
original_date = arrow.get(post["last_seen"]["time"])
created_at = original_date.humanize(locale=languageHandler.getLanguage())
self.tab.list.list.SetStringItem(self.tab.list.get_selected(), 1, created_at)
self.tab.list.list.SetItem(self.tab.list.get_selected(), 1, created_at)
def open_timeline(self, *args, **kwargs):
pass

View File

@@ -29,7 +29,7 @@ def get_user(id, profiles):
for i in profiles:
if i["id"] == id:
return u"{0} {1}".format(i["first_name"], i["last_name"])
# Translators: This string is user when socializer can't find the right user information.
# Translators: This string is used when socializer can't find the right user information.
return _(u"Unknown username")
def get_message(status):