Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codechange: More descriptive variable names #124

Merged
merged 1 commit into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion webtranslate/pages/language_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def language_list(userauth):
response.content_type = "text/plain; charset=UTF-8"

lines = ["isocode,grflangid,filename,is_stable,name,ownname,plural,gender,case"]
langs = sorted(language_info.all_languages, key=lambda l: l.isocode)
langs = sorted(language_info.all_languages, key=lambda lang: lang.isocode)
for lng in langs:
line = "{},0x{:02x},{},{},{},{},{},{},{}".format(
lng.isocode,
Expand Down
2 changes: 1 addition & 1 deletion webtranslate/pages/language_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def languages(userauth):
"""
Get an overview of used languages over all projects.
"""
languages = sorted(language_info.all_languages, key=lambda l: l.isocode)
languages = sorted(language_info.all_languages, key=lambda lang: lang.isocode)
return template("languages", userauth=userauth, lnginfos=languages)


Expand Down
2 changes: 1 addition & 1 deletion webtranslate/pages/upload_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def page_get(userauth, prjname):
"upload_lang_select",
userauth=userauth,
pmd=pmd,
lnginfos=sorted(pdata.get_all_languages(), lambda l: l.isocode),
lnginfos=sorted(pdata.get_all_languages(), lambda lang: lang.isocode),
)


Expand Down