You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I attempted to use the mdbook-i18n-helper preprocessor to generate Gettext .po translation files for the rustc-dev-guide. However, I encountered some unexpected msgid content in the generated messages.pot file.
For example:
#: src/SUMMARY.md:3
msgid "Getting Started About this guide"
msgstr ""
Writing the entries as proper Markdown lists ensures that Gettext can extract each item into a separate msgid, rather than merging them into a single line.
Problem Description
Recently, I attempted to use the
mdbook-i18n-helper
preprocessor to generate Gettext.po
translation files for therustc-dev-guide
. However, I encountered some unexpectedmsgid
content in the generatedmessages.pot
file.For example:
These
msgid
s correspond to the following lines inSUMMARY.md
:rustc-dev-guide/src/SUMMARY.md
Lines 3 to 4 in 8e69daa
rustc-dev-guide/src/SUMMARY.md
Lines 232 to 236 in 8e69daa
It turns out that these lines are not written in proper Markdown list format.
Possible Solutions
The correct way to format these entries is as bullet lists, like so:
Writing the entries as proper Markdown lists ensures that Gettext can extract each item into a separate
msgid
, rather than merging them into a single line.Demo Commands
The text was updated successfully, but these errors were encountered: