<div dir="ltr"><div>Thank you for response.</div><div><br></div><div>I guess the tutorial is my main concern, because it especially (and maybe only (?)) contains some documentation sentences in comments. Having those translated would make a final step to native translated look and feel of tutorial.</div><div><br></div><div>Would it be potentially possible to treat tutorial differently and translate code blocks contained in it only?</div><div><br></div><div>Kind regards,</div><div>Maciej<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pon., 27 sty 2020 o 05:15 Inada Naoki <<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>> napisaÅ‚(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don't have a strong objection, but I think translating sample code<br>
is much less important than translating regular docs.<br>
<br>
For example, see <a href="https://docs.python.org/3/library/functools.html" rel="noreferrer" target="_blank">https://docs.python.org/3/library/functools.html</a><br>
There are many example code blocks.  Translating strings in them<br>
doesn't help much.<br>
<br>
So I think focusing to regular doc is better for effort-benefit ratio.<br>
<br>
Regards,<br>
<br>
On Sun, Jan 26, 2020 at 7:31 AM Maciek Olko <<a href="mailto:maciej.olko@gmail.com" target="_blank">maciej.olko@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I'd like to set up discussion about making code blocks in documentation translatable. From my experience many of code blocks would benefit from being translated. Especially comments and string literals. For example this code block from tutorial:<br>
><br>
> # this is the first comment<br>
> spam = 1  # and this is the second comment<br>
>  Â  Â  Â  Â  Â # ... and now a third!<br>
> text = "# This is not a comment because it's inside quotes."<br>
><br>
> To enable their translation, it requires slight modification of Sphinx call â€“ gettext_additional_targets = ['literal-block'] configuration option value would do this. The option has been introduced in Sphinx 1.3.<br>
><br>
> If there would be consensus about that I'd willingly add pull request in docsbuild-scripts repository.<br>
><br>
> Kind regards,<br>
> Maciej<br>
> _______________________________________________<br>
> Doc-SIG maillist  -  <a href="mailto:Doc-SIG@python.org" target="_blank">Doc-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/doc-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/doc-sig</a><br>
<br>
<br>
<br>
-- <br>
Inada Naoki  <<a href="mailto:songofacandy@gmail.com" target="_blank">songofacandy@gmail.com</a>><br>
</blockquote></div>