Skip to content
  • Sponsor python/python-docs-tr

  • Notifications You must be signed in to change notification settings
  • Fork 43
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit af00b03

Browse files
authoredApr 3, 2022
Merge branch '3.10' into library/stdtypes
2 parents ad73984 + 2c6caba commit af00b03

13 files changed

+652
-296
lines changed
 

‎.github/workflows/wrap_branch.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Wrap all po files in branch"
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
wrap:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
# Run in all these versions of Python
12+
python-version: ["3.10"]
13+
14+
steps:
15+
# Checkout the latest code from the repo
16+
- name: Checkout repo
17+
uses: actions/checkout@v2
18+
19+
# Setup which version of Python to use
20+
- name: Set Up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
# Display the Python version being used
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
29+
# Update pip
30+
- name: Update pip
31+
run: python -m pip install --upgrade pip
32+
33+
# Install requirements.
34+
- name: Install requirements
35+
run: python -m pip install --upgrade -r requirements.txt
36+
37+
# Install dependencies
38+
- name: Install dependencies
39+
run: sudo apt install gettext
40+
41+
# Wrap all po files
42+
- name: Wrap
43+
run: powrap *.po **/*.po
44+
45+
# Detect changed files
46+
- name: Detect changed files
47+
run: echo "WRAPPED=$(git diff --name-only | tr '\n' ' ')" >> $GITHUB_ENV
48+
49+
# Commit changes
50+
- name: Commit changes
51+
run: |
52+
array=($WRAPPED)
53+
len=${#array[@]}
54+
if [[ $len -eq 0 ]]; then
55+
echo "No files to commit"
56+
echo "WRAPPED=False" >> $GITHUB_ENV
57+
else
58+
echo "Committing changes"
59+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
60+
git config --local user.name "github-actions[bot]"
61+
git add ${WRAPPED}
62+
git commit -m "Wrap translations"
63+
echo "WRAPPED=True" >> $GITHUB_ENV
64+
fi
65+
# Push changes
66+
- name: Push changes
67+
if: env.WRAPPED == 'True'
68+
uses: ad-m/github-push-action@master
69+
with:
70+
github_token: ${{ secrets.GITHUB_TOKEN }}
71+
branch: ${{ github.ref_name }}

‎.github/workflows/wrap.yml renamed to ‎.github/workflows/wrap_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Wrap"
1+
name: "Wrap changed files in pull requests"
22

33
on:
44
pull_request:
@@ -90,4 +90,4 @@ jobs:
9090
uses: ad-m/github-push-action@master
9191
with:
9292
github_token: ${{ secrets.GITHUB_TOKEN }}
93-
branch: ${{ github.event.pull_request.head.ref }}
93+
branch: ${{ github.event.pull_request.head.ref }}

‎copyright.po

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ msgstr ""
4646
msgid ""
4747
"Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved."
4848
msgstr ""
49-
"Telif Hakkı © 1991-1995 Stichting Mathematisch Centrum. Tüm hakları "
50-
"saklıdır."
49+
"Telif Hakkı © 1991-1995 Stichting Mathematisch Centrum. Tüm hakları saklıdır."
5150

5251
#: copyright.rst:18
5352
msgid ""
5453
"See :ref:`history-and-license` for complete license and permissions "
5554
"information."
56-
msgstr ""
57-
"Tam lisans ve izin bilgileri için :ref:`geçmiş ve lisans` 'a göz atın."
55+
msgstr "Tam lisans ve izin bilgileri için :ref:`geçmiş ve lisans` 'a göz atın."
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.