You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: Support for scripted module internationalization
This commit adds CMake function "SlicerFunctionAddPythonScriptTrFilesTargets"
used to ensure input expected by lupdate/lrelease translation tools are
generated.
The CMake function associates custom commands with each python scripts
and also adds a convenience target called "Add<TargetName>PythonScriptTrFiles"
to explicitly regenerate the .py.tr files.
The custom commands generate the .py.tr files by invoking a python cli
(CMake/Rewrite.py) replacing calls to "slicer.util.tr" with "QT_TRANSLATE_NOOP".
The python cli "CMake/Rewrite.py" internally uses the astor python
package.
Updates SlicerConfig to set Slicer_BUILD_I18N_SUPPORT,
Slicer_UPDATE_TRANSLATION and Slicer_LANGUAGES.
Co-authored-by: Carlos Luque <carlos.luque@ulpgc.es>
0 commit comments