-
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
Normalization does not respect line number granularity #171
Comments
I'll pick this up since it's related to #154 |
Awesome, thanks @zachcmadsen! |
Notably let source = ctx.config.book.src.join(&source);
for (lineno, extracted) in extract_messages(&content) {
let msgid = extracted.message;
let source = format!("{}:{}", source.display(), lineno);
add_message(catalog, &msgid, &source, &extracted.comment);
} Putting up a fix now. |
@mgeisler working on this now. How do we want the granularity to be configured? Should it be a command-line flag? |
Hmm, good question! I guess there are two options:
If it's easy to replicate how |
As a side-quest ( 😄 ) to #154, I've realized that
mdbook-i18n-normalize
doesn't use the same rounding logic... that will come back and cause problems at some point.It would be great to have it round the normalized message sources the same way.
The text was updated successfully, but these errors were encountered: