Skip to content

Commit

Permalink
Translation Update 3.12 (python#168)
Browse files Browse the repository at this point in the history
Co-authored-by: egeakman <[email protected]>
  • Loading branch information
python-docs-turkish and egeakman authored Jan 4, 2024
1 parent d1f9510 commit f02f8bf
Show file tree
Hide file tree
Showing 491 changed files with 13,625 additions and 13,030 deletions.
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
14 changes: 3 additions & 11 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,10 @@ jobs:
- uses: actions/setup-python@v5
id: setup_python
with:
python-version: "3.12-dev"
cache: pip
python-version: "3.12"

- 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/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# test build, we're building with the .rst files that generated our
# .po files.

CPYTHON_CURRENT_COMMIT := 4f919cf8b9ed07964e8b7b87a5a3e25b09b1ed9e
CPYTHON_CURRENT_COMMIT := d3f2051eec6039811ae42e4382e8b292a983edc1
LANGUAGE := tr
BRANCH := 3.12

Expand Down 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
14 changes: 7 additions & 7 deletions about.po
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 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 ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-04 18:33+0000\n"
"POT-Creation-Date: 2024-01-04 03:14+0300\n"
"PO-Revision-Date: 2022-12-28 16:16-0500\n"
"Last-Translator: \n"
"Language-Team: TURKISH <[email protected]>\n"
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,13 @@ 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
18 changes: 9 additions & 9 deletions c-api/bytes.po
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-18 22:33+0300\n"
"POT-Creation-Date: 2024-01-01 00:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: \n"
"Language-Team: TURKISH <[email protected]>\n"
Expand Down Expand Up @@ -269,17 +269,17 @@ msgstr ""
#: c-api/bytes.rst:156
msgid ""
"Return the null-terminated contents of the object *obj* through the output "
"variables *buffer* and *length*."
"variables *buffer* and *length*. Returns ``0`` on success."
msgstr ""

#: c-api/bytes.rst:159
#: c-api/bytes.rst:160
msgid ""
"If *length* is ``NULL``, the bytes object may not contain embedded null "
"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
"raised."
msgstr ""

#: c-api/bytes.rst:163
#: c-api/bytes.rst:164
msgid ""
"The buffer refers to an internal buffer of *obj*, which includes an "
"additional null byte at the end (not counted in *length*). The data must "
Expand All @@ -289,13 +289,13 @@ msgid ""
"returns ``-1`` and raises :exc:`TypeError`."
msgstr ""

#: c-api/bytes.rst:170
#: c-api/bytes.rst:171
msgid ""
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
"encountered in the bytes object."
msgstr ""

#: c-api/bytes.rst:177
#: c-api/bytes.rst:178
msgid ""
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
"appended to *bytes*; the caller will own the new reference. The reference "
Expand All @@ -304,14 +304,14 @@ msgid ""
"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be set."
msgstr ""

#: c-api/bytes.rst:186
#: c-api/bytes.rst:187
msgid ""
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
"appended to *bytes*. This version releases the :term:`strong reference` to "
"*newpart* (i.e. decrements its reference count)."
msgstr ""

#: c-api/bytes.rst:193
#: c-api/bytes.rst:194
msgid ""
"A way to resize a bytes object even though it is \"immutable\". Only use "
"this to build up a brand new bytes object; don't use this if the bytes may "
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
Loading

0 comments on commit f02f8bf

Please sign in to comment.