Hi Benny,
If you want to get language in the HTML template, I think you need a
html_context [1]_ setting in conf.py::
language = 'he'
html_context = {'language': language}
BTW, if you are using -D option to specify a language parameter, you
can use -D option as::
sphinx-build -D language=he -D html_context.language=he ...
# I have not tried, but I will probably work.
.. [1] http://sphinx-doc.org/config.html#confval-html_context
.. [2] http://sphinx-doc.org/invocation.html#cmdoption-sphinx-build-D
Regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa
2013/6/2 Benny Daon <[email protected]>:
> Hi all,
> I'm trying to get the hebrew translation of http://opendatahandbook.org to
> look good, which means copying the theme and changing it to go from
> right-to-left. Once I have that, I need to tell Sphinx to use the right
> theme based on the language code, so that 'he', 'ar' and 'fa' will use the
> RTL theme (We are building the book using: `make html lang=he`).
> After I found nothing online, I used pdb and looked around the locals() of
> conf.py and couldn't find any clue as to how I can find what is the current
> language. Any ideas?
>
> Thanks,
>
> Benny.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.