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
Hi! I'm looking to use mdTranslation and mdbook-translation for ISSOtm/gb-asm-tutorial#25.
Unfortunately, given that the book is quite large, a single translation file per language is infeasible, much less so one for all translations (as nice as the "many languages per translation file" feature is, I don't think it's useful for this use case). Hence, I would prefer if the preproc read one translation file per input file (i.e. the translation files would be arranged following the same structure as the book's source).
Here's a command to generate the translation files:
Hi! I'm looking to use
mdTranslation
andmdbook-translation
for ISSOtm/gb-asm-tutorial#25.Unfortunately, given that the book is quite large, a single translation file per language is infeasible, much less so one for all translations (as nice as the "many languages per translation file" feature is, I don't think it's useful for this use case). Hence, I would prefer if the preproc read one translation file per input file (i.e. the translation files would be arranged following the same structure as the book's source).
Here's a command to generate the translation files:
$ git ls-files -z src | sed -Ez 's,src/(.+\.md)$,\1,;t;d' | xargs -0I {} bash -c 'mkdir -p "$(dirname "translations/@@LANG@@/{}")" && mdtranslation_extract -l @@LANG@@ "src/{}" >"translations/@@LANG@@/{}"'
(Replacing
@@LANG@@
with the language of your choice, of course.)Would you be interested in upstreaming such changes?
The text was updated successfully, but these errors were encountered: