Merge pull request #5096 from luzpaz/typos

Fix user facing typos [skip ci]
This commit is contained in:
Chris Hennes
2021-10-06 17:24:05 -05:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@@ -208,7 +208,7 @@ def init_menu(workbench, menu_list, cmd_list):
The workbench. The commands from cmd_list must be available.
menu_list: list of strings
The main and optional submenu(s). The commands, and additonal
The main and optional submenu(s). The commands, and additional
submenus (if any), are added to the last (sub)menu in the list.
cmd_list: list of strings or list of strings and tuples

View File

@@ -237,7 +237,7 @@
</size>
</property>
<property name="toolTip">
<string>The path to the directory for transfering files to and from OpenSCAD</string>
<string>The path to the directory for transferring files to and from OpenSCAD</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>transferdirectory</cstring>

View File

@@ -115,7 +115,7 @@ locations = [["AddonManager","../Mod/AddonManager/Resources/translations","../Mo
["TechDraw","../Mod/TechDraw/Gui/Resources/translations","../Mod/TechDraw/Gui/Resources/TechDraw.qrc"],
]
TRESHOLD = 25 # how many % must be translated for the translation to be included in FreeCAD
THRESHOLD = 25 # how many % must be translated for the translation to be included in FreeCAD
class CrowdinUpdater:
@@ -406,7 +406,7 @@ if __name__ == "__main__":
if command == "status":
status = updater.status()
status = sorted(status,key=lambda item: item['translationProgress'],reverse=True)
print(len([item for item in status if item['translationProgress'] > TRESHOLD])," languages with status > "+str(TRESHOLD)+"%:")
print(len([item for item in status if item['translationProgress'] > THRESHOLD])," languages with status > "+str(THRESHOLD)+"%:")
print(" ")
sep = False
prefix = ""
@@ -416,7 +416,7 @@ if __name__ == "__main__":
suffix = "\033[0m"
for item in status:
if item['translationProgress'] > 0:
if (item['translationProgress'] < TRESHOLD) and (not sep):
if (item['translationProgress'] < THRESHOLD) and (not sep):
print(" ")
print("Other languages:")
print(" ")
@@ -464,7 +464,7 @@ if __name__ == "__main__":
print("retrieving list of languages...")
status = updater.status()
status = sorted(status,key=lambda item: item['translationProgress'],reverse=True)
languages = [item['languageId'] for item in status if item['translationProgress'] > TRESHOLD]
languages = [item['languageId'] for item in status if item['translationProgress'] > THRESHOLD]
applyTranslations(languages)
print("Updating Translator.cpp...")
for ln in languages:
@@ -474,7 +474,7 @@ if __name__ == "__main__":
print("retrieving list of languages...")
status = updater.status()
status = sorted(status,key=lambda item: item['translationProgress'],reverse=True)
languages = [item['languageId'] for item in status if item['translationProgress'] > TRESHOLD]
languages = [item['languageId'] for item in status if item['translationProgress'] > THRESHOLD]
print("Updating Translator.cpp...")
for ln in languages:
updateTranslatorCpp(ln)