diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2025-09-30 12:10:55 -0400 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-01 11:29:59 -0700 |
| commit | 098dc533d659a9ee6e987d46dfcd918bfb133ca3 (patch) | |
| tree | 9bf1f81d4f21c4c859083d7105aaf2c067d077b6 /docs | |
| parent | c0a5e9293209f465ab114ae0fcd92de640ef48a6 (diff) | |
| download | meson-098dc533d659a9ee6e987d46dfcd918bfb133ca3.tar.gz | |
Allow CustomTarget source for i18n.xgettext
Fixes #15054
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/markdown/i18n-module.md | 5 | ||||
| -rw-r--r-- | docs/markdown/snippets/xgettext-custom-tgt.md | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/docs/markdown/i18n-module.md b/docs/markdown/i18n-module.md index ac6146dd5..6cdd74a28 100644 --- a/docs/markdown/i18n-module.md +++ b/docs/markdown/i18n-module.md @@ -90,7 +90,7 @@ for each executable. Positional arguments are the following: * name `str`: the name of the resulting pot file. -* sources `array[str|File|build_tgt|custom_tgt]`: +* sources `array[str|File|build_tgt|custom_tgt|custom_idx]`: source files or targets. May be a list of `string`, `File`, [[@build_tgt]], or [[@custom_tgt]] returned from other calls to this function. @@ -120,4 +120,7 @@ included to generate the final pot file. Therefore, adding a dependency to source target will automatically add the translations of that dependency to the needed translations for that source target. +*New in 1.10.0* sources can be result of [[@custom_tgt]] or [[@custom_idx]]. +Before 1.10.0, custom targets were silently ignored. + *Added 1.8.0* diff --git a/docs/markdown/snippets/xgettext-custom-tgt.md b/docs/markdown/snippets/xgettext-custom-tgt.md new file mode 100644 index 000000000..37ec43823 --- /dev/null +++ b/docs/markdown/snippets/xgettext-custom-tgt.md @@ -0,0 +1,7 @@ +## `i18n.xgettext` now accepts CustomTarget and CustomTargetIndex as sources + +Previously, [[@custom_tgt]] were accepted but silently ignored, and +[[@custom_idx]] were not accepted. + +Now, they both can be used, and the generated outputs will be scanned to extract +translation strings. |
