-
Notifications
You must be signed in to change notification settings - Fork 25
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 translator comment parsing #106
Conversation
This needs a little rebase before it can be tested and merged. |
b0faaa3
to
1241ede
Compare
Rebased and applied recommended cleanups; once it looks good to you, I'll squash the fixup commits into the branch. |
7a11334
to
6e5a87b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to merge this now and then refactor/update as we get more experience.
This adjusts the directive detection to detect "skip" and "comment" commands. We also adjust the regular expression so that it can use a different, less wordy "i18n" prefix, rather than "mdbook-xgettext".
6e5a87b
to
eaba56d
Compare
Sounds good. Please merge. Thanks for your patience as I'm still catching up on responding to your comments. I'll try to be a bit more prompt in the future. |
All good! It's your PR and you can drive it at whatever speed suits you 🙂 This feature is not blocking anything directly, so it's not something I'm trying to push super hard. |
This moves the comment directive parsing to a separate module and adds two features:
This is preparatory work to thread this state during message extraction.