Fix #2874: gettext builder could not extract all text under the `only` directives

This commit is contained in:
Takeshi KOMIYA
2016-08-20 20:44:17 +09:00
parent 892cc259ec
commit e96e627d59
5 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2010, Georg Brandl & Team
# This file is distributed under the same license as the Sphinx <Tests> package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Sphinx <Tests> 0.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-04 13:06+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "Only directive"
msgstr "ONLY DIRECTIVE"
msgid "In HTML."
msgstr "IN HTML."
msgid "In LaTeX."
msgstr "IN LATEX."
msgid "In both."
msgstr "IN BOTH."

View File

@@ -0,0 +1,14 @@
Only directive
--------------
.. only:: html
In HTML.
.. only:: latex
In LaTeX.
.. only:: html or latex
In both.