nvda
0ea93e7b - Use translated strings for driver settings in 32 bit sapi synthDrivers (#19562)

Commit
265 days ago
Use translated strings for driver settings in 32 bit sapi synthDrivers (#19562) Closes #19557 ### Summary of the issue: When using 32 bit sapi synthDrivers introduced with pr #19432, particular strings, such as the display name of driver settings, when moving through the synth settings ring, are not translated into the current NVDA language. ### Description of user facing changes: The translations are now used, if available. ### Description of developer facing changes: ### Description of development approach: * Expose a getAppArg method on the NvDA service, which the synthDriverHost runtime can use to fetch a particular NvDA commandline argument value. * synthDriverHost runtime: Sync the language key from the general section of NVDA's configuration to the synthDriverHost's local copy of the configuration. * synthDriverHost: appropriately set its local copy of globalVars.appArgs.language to NVDA's value, using the NVDA Service's getAppArg method. * SynthDriverHost: set the language based on the language in the config / the overridden commandline argument value, using the same logic that NvDA uses in core. ### Testing strategy: * Set NvDA's language to German. Select the sapi4 synthesizer. Move left and right through the synth settings ring, ensuring that parameters such as rate and pitched are correctly announced with their German translated names. * Do the above steps but instead of setting the configured language, override on the commandline with `--lang de`. ### Known issues with pull request: None known.
Parents
Loading