Issues

Issue #1344 closed

Add gettext option to extract index directive values

Takayuki Shimizukawa
created an issue

Sphinx-1.2 has been started to extract index directive values for i18n. However, in some case, index directive values are unsuitable for i18n. We need a new option as gettext_ignore_index.

Comments (8)

  1. Robert Lehmann

    What's the difference between deprecating (in we ever need to do that, I think we'd rather introduce more and more) option values and option names?

    I would prefer individual options over a list since they're much more lightweight to work with.

  2. Markus Zapke-Gründemann

    Sorry, maybe my example was not so well explained. I meant instead of introducing now gettext_ignore_index and later deprecate it in favour of gettext_enables = ['index'] we could introduce gettext_enables right now. This also makes it easier to introduce new options: Instead of adding a completely new option gettext_NEW_OPTION one simply has to add NEW_OPTION to the list. The advantage is IMO that many gettext-related options are grouped in a single place.

  3. Takayuki Shimizukawa reporter

    The advantage is IMO that many gettext-related options are grouped in a single place.

    Exactly.

    However, if my opinion is not good after 1.3b1 or b2 release, let's discuss about this topic again before 1.3-final.

  4. Log in to comment