Skip to content

Commit

Permalink
automake translator link from contributor list
Browse files Browse the repository at this point in the history
  • Loading branch information
panther7 committed Dec 27, 2022
1 parent f20cb99 commit 510a927
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ def __init__(self, parent = None):
self.layout.addWidget(QLinkLabel(f"{_('Contributors')}:", f"font-size: 22pt;font-family: \"{globals.dispfont}\";font-weight: bold;"))
self.layout.addWidget(QLinkLabel(_("WingetUI wouldn't have been possible with the help of our dear contributors. Check out their GitHub profile, WingetUI wouldn't be possible without them!")))
GHcontributors = "<ul>"
for user in (
GHcontributorsList = [
"harleylara",
"MisterEvans78",
"neoOpus",
Expand All @@ -1996,7 +1996,9 @@ def __init__(self, parent = None):
"sklart",
"vedantmgoyal2009",
"victorelec14",
):
]
GHcontributorsList.sort(key=str.casefold)
for user in GHcontributorsList:
GHcontributors += f"<li><a style=\"color:{blueColor}\" href=\"https://github.com/{user}\">{user}</a></li>"
GHcontributors += "</ul>"
self.layout.addWidget(QLinkLabel(GHcontributors))
Expand All @@ -2011,7 +2013,7 @@ def __init__(self, parent = None):
if singleuser != "":
user = singleuser.strip()
translatorUser = user
if (user[0] == "@"):
if (user[0] == "@" or user in GHcontributorsList):
user = user[1:]
translatorUser = f"<a style=\"color:{blueColor}\" href=\"https://github.com/{user}\">{user}</a>"
translatorKey = f"{user}{languageReference[key]}" # for sort
Expand Down

0 comments on commit 510a927

Please sign in to comment.