Skip to content

Commit 7dd9ec8

Browse files
committed
docs: avoid translating contributor names
There is nothing to translate there, so let's exclude them from translation. This needs a bit hacking with Sphinx for now as there doesn't seem to be a native way to achieve the exclusion, see sphinx-doc/sphinx#13307.
1 parent 0ec3b90 commit 7dd9ec8

13 files changed

+107
-32
lines changed

docs/changes/contributors/5.7.1.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, Mehdi El Oualy, Mehdi Eloualy
3+
.. only:: not gettext
4+
5+
Michal Čihař, Mehdi El Oualy, Mehdi Eloualy
46

57
Translations contributions
6-
Michal Čihař, Miguel A. Bouzada, Ldm Public, gallegonovato, Besnik Bleta, Yaron Shahrabani, Alefsander Ribeiro Nascimento, Aindriú Mac Giolla Eoin, Massimo Pissarello, hugoalh, Xzonn, Jose Delvani, 大王叫我来巡山, Сергей, Milo Ivir, VfBFan, Blueberry, Ihor Hordiichuk, Christian Wia, Fjuro, simmon, Chikita Isaac, Oğuz Ersen, 马牛逼(Felix), Sketch6580, Emin Tufan Çetin, Simona Iacob, Andi Chandler, Jorge Gemetto, Assem Askarova, Julien Humbert, Peter Vančo, Wuzzy, ovl-1, Jim Kats, WaldiS, Nicolas MAGERE, Eduard Ereza Martínez, Kaya Zeren, Pierfrancesco Passerini, Dick Groskamp, Chang-Chia Tseng, Anon, Priit Jõerüüt, 이정희, Taufik Adi Wicaksono, Balázs Úr, Saranpat Visetrit, Vlăduț Ilie
8+
.. only:: not gettext
9+
10+
Michal Čihař, Miguel A. Bouzada, Ldm Public, gallegonovato, Besnik Bleta, Yaron Shahrabani, Alefsander Ribeiro Nascimento, Aindriú Mac Giolla Eoin, Massimo Pissarello, hugoalh, Xzonn, Jose Delvani, 大王叫我来巡山, Сергей, Milo Ivir, VfBFan, Blueberry, Ihor Hordiichuk, Christian Wia, Fjuro, simmon, Chikita Isaac, Oğuz Ersen, 马牛逼(Felix), Sketch6580, Emin Tufan Çetin, Simona Iacob, Andi Chandler, Jorge Gemetto, Assem Askarova, Julien Humbert, Peter Vančo, Wuzzy, ovl-1, Jim Kats, WaldiS, Nicolas MAGERE, Eduard Ereza Martínez, Kaya Zeren, Pierfrancesco Passerini, Dick Groskamp, Chang-Chia Tseng, Anon, Priit Jõerüüt, 이정희, Taufik Adi Wicaksono, Balázs Úr, Saranpat Visetrit, Vlăduț Ilie
711

812
Documentation contributions
9-
Michal Čihař, Robin
13+
.. only:: not gettext
14+
15+
Michal Čihař, Robin

docs/changes/contributors/5.7.2.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, Mehdi Eloualy
3+
.. only:: not gettext
4+
5+
Michal Čihař, Mehdi Eloualy
46

57
Translations contributions
6-
Christian Wia, Ihor Hordiichuk, Hanaa MSB, Hoseok Seo, پرویز قادر, Reno Tx, Jose Delvani, Artemka, Blueberry, Elisabeth Pieringer, VfBFan, ɴᴇᴋᴏ, Andi Chandler, Yaron Shahrabani, Michal Čihař, Miguel A. Bouzada, gallegonovato, Besnik Bleta, Sketch6580, Aindriú Mac Giolla Eoin, Fjuro, 大王叫我来巡山
8+
.. only:: not gettext
9+
10+
Christian Wia, Ihor Hordiichuk, Hanaa MSB, Hoseok Seo, پرویز قادر, Reno Tx, Jose Delvani, Artemka, Blueberry, Elisabeth Pieringer, VfBFan, ɴᴇᴋᴏ, Andi Chandler, Yaron Shahrabani, Michal Čihař, Miguel A. Bouzada, gallegonovato, Besnik Bleta, Sketch6580, Aindriú Mac Giolla Eoin, Fjuro, 大王叫我来巡山
711

812
Documentation contributions
9-
Michal Čihař
13+
.. only:: not gettext
14+
15+
Michal Čihař

docs/changes/contributors/5.7.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, João Ferreira, Paul Harriet Asiñero, gers, Benjamin Alan Jamie, John R. D'Orazio, Tobias Schlatter, Max Wittig, Mehdi Eloualy, michael-smt, Jochen Sprickerhof, Vincent, Dwayne Bailey, Bastien Montagne
3+
.. only:: not gettext
4+
5+
Michal Čihař, João Ferreira, Paul Harriet Asiñero, gers, Benjamin Alan Jamie, John R. D'Orazio, Tobias Schlatter, Max Wittig, Mehdi Eloualy, michael-smt, Jochen Sprickerhof, Vincent, Dwayne Bailey, Bastien Montagne
46

57
Translations contributions
6-
Jose Delvani, Julija Juli, Andi Chandler, pan93412, Milo Ivir, gallegonovato, ngocanhtve, kapatych, Marco Ciampa, Balázs Úr, Artemka, Ricky From Hong Kong, Massimo Pissarello, dreigiau, Ihor Hordiichuk, Allan Nordhøy, Selyan Sliman Amiri, iwonder, Besnik Bleta, Nathan, yangyangdaji, Priit Jõerüüt, Aindriú Mac Giolla Eoin, Diego Beraldin, Marino Díaz, پرویز قادر, Horus68, ssantos, M. D. Kulkarni (MDK), Miguel A. Bouzada, A. Bento, mpt.c, ovl-1, Fjuro, Luna, Antônio Breno, alefsanderribeiro, Alefsander Ribeiro Nascimento, Ian Perdiansah, amano, Petter Reinholdtsen, Malik Shoaib, Emin Tufan Çetin, John kh, Сергей, tygyh, Semih, Balázs Meskó, Martin Najemi, Yaron Shahrabani, Rhoslyn Prys
8+
.. only:: not gettext
9+
10+
Jose Delvani, Julija Juli, Andi Chandler, pan93412, Milo Ivir, gallegonovato, ngocanhtve, kapatych, Marco Ciampa, Balázs Úr, Artemka, Ricky From Hong Kong, Massimo Pissarello, dreigiau, Ihor Hordiichuk, Allan Nordhøy, Selyan Sliman Amiri, iwonder, Besnik Bleta, Nathan, yangyangdaji, Priit Jõerüüt, Aindriú Mac Giolla Eoin, Diego Beraldin, Marino Díaz, پرویز قادر, Horus68, ssantos, M. D. Kulkarni (MDK), Miguel A. Bouzada, A. Bento, mpt.c, ovl-1, Fjuro, Luna, Antônio Breno, alefsanderribeiro, Alefsander Ribeiro Nascimento, Ian Perdiansah, amano, Petter Reinholdtsen, Malik Shoaib, Emin Tufan Çetin, John kh, Сергей, tygyh, Semih, Balázs Meskó, Martin Najemi, Yaron Shahrabani, Rhoslyn Prys
711

812
Documentation contributions
9-
Michal Čihař, Benjamin Alan Jamie, Paul Harriet Asiñero, Allan Nordhøy, Max Wittig, Mehdi Eloualy, Vincent, LE MEILLAT, gers, lotigara
13+
.. only:: not gettext
14+
15+
Michal Čihař, Benjamin Alan Jamie, Paul Harriet Asiñero, Allan Nordhøy, Max Wittig, Mehdi Eloualy, Vincent, LE MEILLAT, gers, lotigara

docs/changes/contributors/5.8.1.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
Code contributions
3-
Michal Čihař
3+
.. only:: not gettext
4+
5+
Michal Čihař
46

57
Documentation contributions
6-
Michal Čihař
8+
.. only:: not gettext
9+
10+
Michal Čihař

docs/changes/contributors/5.8.2.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, Paul Harriet Asiñero, michael-smt, gers, Mehdi El Oualy
3+
.. only:: not gettext
4+
5+
Michal Čihař, Paul Harriet Asiñero, michael-smt, gers, Mehdi El Oualy
46

57
Translations contributions
6-
VfBFan, 大王叫我来巡山, Любомир Василев, Miguel A. Bouzada, Besnik Bleta, Yuri Chornoivan, Wuzzy, Michal Čihař, gallegonovato, Vin, Blueberry, befag74614, Agnieszka C, Rhoslyn Prys, Aindriú Mac Giolla Eoin, Fulup Jakez, Christian Wia, ssantos, Vlăduț Ilie, Fjuro, amano, Andi Chandler, Peter Vančo, test-session, famese, Yaron Shahrabani, Geert-Jan Knapen, Ricky From Hong Kong, Tymofii Lytvynenko, Dick Groskamp, Horus68, Reno Tx, Jim Kats, Massimo Pissarello, Florent, Ihor Hordiichuk, hugoalh, Vaclovas Intas, Milo Ivir, Jim Spentzos, Dženan, Claudio Filho F Filho, 大学没毕业, پرویز قادر
8+
.. only:: not gettext
9+
10+
VfBFan, 大王叫我来巡山, Любомир Василев, Miguel A. Bouzada, Besnik Bleta, Yuri Chornoivan, Wuzzy, Michal Čihař, gallegonovato, Vin, Blueberry, befag74614, Agnieszka C, Rhoslyn Prys, Aindriú Mac Giolla Eoin, Fulup Jakez, Christian Wia, ssantos, Vlăduț Ilie, Fjuro, amano, Andi Chandler, Peter Vančo, test-session, famese, Yaron Shahrabani, Geert-Jan Knapen, Ricky From Hong Kong, Tymofii Lytvynenko, Dick Groskamp, Horus68, Reno Tx, Jim Kats, Massimo Pissarello, Florent, Ihor Hordiichuk, hugoalh, Vaclovas Intas, Milo Ivir, Jim Spentzos, Dženan, Claudio Filho F Filho, 大学没毕业, پرویز قادر
711

812
Documentation contributions
9-
Michal Čihař, Benjamin Alan Jamie, gers, gersona
13+
.. only:: not gettext
14+
15+
Michal Čihař, Benjamin Alan Jamie, gers, gersona

docs/changes/contributors/5.8.3.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
Code contributions
3-
Michal Čihař, Mehdi El Oualy
3+
.. only:: not gettext
4+
5+
Michal Čihař, Mehdi El Oualy
46

57
Documentation contributions
6-
Michal Čihař
8+
.. only:: not gettext
9+
10+
Michal Čihař

docs/changes/contributors/5.8.4.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
Code contributions
3-
Michal Čihař, gersona, Mehdi El Oualy
3+
.. only:: not gettext
4+
5+
Michal Čihař, gersona, Mehdi El Oualy
46

57
Documentation contributions
6-
Michal Čihař
8+
.. only:: not gettext
9+
10+
Michal Čihař

docs/changes/contributors/5.8.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, Mehdi Eloualy, Mehdi El Oualy, gers, michael-smt, ButterflyOfFire, Saurmanđal, Paul Harriet Asiñero, Ingo Brückl, Vincent, Jakub Boukal, nijel
3+
.. only:: not gettext
4+
5+
Michal Čihař, Mehdi Eloualy, Mehdi El Oualy, gers, michael-smt, ButterflyOfFire, Saurmanđal, Paul Harriet Asiñero, Ingo Brückl, Vincent, Jakub Boukal, nijel
46

57
Translations contributions
6-
gallegonovato, Jose Delvani, Andi Chandler, Massimo Pissarello, Christian Wia, Kaya Zeren, Muhammad B Madara, Assem Askarova, pan93412, Reno Tx, Sagiri, symegac, Allan Nordhøy, VfBFan, Peter Vančo, Yaron Shahrabani, Dick Groskamp, Besnik Bleta, Masahiro Fujimoto, Kyotaro Iijima, ButterflyOfFire, Michal Čihař, پرویز قادر, amano, Mirka Danylenko, Yuri Chornoivan, Milo Ivir, Blueberry, Julien Humbert, JY3, Ricky Tigg, Hotripak, Vin, Fjuro, 大王叫我来巡山, Miguel A. Bouzada, Любомир Василев, Aindriú Mac Giolla Eoin, Coool (github.com/Coool), Ihor Hordiichuk, Martin Srebotnjak, Сергей, jonnysemon, Wuzzy, Ldm Public, Nived, Hoseok Seo, Tuomas Hietala, Andrey, solokot, Agnieszka C, Luna, Alan Marques, ssantos, Yamin Siahmargooei, Vaclovas Intas, Linerly, Victor K, Rhoslyn Prys, Iker García Calviño, Milan Šalka, Justin Nogossek, Floure, Eduardo Malaspina, Oğuz Ersen, Priit Jõerüüt, Jeff Huang
8+
.. only:: not gettext
9+
10+
gallegonovato, Jose Delvani, Andi Chandler, Massimo Pissarello, Christian Wia, Kaya Zeren, Muhammad B Madara, Assem Askarova, pan93412, Reno Tx, Sagiri, symegac, Allan Nordhøy, VfBFan, Peter Vančo, Yaron Shahrabani, Dick Groskamp, Besnik Bleta, Masahiro Fujimoto, Kyotaro Iijima, ButterflyOfFire, Michal Čihař, پرویز قادر, amano, Mirka Danylenko, Yuri Chornoivan, Milo Ivir, Blueberry, Julien Humbert, JY3, Ricky Tigg, Hotripak, Vin, Fjuro, 大王叫我来巡山, Miguel A. Bouzada, Любомир Василев, Aindriú Mac Giolla Eoin, Coool (github.com/Coool), Ihor Hordiichuk, Martin Srebotnjak, Сергей, jonnysemon, Wuzzy, Ldm Public, Nived, Hoseok Seo, Tuomas Hietala, Andrey, solokot, Agnieszka C, Luna, Alan Marques, ssantos, Yamin Siahmargooei, Vaclovas Intas, Linerly, Victor K, Rhoslyn Prys, Iker García Calviño, Milan Šalka, Justin Nogossek, Floure, Eduardo Malaspina, Oğuz Ersen, Priit Jõerüüt, Jeff Huang
711

812
Documentation contributions
9-
Michal Čihař, gers, Jorge, michael-smt, Mehdi Eloualy, Paul Harriet Asiñero, Ingo Brückl, Mehdi El Oualy
13+
.. only:: not gettext
14+
15+
Michal Čihař, gers, Jorge, michael-smt, Mehdi Eloualy, Paul Harriet Asiñero, Ingo Brückl, Mehdi El Oualy

docs/changes/contributors/5.9.1.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
Code contributions
3-
Michal Čihař
3+
.. only:: not gettext
4+
5+
Michal Čihař
46

57
Documentation contributions
6-
Michal Čihař
8+
.. only:: not gettext
9+
10+
Michal Čihař

docs/changes/contributors/5.9.2.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
Code contributions
3-
Michal Čihař, Gersona
3+
.. only:: not gettext
4+
5+
Michal Čihař, Gersona
46

57
Translations contributions
6-
Horus68, Peter Vančo, cat, Rafael Fontenelle, Blueberry, Christian Wia, 大学没毕业, Yılmaz Durmaz, gallegonovato, Miguel A. Bouzada, VfBFan, Michal Čihař, Максим Горпиніч, Besnik Bleta, Aindriú Mac Giolla Eoin, Yaron Shahrabani, Fjuro, 大王叫我来巡山, Massimo Pissarello, Любомир Василев
8+
.. only:: not gettext
9+
10+
Horus68, Peter Vančo, cat, Rafael Fontenelle, Blueberry, Christian Wia, 大学没毕业, Yılmaz Durmaz, gallegonovato, Miguel A. Bouzada, VfBFan, Michal Čihař, Максим Горпиніч, Besnik Bleta, Aindriú Mac Giolla Eoin, Yaron Shahrabani, Fjuro, 大王叫我来巡山, Massimo Pissarello, Любомир Василев
711

812
Documentation contributions
9-
Michal Čihař, Rafael Fontenelle
13+
.. only:: not gettext
14+
15+
Michal Čihař, Rafael Fontenelle

docs/changes/contributors/5.9.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
21
Code contributions
3-
Michal Čihař, Mehdi El Oualy, Paul Harriet Asiñero, Yusi Z, Mehdi Eloualy, gers, nijel, michael-smt, gersona, Gersona
2+
.. only:: not gettext
3+
4+
Michal Čihař, Mehdi El Oualy, Paul Harriet Asiñero, Yusi Z, Mehdi Eloualy, gers, nijel, michael-smt, gersona, Gersona
45

56
Translations contributions
6-
Michal Čihař, Besnik Bleta, gallegonovato, Blueberry, cat, Fjuro, Sketch6580, Massimo Pissarello, Linerly, 大王叫我来巡山, 大学没毕业, Yuri Chornoivan, VfBFan, JY3, Miguel A. Bouzada, Dick Groskamp, Aindriú Mac Giolla Eoin, Andi Chandler, Kristoffer Grundström, Christian Wia, Claudio Filho F Filho, Yaron Shahrabani, Milo Ivir, Kaya Zeren, Neaten “Awrawman” Awrawman, Agnieszka C, Jeff Huang, Fulup Jakez, Milan Šalka, nautilusx, Любомир Василев, notlin4, immeteor2, kowih83264, WaldiS, ssantos, Reno Tx, Johan Jacobsson, Peter Vančo, Sveinn í Felli, Oliver, Yvan Zo, meshari alnaim, தமிழ்நேரம், searinminecraft, Jwtiyar Nariman, gitelo4516, Vision, Chang-Chia Tseng, Kyotaro Iijima, Ricky Tigg, ei9, Martin Srebotnjak, Horus68, 이정희, Максим Горпиніч, Sylvain Pichon, Ldm Public, Слободан Симић(Slobodan Simić), Priit Jõerüüt, Hugo, UTUMI Hirosi, Сергей, symegac, Winston Sung, ChinskiKaczynski, Rafael Fontenelle
7+
.. only:: not gettext
8+
9+
Michal Čihař, Besnik Bleta, gallegonovato, Blueberry, cat, Fjuro, Sketch6580, Massimo Pissarello, Linerly, 大王叫我来巡山, 大学没毕业, Yuri Chornoivan, VfBFan, JY3, Miguel A. Bouzada, Dick Groskamp, Aindriú Mac Giolla Eoin, Andi Chandler, Kristoffer Grundström, Christian Wia, Claudio Filho F Filho, Yaron Shahrabani, Milo Ivir, Kaya Zeren, Neaten “Awrawman” Awrawman, Agnieszka C, Jeff Huang, Fulup Jakez, Milan Šalka, nautilusx, Любомир Василев, notlin4, immeteor2, kowih83264, WaldiS, ssantos, Reno Tx, Johan Jacobsson, Peter Vančo, Sveinn í Felli, Oliver, Yvan Zo, meshari alnaim, தமிழ்நேரம், searinminecraft, Jwtiyar Nariman, gitelo4516, Vision, Chang-Chia Tseng, Kyotaro Iijima, Ricky Tigg, ei9, Martin Srebotnjak, Horus68, 이정희, Максим Горпиніч, Sylvain Pichon, Ldm Public, Слободан Симић(Slobodan Simić), Priit Jõerüüt, Hugo, UTUMI Hirosi, Сергей, symegac, Winston Sung, ChinskiKaczynski, Rafael Fontenelle
710

811
Documentation contributions
9-
Michal Čihař, Paul Harriet Asiñero, gers, michael-smt, Benjamin Alan Jamie, Gersona, Mehdi Eloualy
12+
.. only:: not gettext
13+
14+
Michal Čihař, Paul Harriet Asiñero, gers, michael-smt, Benjamin Alan Jamie, Gersona, Mehdi Eloualy

docs/conf.py

+11
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
import sys
1919
from pathlib import Path
2020

21+
import sphinx.builders.gettext
2122
from matplotlib import font_manager
23+
from sphinx.util.tags import Tags
2224

2325
# -- Path setup --------------------------------------------------------------
2426

@@ -35,7 +37,16 @@
3537
sys.path.append(str(weblate_dir))
3638

3739

40+
class WeblateTags(Tags):
41+
def eval_condition(self, condition):
42+
# Exclude blocks marked as not gettext
43+
return condition != "not gettext"
44+
45+
3846
def setup(app) -> None:
47+
# Monkey path gettext build tags handling, this is workaround until
48+
# https://github.com/sphinx-doc/sphinx/issues/13307 is addressed.
49+
sphinx.builders.gettext.I18nTags = WeblateTags
3950
# Used in Sphinx docs, needed for intersphinx links to it
4051
app.add_object_type(
4152
"confval",

scripts/list-contributors

+9-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ CATEGORIES: dict[CategoryType, str] = {
2626
}
2727
TEMPLATE = """
2828
{label}
29-
{contributors}"""
29+
.. only:: not gettext
30+
31+
{contributors}"""
3032

3133

3234
def get_file_category(filename: str) -> CategoryType:
@@ -56,7 +58,12 @@ def get_contributors() -> dict[CategoryType, list[str]]:
5658
previous = recent_tag.object.object
5759
for commit in reversed(commits):
5860
author = str(commit.author)
59-
if "[bot]" not in author and "add-on" not in author and author != "Anonymous":
61+
if (
62+
"(bot)" not in author
63+
and "[bot]" not in author
64+
and "add-on" not in author
65+
and author != "Anonymous"
66+
):
6067
diff = previous.diff(commit.tree)
6168
for category in get_diff_categories(diff):
6269
if author not in contributors[category]:

0 commit comments

Comments
 (0)