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

Add support for comments #62

Closed
mgeisler opened this issue Aug 24, 2023 · 1 comment
Closed

Add support for comments #62

mgeisler opened this issue Aug 24, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@mgeisler
Copy link
Collaborator

We should teach mdbook-xgettext to react to comments in the Markdown. Comments could be used for:

  • Marking the next paragraph or code block as non-translatable. This could save translators a lot of work if there are many code blocks which shouldn't be translated because they don't have any strings or comments.
  • Add translator comments. Gettext supports comments on each message and xgettext extracts them using a special syntax (which we should try to replicate).
  • Add a message context. This is again s Gettext feature: the same message can appear multiple times, but with s different context each time.
@mgeisler mgeisler added enhancement New feature or request help wanted Extra attention is needed labels Aug 24, 2023
@mgeisler
Copy link
Collaborator Author

I somehow submitted this twice, let's close this for #63 which has a slightly better title.

@mgeisler mgeisler closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2023
@mgeisler mgeisler added duplicate This issue or pull request already exists and removed enhancement New feature or request help wanted Extra attention is needed labels Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant