diff --git a/webapp_post.py b/webapp_post.py
index 4bbe0050..5172cfac 100644
--- a/webapp_post.py
+++ b/webapp_post.py
@@ -316,6 +316,7 @@ def getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
if '/statuses/' in postId:
if isBlogPost(postJsonObject):
+ editBlogPostStr = translate['Edit blog post']
if not isNewsPost(postJsonObject):
editStr += \
' ' + \
@@ -324,10 +325,9 @@ def getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
'/tlblogs?editblogpost=' + \
postId.split('/statuses/')[1] + \
'?actor=' + actorNickname + \
- '" title="' + translate['Edit blog post'] + '">' + \
+ '" title="' + editBlogPostStr + '">' + \
'\n'
else:
editStr += \
@@ -336,22 +336,21 @@ def getEditIconHtml(baseDir: str, nickname: str, domainFull: str,
nickname + '/editnewspost=' + \
postId.split('/statuses/')[1] + \
'?actor=' + actorNickname + \
- '" title="' + translate['Edit blog post'] + '">' + \
+ '" title="' + editBlogPostStr + '">' + \
'\n'
elif isEvent:
+ editEventStr = translate['Edit event']
editStr += \
' ' + \
'' + \
+ '" title="' + editEventStr + '">' + \
'\n'
return editStr