Functions
ParaViewTranslations.cmake File Reference

Go to the source code of this file.

Functions

function paraview_generate_translation_header ()
 Generate a C++ header with input XML labels and UI strings that can be parsed by Qt Linguist tools. More...
 
function paraview_create_translation ()
 Generate a Qt translation source file from the given source files. More...
 

Function Documentation

◆ paraview_generate_translation_header()

function paraview_generate_translation_header ( )

Generate a C++ header with input XML labels and UI strings that can be parsed by Qt Linguist tools.

It is using a python utility at Utilities/Localization/XML_translations_header_generator.py

TARGET <name>
INPUT_FILES <file>...
RESULT_FILE <file>)
  • TARGET: (Required) The name of the target that generate the translation header file.
  • INPUT_FILES: (Required) The absolute path of the input files.
  • RESULT_FILE: (Required) The absolute path of the desired result file.

Definition at line 20 of file ParaViewTranslations.cmake.

◆ paraview_create_translation()

function paraview_create_translation ( )

Generate a Qt translation source file from the given source files.

TARGET <name>
INPUT_FILES <files...>
OUTPUT_TS <file>
  • TARGET: (Required) The name of the target that generate the translation source file.
  • INPUT_FILES: (Required) The source files to search translatable strings in.
  • OUTPUT_TS: (Required) The absolute path of the desired result file.

Definition at line 70 of file ParaViewTranslations.cmake.