-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add translation progress information #11509
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
45bcdf8
Documentation about `translated=True` attribute on nodes
humitos 734f588
:caption: doesn't work on ``.. code::``
AA-Turner 153ba7b
Add translation progress features
AA-Turner 9785029
Add CHANGES note
AA-Turner a3c573f
Whitespace
AA-Turner e3dcfc2
Add types
AA-Turner 1c7751c
whitespace
AA-Turner d916d89
cross-referencing
AA-Turner f166b4f
Tests
AA-Turner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -29,6 +29,7 @@ CONTENTS | |
raw | ||
refs | ||
section | ||
translation_progress | ||
topic | ||
|
||
.. toctree:: | ||
|
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,36 @@ | ||
Translation Progress | ||
==================== | ||
|
||
When, in disgrace with fortune and men’s eyes, | ||
|
||
I all alone beweep my outcast state, | ||
|
||
And trouble deaf heaven with my bootless cries, | ||
|
||
And look upon myself, and curse my fate, | ||
|
||
Wishing me like to one more rich in hope, | ||
|
||
Featur’d like him, like him with friends possess’d, | ||
|
||
Desiring this man’s art and that man’s scope, | ||
|
||
With what I most enjoy contented least; | ||
|
||
Yet in these thoughts myself almost despising, | ||
|
||
Haply I think on thee, and then my state, | ||
|
||
Like to the lark at break of day arising | ||
|
||
.. untranslated (3 out of 14 lines): | ||
|
||
From sullen earth, sings hymns at heaven’s gate; | ||
|
||
For thy sweet love remember’d such wealth brings | ||
|
||
That then I scorn to change my state with kings. | ||
|
||
.. translation progress substitution | ||
|
||
|translation progress| |
48 changes: 48 additions & 0 deletions
48
tests/roots/test-intl/xx/LC_MESSAGES/translation_progress.po
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,48 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2000-01-01 00:00\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\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" | ||
|
||
msgid "Translation Progress" | ||
msgstr "TRANSLATION PROGRESS" | ||
|
||
msgid "When, in disgrace with fortune and men’s eyes," | ||
msgstr "WHEN, IN DISGRACE WITH FORTUNE AND MEN’S EYES," | ||
|
||
msgid "I all alone beweep my outcast state," | ||
msgstr "I ALL ALONE BEWEEP MY OUTCAST STATE," | ||
|
||
msgid "And trouble deaf heaven with my bootless cries," | ||
msgstr "AND TROUBLE DEAF HEAVEN WITH MY BOOTLESS CRIES," | ||
|
||
msgid "And look upon myself, and curse my fate," | ||
msgstr "AND LOOK UPON MYSELF, AND CURSE MY FATE," | ||
|
||
msgid "Wishing me like to one more rich in hope," | ||
msgstr "WISHING ME LIKE TO ONE MORE RICH IN HOPE," | ||
|
||
msgid "Featur’d like him, like him with friends possess’d," | ||
msgstr "FEATUR’D LIKE HIM, LIKE HIM WITH FRIENDS POSSESS’D," | ||
|
||
msgid "Desiring this man’s art and that man’s scope," | ||
msgstr "DESIRING THIS MAN’S ART AND THAT MAN’S SCOPE," | ||
|
||
msgid "With what I most enjoy contented least;" | ||
msgstr "WITH WHAT I MOST ENJOY CONTENTED LEAST;" | ||
|
||
msgid "Yet in these thoughts myself almost despising," | ||
msgstr "YET IN THESE THOUGHTS MYSELF ALMOST DESPISING," | ||
|
||
msgid "Haply I think on thee, and then my state," | ||
msgstr "HAPLY I THINK ON THEE, AND THEN MY STATE," | ||
|
||
msgid "Like to the lark at break of day arising" | ||
msgstr "LIKE TO THE LARK AT BREAK OF DAY ARISING" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesterday, I was about to suggest having two different substitutions here but I didn't have time.
|translation total progress|
|translation page progress|
That way you can show these two numbers.