-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
When mdbook-xgettext
extracts translatable text, it would be great if it could normalize the strings. This would make it possible for us to reformat the entire course without fearing that the translations get destroyed while doing so.
The normalization would take Markdown like this
# This is a heading
This is another heading
=======================
A _little_
paragraph.
```rust,editable
fn main() {
println!("Hello world!");
}
```
* First
* Second
and turn it into these messages in the .pot
file:
"This is a heading"
(atx heading is stripped)"This is another heading"
(setext heading is stripped)"A _little_ paragraph."
(soft-wrapped lines are unfolded)"fn main() {\n println!("Hello world!");\n}"
(info string is stripped, we should instead use a#,
flag)"First"
(bullet point extracted individually)"Second"
Like in google/comprehensive-rust#318, we should do this in a step-by-step fashion and make sure to apply the transformations to the existing translations. It would also be good if we have a way to let translators update their not-yet-submitted translations.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request