gws.spec.generator.strings¶
Collect documentation strings from docstrings and strings.ini files.
Source code: gws.spec.generator.strings
Module Contents¶
- gws.spec.generator.strings.collect(gen: gws.spec.generator.base.Generator)¶
Collect the documentation strings.
English strings come from the docstrings of the server types and enum members. Then all
strings.iniandstrings.<suffix>.inifiles under the root directory are read; ini sections are language codes. A string starting with[xx]is stored under the languagexx.- Parameters:
gen – Generator state.
- Returns:
A dict of strings, keyed by language code and type uid.