Skip to content

Translation Update 3.12 #168

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

Merged
merged 5 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Welcome 2024!
Update Doc

Use Doc's requirements
  • Loading branch information
egeakman committed Jan 1, 2024
commit 437f07e5869f77795968b825daea858e998db5cc
19 changes: 5 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
name: Tests
on:
workflow_dispatch:
push:
branches:
- "**"
pull_request:
branches:
- "**"
on: [push, pull_request, workflow_dispatch]

jobs:
checks:
Expand All @@ -28,15 +21,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: "3.12-dev"
python-version: "3.12"
- name: Install ${{ matrix.tool.package }}
run: |
if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then
sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
fi
if [ -n "${{ matrix.tool.package }}" ]; then
python -m pip install --upgrade pip setuptools wheel
python -m pip install ${{ matrix.tool.package }}
pip install ${{ matrix.tool.package }}
fi
- name: Run ${{ matrix.tool.package }}
env:
Expand All @@ -62,13 +54,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12-dev"
python-version: "3.12"
- name: Prepare environment
run: |
pwd
tree -L 2
git clone https://github.com/python/cpython.git venv/cpython/
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt -r venv/cpython/Doc/requirements.txt
pip install -r venv/cpython/Doc/requirements.txt
- name: Make
run: make
13 changes: 3 additions & 10 deletions .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
name: pre-commit-ci
on:
workflow_dispatch:
push:
branches:
- "**"
pull_request:
branches:
- "**"
on: [push, pull_request, workflow_dispatch]

jobs:
pre-commit:
Expand All @@ -17,11 +10,11 @@ jobs:
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: "3.12-dev"
python-version: "3.12"
cache: pip

- name: Install pre-commit
run: pip install --upgrade -r requirements.txt
run: pip install pre-commit

- name: Cache pre-commit tools
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/translate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Set Up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12-dev"
python-version: "3.12"

- name: Install dependencies
run: pip install -r requirements.txt && sudo apt update && sudo apt install gettext -y
run: pip install polib deep_translator && sudo apt update && sudo apt install gettext -y

- name: Run translate.py
run: python scripts/translate.py ${{ github.event.inputs.file }} -t google -s
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: Set Up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12-dev"
python-version: "3.12"

- name: Install dependencies
run: pip install -r requirements.txt && sudo apt install gettext -y
run: pip install tqdm poutils -r venv/cpython/Doc/requirements.txt && sudo apt install gettext -y

- name: Run merge.py
run: python merge.py ${GITHUB_REF##*/}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/wrap_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ jobs:
- name: Set Up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12-dev"

# Upgrade pip
- name: Upgrade pip
run: python -m pip install --upgrade pip
python-version: "3.12"

# Install dependencies
- name: Install dependencies
run: python -m pip install --upgrade -r requirements.txt && sudo apt install -y gettext
run: pip install poutils && sudo apt install -y gettext

# Wrap all po files
- name: Wrap
Expand Down
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ build:

commands:
- git clone https://github.com/python/cpython.git venv/cpython/
- python -m pip install --upgrade pip setuptools wheel
- python -m pip install --upgrade -r requirements.txt -r venv/cpython/Doc/requirements.txt
- python -m pip install -r venv/cpython/Doc/requirements.txt
- make
- mkdir -p _readthedocs/html/
- cp -r venv/cpython/Doc/build/html/* _readthedocs/html/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ensure_prerequisites: venv/cpython/.git/HEAD
git -C venv/cpython/ checkout $(BRANCH); \
echo "You're missing dependencies please install:"; \
echo ""; \
echo " python -m pip install -r requirements.txt -r venv/cpython/Doc/requirements.txt"; \
echo " python -m pip install -r venv/cpython/Doc/requirements.txt"; \
exit 1; \
fi

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Bu proje gönüllü çevirmenler ve python-docs-tr ekibi iş birliğinde sürdü
- Örneğin, ``library/functions.po`` dosyasını çevirmek istiyorsanız, ``library-functions`` adında bir branch oluşturun.
- ``git checkout -b library-functions``
4. Gerekli paketleri yükleyin.
- ``python -m pip install --upgrade -r requirements.txt``
- ``python -m pip install --upgrade -r requirements-dev.txt``
5. Syntax hatalarını commit öncesi otomatik kontrol eden ``pre-commit`` 'i kurun.
- ``pre-commit install``

Expand Down
13 changes: 7 additions & 6 deletions about.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
msgid ""
Expand All @@ -19,7 +19,7 @@ msgstr ""

#: about.rst:3
msgid "About these documents"
msgstr "Dokümanlar hakkında"
msgstr "Bu dokümanlar hakkında"

#: about.rst:6
msgid ""
Expand Down Expand Up @@ -81,13 +81,14 @@ msgid ""
"Python source distribution for a partial list of contributors."
msgstr ""
"Birçok kişi Python diline, Python standart kütüphanesine ve Python "
"belgelerine katkıda bulunmuştur. Katkıda bulunanların kısmi listesi için "
"Python kaynak dağıtımında :source:`Misc/ACKS` adresine bakın."
"dokümantasyonuna katkıda bulunmuştur. Katkıda bulunanların kısmi bir "
"listesi için Python kaynak dağıtımında :source:`Misc/ACKS` dosyasına "
"bakın."

#: about.rst:37
msgid ""
"It is only with the input and contributions of the Python community that "
"Python has such wonderful documentation -- Thank You!"
msgstr ""
"Python topluluğunun girdileri ve katkılarıyla Python böyle harika bir "
"dokümantasyona sahip -- Teşekkürler!"
"Python topluluğunun girdileri ve katkıları sayesinde böyle harika bir "
"dokümantasyona sahibiz -- Teşekkürler!"
2 changes: 1 addition & 1 deletion bugs.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
msgid ""
Expand Down
2 changes: 1 addition & 1 deletion c-api/abstract.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/allocation.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/apiabiversion.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/arg.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/bool.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/buffer.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/bytearray.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/bytes.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/call.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/capsule.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/cell.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/code.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/codec.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/complex.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/concrete.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/contextvars.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/conversion.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/coro.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/datetime.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/descriptor.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/dict.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/exceptions.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/file.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/float.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/frame.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/function.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/gcsupport.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/gen.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/import.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
#, fuzzy
Expand Down
2 changes: 1 addition & 1 deletion c-api/index.po
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python Documentation Turkish Translation
# Copyright (C) 2001-2023, Python Software Foundation
# Copyright (C) 2001-2024, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
msgid ""
Expand Down
Loading