OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
language_test Namespace Reference

Functions

 run (binary, game, language)
 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
list CASES = [(4, 4), (6, 0)]
str CFG = 'dir localizedstrings str\nloc_language\nquit\n'

Detailed Description

An English install runs in Spanish on its english localized files.

    python3 scripts/language_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH]

GAME must hold localized_english iwds and no localized_spanish ones. A client
started with loc_language 4 keeps it (1.3 falls back to 0, leaving 4 latched)
and still sees the english localized .str files, whose LANG_SPANISH lines it
then reads; loc_language 6 (Russian, which the stock fonts cannot draw) falls
back to English, as on 1.3. Exits with 0 when both hold. The client opens a window
and needs a CD key in ~/.cod2/preferences; without one the test is skipped.

Function Documentation

◆ main()

language_test.main ( )

◆ run()

language_test.run ( binary,
game,
language )

Variable Documentation

◆ CASES

list language_test.CASES = [(4, 4), (6, 0)]

◆ CFG

str language_test.CFG = 'dir localizedstrings str\nloc_language\nquit\n'

◆ ROOT

language_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))