devctrl.utility.translation.generate_dataclass_translations#
- generate_dataclass_translations(d, recurse=True) str[source]#
Generate QT translation statements for dataclass members that
pylupdatecan pick up.Write the result to a file in your project directory, so that
pylupdatewill read it.This will add a translation context corresponding to the dataclass name, with a translation for each field name, field doc and field tooltip.