diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2012-12-05 13:11:16 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2012-12-05 13:11:16 +0900 |
| commit | aaa8e2575c7a9bbb8e5d87ed94498386c9df68bf (patch) | |
| tree | 18866fe75f4bf94ce6a1a081576a92eb2eb8e78d /tests/root | |
| parent | 241311f5e5c337e5c794f5d67299416e73bbe565 (diff) | |
| download | sphinx-aaa8e2575c7a9bbb8e5d87ed94498386c9df68bf.tar.gz | |
checking whether the number of references is equal in both the translated form and the untranslated form? If they're not equal, emit a warning and don't bother trying to transfer the references.
Diffstat (limited to 'tests/root')
| -rw-r--r-- | tests/root/contents.txt | 1 | ||||
| -rw-r--r-- | tests/root/i18n_refs_inconsistency.po | 36 | ||||
| -rw-r--r-- | tests/root/i18n_refs_inconsistency.txt | 12 |
3 files changed, 49 insertions, 0 deletions
diff --git a/tests/root/contents.txt b/tests/root/contents.txt index 8fcd4a9b..04dd8481 100644 --- a/tests/root/contents.txt +++ b/tests/root/contents.txt @@ -30,6 +30,7 @@ Contents: only i18n_footnote i18n_external_links + i18n_refs_inconsistency Python <http://python.org/> diff --git a/tests/root/i18n_refs_inconsistency.po b/tests/root/i18n_refs_inconsistency.po new file mode 100644 index 00000000..947190c7 --- /dev/null +++ b/tests/root/i18n_refs_inconsistency.po @@ -0,0 +1,36 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2012, foof +# This file is distributed under the same license as the foo package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: sphinx 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-12-05 08:28\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 "i18n with refs inconsistency" +msgstr "I18N WITH REFS INCONSISTENCY" + +msgid "[100]_ for [#]_ footnote [ref2]_." +msgstr "FOR FOOTNOTE [ref2]_." + +msgid "for reference_." +msgstr "reference_ FOR reference_." + +msgid "This is a auto numbered footnote." +msgstr "THIS IS A AUTO NUMBERED FOOTNOTE." + +msgid "This is a named footnote." +msgstr "THIS IS A NAMED FOOTNOTE." + +msgid "This is a numbered footnote." +msgstr "THIS IS A NUMBERED FOOTNOTE." + diff --git a/tests/root/i18n_refs_inconsistency.txt b/tests/root/i18n_refs_inconsistency.txt new file mode 100644 index 00000000..24bd5592 --- /dev/null +++ b/tests/root/i18n_refs_inconsistency.txt @@ -0,0 +1,12 @@ +:tocdepth: 2 + +i18n with refs inconsistency +============================= + +* [100]_ for [#]_ footnote [ref2]_. +* for reference_. + +.. [#] This is a auto numbered footnote. +.. [ref2] This is a named footnote. +.. [100] This is a numbered footnote. +.. _reference: http://www.example.com |
