Added German translation and fixed the issue when the comment gets deleted before it gets sent

This commit is contained in:
Frisk 2019-06-03 01:41:36 +02:00
parent 08ed53a5a4
commit 53d34ca84a
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C
4 changed files with 189 additions and 185 deletions

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-02 19:59+0200\n"
"POT-Creation-Date: 2019-06-03 01:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View file

@ -621,7 +621,7 @@ def embed_formatter(action, change, parsed_comment, categories):
elif action == "curseprofile/comment-created":
if settings["appearance"]["embed"]["show_edit_changes"]:
comment_content = pull_comment(change["logparams"]["4:comment_id"])
if comment_content is not None:
if comment_content is not None and comment_content:
embed["fields"] = [{"name": _("Comment content"), "value": comment_content["text"]}]
link = "https://{wiki}.gamepedia.com/Special:CommentPermalink/{commentid}".format(wiki=settings["wiki"],
commentid=change["logparams"]["4:comment_id"])
@ -631,7 +631,7 @@ def embed_formatter(action, change, parsed_comment, categories):
elif action == "curseprofile/comment-replied":
if settings["appearance"]["embed"]["show_edit_changes"]:
comment_content = pull_comment(change["logparams"]["4:comment_id"])
if comment_content is not None:
if comment_content is not None and comment_content:
embed["fields"] = [{"name": _("Comment content"), "value": comment_content["text"]}]
link = "https://{wiki}.gamepedia.com/Special:CommentPermalink/{commentid}".format(wiki=settings["wiki"],
commentid=change["logparams"]["4:comment_id"])
@ -641,7 +641,7 @@ def embed_formatter(action, change, parsed_comment, categories):
elif action == "curseprofile/comment-edited":
if settings["appearance"]["embed"]["show_edit_changes"]:
comment_content = pull_comment(change["logparams"]["4:comment_id"])
if comment_content is not None:
if comment_content is not None and comment_content:
embed["fields"] = [{"name": _("Comment content"), "value": comment_content["text"]}]
link = "https://{wiki}.gamepedia.com/Special:CommentPermalink/{commentid}".format(wiki=settings["wiki"],
commentid=change["logparams"]["4:comment_id"])