Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to translate
The Qt5LinguistTools is required because it has some handy macros, see here for more information.
You can check for this package with code like this from the main CMakeLists.txt file:
find_package(Qt5 5.2 REQUIRED COMPONENTS LinguistTools)
Of course this instruction can include more components.
Add the REFRESH_TRANSLATIONS option to the main CMakeLists.txt. Make sure you declare the option after the FeatureSummary file is included:
# Refresh translations at build time option(REFRESH_TRANSLATIONS "Refresh translations at build time" OFF) add_feature_info(RefreshTranslations REFRESH_TRANSLATIONS "Refresh translations at build time.")
Now create, from the source code root, a
with a structure quite similar to the