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
I am comparing po4a and asciidoctor-gettext and asciidoctor-gettext's output seems nicer - for example tables are better tokenized in asciidoctor-gettext rather then full multilline string being used in po file as in po4a.
But i can never apply the translation. I have tried to use asciidoctor-gettext translate but it always fails with:
Translation failed. This is probably a bug in rewrite.ts.
No further message is given.
So i tried using it on asciidoc official i18n-font-test.adoc test file, but that one fails with:
invalid style for paragraph: hardbreaks-option and then
Translation failed. This is probably a bug in rewrite.ts..
I tried fully empty non translated.po file, fully edited .po file... to no avail. See my output:
$ wget https://raw.githubusercontent.com/asciidoctor/asciidoctor-pdf/master/spec/fixtures/i18n-font-test.adoc
--2019-07-21 19:56:04-- https://raw.githubusercontent.com/asciidoctor/asciidoctor-pdf/master/spec/fixtures/i18n-font-test.adoc
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3765 (3.7K) [text/plain]
Saving to: ‘i18n-font-test.adoc’
i18n-font-test.adoc 100%[=====================================================================================================>] 3.68K --.-KB/s in 0.001s
2019-07-21 19:56:04 (2.80 MB/s) - ‘i18n-font-test.adoc’ saved [3765/3765]
$ asciidoctor-gettext.js gettextize -m i18n-font-test.adoc -p out.po
Unknown node name: 'open'
Unknown node name: 'colist'
$ asciidoctor-gettext.js translate -m i18n-font-test.adoc -p out.po -l out.adoc
Unknown node name: 'open'
Unknown node name: 'colist'
asciidoctor: WARNING: <stdin>: line 115: invalid style for paragraph: hardbreaks-option
Translation failed. This is probably a bug in rewrite.ts.
Please file a bug report and attaching the input asciidoc file.
https://github.com/martijnthe/asciidoctor-gettext/issues/
I am comparing po4a and asciidoctor-gettext and asciidoctor-gettext's output seems nicer - for example tables are better tokenized in asciidoctor-gettext rather then full multilline string being used in po file as in po4a.
But i can never apply the translation. I have tried to use
asciidoctor-gettext translate
but it always fails with:Translation failed. This is probably a bug in rewrite.ts.
No further message is given.
So i tried using it on asciidoc official
i18n-font-test.adoc
test file, but that one fails with:invalid style for paragraph: hardbreaks-option
and thenTranslation failed. This is probably a bug in rewrite.ts.
.I tried fully empty non translated.po file, fully edited .po file... to no avail. See my output:
Steps to reproduce:
thank you
The text was updated successfully, but these errors were encountered: