Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also extract translatable strings in header files #4070

Open
echoix opened this issue Jul 18, 2024 · 0 comments
Open

Also extract translatable strings in header files #4070

echoix opened this issue Jul 18, 2024 · 0 comments

Comments

@echoix
Copy link
Member

echoix commented Jul 18, 2024

a string surrounded with _() will produce a localised string (with gettext)

With the latest change to Weblate, I do not know how string extraction is done, but at least in our Make file strings from headers are not extracted

LIB_POTFILES = find ../lib \( -name "*.c" -o -name "*.py" \) | xargs grep -l "_(\"\|n_(\""

Originally posted by @marisn in #3970 (comment)

I don't know if there are some counter-indications for this, but this was discussed in the PR #3970 when a suggestion included a translatable string in a C++ header file. It is simply filing the issue before it gets lost.

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

No branches or pull requests

1 participant