Christophe de VIENNE schrieb: > Hi, > > I am working on an extension, and need to know the current language. > I found a 'language_code' attribute in state.document.settings, but it > is set to "en" while my documentation language is "fr". > > Am I looking in the wrong place or is it a bug ?
It is the docutils' own language code, which isn't used by Sphinx (yet). You can get at the Sphinx language setting with document.settings.env.config.language (nice long attribute path, I know :) Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---