-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10107 from Jean-Abou-Samra/intl-warnings
Implement #noqa for i18n
- Loading branch information
Showing
8 changed files
with
166 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
First section | ||
============= | ||
|
||
Some text with a reference, :ref:`next-section`. | ||
|
||
Another reference: :ref:`next-section`. | ||
|
||
This should allow to test escaping ``#noqa``. | ||
|
||
.. _next-section: | ||
|
||
Next section | ||
============ | ||
|
||
Some text, again referring to the section: :ref:`next-section`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) | ||
# This file is distributed under the same license as the Sphinx intl <Tests> package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-01-16 15:23+0100\n" | ||
"PO-Revision-Date: 2022-01-16 15:23+0100\n" | ||
"Last-Translator: Jean Abou Samra <jean@abou-samra.fr>\n" | ||
"Language-Team: \n" | ||
"Language: xx\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 3.0\n" | ||
|
||
#: ../tests/roots/test-intl/noqa.txt:2 | ||
msgid "First section" | ||
msgstr "FIRST SECTION" | ||
|
||
#: ../tests/roots/test-intl/noqa.txt:4 | ||
msgid "Some text with a reference, :ref:`next-section`." | ||
msgstr "TRANSLATED TEXT WITHOUT REFERENCE. #noqa" | ||
|
||
#: ../tests/roots/test-intl/noqa.txt:6 | ||
msgid "Another reference: :ref:`next-section`." | ||
msgstr "" | ||
"TEST noqa WHITESPACE INSENSITIVITY.\n" | ||
"# \n" | ||
" noqa" | ||
|
||
#: ../tests/roots/test-intl/noqa.txt:8 | ||
msgid "This should allow to test escaping ``#noqa``." | ||
msgstr "``#noqa`` IS ESCAPED AT THE END OF THIS STRING. \\#noqa" | ||
|
||
#: ../tests/roots/test-intl/noqa.txt:13 | ||
msgid "Next section" | ||
msgstr "NEXT SECTION WITH PARAGRAPH TO TEST BARE noqa" | ||
|
||
# This edge case should not fail. | ||
#: ../tests/roots/test-intl/noqa.txt:15 | ||
msgid "Some text, again referring to the section: :ref:`next-section`." | ||
msgstr "#noqa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters