Skip to content

Commit c42ee47

Browse files
authored
Add a pre-commit hook that remove PO files metadata. (#1813)
See thread in #1801 – automatic update from transifex-integration bot have random changes in metadata content and order that are just noise. With this the bot should do the PR and pre-commit-ci should hopefully push a second commit that remove all churn in metadata.
1 parent 5e3eb40 commit c42ee47

File tree

7 files changed

+5
-81
lines changed

7 files changed

+5
-81
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@ repos:
5252
rev: "0.7.1"
5353
hooks:
5454
- id: nbstripout
55+
56+
- repo: https://github.com/mondeja/pre-commit-po-hooks
57+
rev: v1.7.3
58+
hooks:
59+
- id: remove-metadata

src/pydata_sphinx_theme/locale/ca/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@
88
# Cristhian Rivera, 2024
99
msgid ""
1010
msgstr ""
11-
"Project-Id-Version: PROJECT VERSION\n"
12-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
13-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
14-
"PO-Revision-Date: 2023-04-14 14:57+0000\n"
15-
"Last-Translator: Cristhian Rivera, 2024\n"
16-
"Language: ca\n"
17-
"Language-Team: Catalan "
18-
"(https://app.transifex.com/12rambau/teams/166811/ca/)\n"
19-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
20-
"MIME-Version: 1.0\n"
21-
"Content-Type: text/plain; charset=utf-8\n"
22-
"Content-Transfer-Encoding: 8bit\n"
23-
"Generated-By: Babel 2.13.0\n"
2411

2512
#: docs/conf.py:94
2613
msgid "Click to expand"
@@ -179,4 +166,3 @@ msgstr "Navegació del lloc"
179166

180167
#~ msgid "Twitter"
181168
#~ msgstr "Twitter"
182-

src/pydata_sphinx_theme/locale/cs/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,6 @@
77
# Jan Breuer <[email protected]>, 2024
88
msgid ""
99
msgstr ""
10-
"Project-Id-Version: PROJECT VERSION\n"
11-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
13-
"PO-Revision-Date: 2023-04-14 14:57+0000\n"
14-
"Last-Translator: Jan Breuer <[email protected]>, 2024\n"
15-
"Language: cs\n"
16-
"Language-Team: Czech "
17-
"(https://app.transifex.com/12rambau/teams/166811/cs/)\n"
18-
"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && "
19-
"n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"
20-
"MIME-Version: 1.0\n"
21-
"Content-Type: text/plain; charset=utf-8\n"
22-
"Content-Transfer-Encoding: 8bit\n"
23-
"Generated-By: Babel 2.13.0\n"
2410

2511
#: docs/conf.py:94
2612
msgid "Click to expand"

src/pydata_sphinx_theme/locale/en/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@
55
#
66
msgid ""
77
msgstr ""
8-
"Project-Id-Version: PROJECT VERSION\n"
9-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
10-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
11-
"PO-Revision-Date: 2023-02-16 13:19-0500\n"
12-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13-
"Language: en\n"
14-
"Language-Team: en <[email protected]>\n"
15-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
16-
"MIME-Version: 1.0\n"
17-
"Content-Type: text/plain; charset=utf-8\n"
18-
"Content-Transfer-Encoding: 8bit\n"
19-
"Generated-By: Babel 2.13.0\n"
208

219
#: docs/conf.py:94
2210
msgid "Click to expand"

src/pydata_sphinx_theme/locale/es/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@
88
# Cristhian Rivera, 2024
99
msgid ""
1010
msgstr ""
11-
"Project-Id-Version: PROJECT VERSION\n"
12-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
13-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
14-
"PO-Revision-Date: 2023-04-14 14:57+0000\n"
15-
"Last-Translator: Cristhian Rivera, 2024\n"
16-
"Language: es\n"
17-
"Language-Team: Spanish "
18-
"(https://app.transifex.com/12rambau/teams/166811/es/)\n"
19-
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 "
20-
"? 1 : 2;\n"
21-
"MIME-Version: 1.0\n"
22-
"Content-Type: text/plain; charset=utf-8\n"
23-
"Content-Transfer-Encoding: 8bit\n"
24-
"Generated-By: Babel 2.13.0\n"
2511

2612
#: docs/conf.py:94
2713
msgid "Click to expand"

src/pydata_sphinx_theme/locale/fr/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99
#
1010
msgid ""
1111
msgstr ""
12-
"Project-Id-Version: PROJECT VERSION\n"
13-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
14-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
15-
"PO-Revision-Date: 2023-04-14 14:57+0000\n"
16-
"Last-Translator: Denis Bitouzé <[email protected]>, 2024\n"
17-
"Language-Team: French (https://app.transifex.com/12rambau/teams/166811/fr/)\n"
18-
"MIME-Version: 1.0\n"
19-
"Content-Type: text/plain; charset=UTF-8\n"
20-
"Content-Transfer-Encoding: 8bit\n"
21-
"Generated-By: Babel 2.13.0\n"
22-
"Language: fr\n"
23-
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
2412

2513
#: docs/conf.py:94
2614
msgid "Click to expand"

src/pydata_sphinx_theme/locale/ru/LC_MESSAGES/sphinx.po

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@
77
# Rambaud Pierrick <[email protected]>, 2023
88
msgid ""
99
msgstr ""
10-
"Project-Id-Version: PROJECT VERSION\n"
11-
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
12-
"POT-Creation-Date: 2024-04-29 13:43+0200\n"
13-
"PO-Revision-Date: 2023-04-14 14:57+0000\n"
14-
"Last-Translator: Rambaud Pierrick <[email protected]>, 2023\n"
15-
"Language: ru\n"
16-
"Language-Team: Russian "
17-
"(https://app.transifex.com/12rambau/teams/166811/ru/)\n"
18-
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
19-
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) "
20-
"|| (n%100>=11 && n%100<=14)? 2 : 3);\n"
21-
"MIME-Version: 1.0\n"
22-
"Content-Type: text/plain; charset=utf-8\n"
23-
"Content-Transfer-Encoding: 8bit\n"
24-
"Generated-By: Babel 2.13.0\n"
2510

2611
#: docs/conf.py:94
2712
msgid "Click to expand"

0 commit comments

Comments
 (0)