Skip to content

fix: resolve {build_dir} in translated pages - #2198

Open
yangzhg wants to merge 1 commit into
git:gh-pagesfrom
yangzhg:fix/l10n-build-dir-includes
Open

fix: resolve {build_dir} in translated pages#2198
yangzhg wants to merge 1 commit into
git:gh-pagesfrom
yangzhg:fix/l10n-build-dir-includes

Conversation

@yangzhg

@yangzhg yangzhg commented Aug 27, 2026

Copy link
Copy Markdown

The translated manual page updater leaves {build_dir} in include paths, so the command lists are replaced by missing-file warnings.

Resolve those includes from the language directory. Regular relative includes still use the directory of the source file.

I checked the current git-html-l10n data for es, fr, pt_BR, ru, sv, uk, and zh_HANS-CN, including nested config/merge.adoc files where available. The legacy .txt path still works as well.

Fixes #2197

Resolve translated includes from the language directory when they use
{build_dir}. Keep relative includes based on their source directory.

Fixes git#2197

Signed-off-by: Yang Zhengguo <yangzhgg@gmail.com>
@yangzhg yangzhg changed the title update-docs: resolve {build_dir} in translated pages fix: resolve {build_dir} in translated pages Aug 28, 2026
@yangzhg

yangzhg commented Aug 28, 2026

Copy link
Copy Markdown
Author

@dscho Could you please review this PR? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Localized git manpages fail to expand {build_dir} includes

1 participant