FindGettext: Fix gettext_create_translations signature and description

The first input parameter is a potfile and not mofile.
Also mention the fact that the generated binary files
will be automatically installed.
This commit is contained in:
Yegor Yefremov authored and Brad King committed 2025-02-12 10:12:40 -05:00
1 parent 2adf14f420
commit d1b888a55e
1 file changed
+4 -3
+4 -3
View File
@@ -35,10 +35,11 @@ This module provides several function.
.. code-block:: cmake
gettext_create_translations(<mofile> [ALL] <file>...)
gettext_create_translations(<potfile> [ALL] <file>...)
This will create a target "translations" which will convert the
given input .po files into the binary output .mo file. Options:
This function creates a custom target "translations" which processes the
given .pot file to .mo files. The generated binary files will be installed
into ``share/locale/`` directory. Options:
``ALL``
The translations will be created when building the default target.