MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / show_translate_usage

Function show_translate_usage

seleniumbase/console_scripts/run.py:468–500  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467
468def show_translate_usage():
469 c2 = colorama.Fore.BLUE + colorama.Back.LIGHTGREEN_EX
470 c3 = colorama.Fore.BLUE + colorama.Back.LIGHTYELLOW_EX
471 cr = colorama.Style.RESET_ALL
472 sc = " " + c2 + "** " + c3 + "translate" + c2 + " **" + cr
473 print(sc)
474 print("")
475 print(" Usage:")
476 print(" seleniumbase translate [SB_FILE.py] [LANG] [ACTION]")
477 print(" OR: sbase translate [SB_FILE.py] [LANG] [ACTION]")
478 print(" Languages:")
479 print(" --en / --English | --zh / --Chinese")
480 print(" --nl / --Dutch | --fr / --French")
481 print(" --it / --Italian | --ja / --Japanese")
482 print(" --ko / --Korean | --pt / --Portuguese")
483 print(" --ru / --Russian | --es / --Spanish")
484 print(" Actions:")
485 print(" -p / --print (Print translation output to the screen)")
486 print(" -o / --overwrite (Overwrite the file being translated)")
487 print(" -c / --copy (Copy the translation to a new .py file)")
488 print(" Options:")
489 print(" -n (include line Numbers when using the Print action)")
490 print(" Output:")
491 print(" Translates a SeleniumBase Python file into the language")
492 print(' specified. Method calls and "import" lines get swapped.')
493 print(" Both a language and an action must be specified.")
494 print(' The "-p" action can be paired with one other action.')
495 print(' When running with "-c" (or "--copy"), the new file name')
496 print(" will be the original name appended with an underscore")
497 print(" plus the 2-letter language code of the new language.")
498 print(' (Example: Translating "test_1.py" into Japanese with')
499 print(' "-c" will create a new file called "test_1_ja.py".)')
500 print("")
501
502
503def show_extract_objects_usage():

Callers 2

show_detailed_helpFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…