Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87dbfb9

Browse filesBrowse files
Clean up switcher progress tracking (#48)
* Clean up Language Switcher Progress * Update update-lint-and-build.yml --------- Co-authored-by: Maciej Olko <maciej.olko@gmail.com>
1 parent 5e4b11d commit 87dbfb9
Copy full SHA for 87dbfb9

File tree

Expand file treeCollapse file tree

6 files changed

+5
-1674
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+5
-1674
lines changed

‎.github/workflows/update-chart.yml

Copy file name to clipboardExpand all lines: .github/workflows/update-chart.yml
-23Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows/update-lint-and-build.yml

Copy file name to clipboardExpand all lines: .github/workflows/update-lint-and-build.yml
-15Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,9 @@ jobs:
4949
# Check for changes in README.md
5050
- run: >
5151
! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# Copyright (C) 2001-' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
52-
- run: >
53-
! git diff -G'\!\[[0-9]{2,3}\.[0-9]{2}% przełącznika języków\]' --exit-code README.md && echo "SWITCHER_PROGRESS=1" >> $GITHUB_ENV || exit 0
5452
- run: git add .
5553
- run: git commit -m 'Update translation from Transifex'
5654
if: env.SIGNIFICANT_CHANGES
57-
- run: pip install gitpython matplotlib
58-
if: env.SWITCHER_PROGRESS
59-
- run: python update_switcher_chart.py
60-
if: env.SWITCHER_PROGRESS
61-
- run: git add .
62-
if: env.SWITCHER_PROGRESS
63-
- run: git commit -m 'Update switcher progress chart'
64-
if: env.SWITCHER_PROGRESS
65-
- uses: ad-m/github-push-action@master
66-
if: env.SIGNIFICANT_CHANGES
67-
with:
68-
branch: ${{ matrix.version }}
69-
github_token: ${{ secrets.GITHUB_TOKEN }}
7055
- uses: peter-evans/repository-dispatch@main
7156
with:
7257
token: ${{ secrets.GITHUB_TOKEN }}

‎README.en.md

Copy file name to clipboardExpand all lines: README.en.md
+1-14Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ Polish Translation of Python Documentation
44
from manage_translation import get_resource_language_stats, progress_from_resources, language_switcher, get_number_of_translators
55
66
stats = get_resource_language_stats()
7-
switcher = progress_from_resources(filter(language_switcher, stats))
87
total = progress_from_resources(stats)
98
translators = get_number_of_translators()
109
1110
print(
1211
f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
13-
![{switcher:.2f}% Language Switcher](https://img.shields.io/badge/language_switcher-{switcher:.2f}%25-0.svg)
1412
![Total Translation of Documentation](https://img.shields.io/badge/Total-{total:.2f}%25-0.svg)
1513
![{translators} Translators](https://img.shields.io/badge/Translators-{translators}-0.svg)''')
1614
]]] -->
1715
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
18-
![100.00% Language Switcher](https://img.shields.io/badge/language_switcher-100.00%25-0.svg)
1916
![Total Translation of Documentation](https://img.shields.io/badge/Total-4.41%25-0.svg)
2017
![24 Translators](https://img.shields.io/badge/Translators-24-0.svg)
2118
<!-- [[[end]]] -->
@@ -32,17 +29,7 @@ If you find a mistake or have a suggestion,
3229
* After joining the Project, pick the category you want to fix/translate.
3330

3431
You can find more information about using Transifex
35-
[in their help guide.](https://help.transifex.com/en/articles/6318216-translating-with-the-web-editor).
36-
37-
**Translation Progress**
38-
39-
![translation progress till Polish is added to the language switcher](language-switcher-progress.svg)
40-
41-
The Polish language will appear in the language switcher in docs.python.org,
42-
[when these categories will be fully translated](https://www.python.org/dev/peps/pep-0545/#add-translation-to-the-language-switcher):
43-
* `bugs`,
44-
* Everything in the `tutorial` section,
45-
* `library/functions`.
32+
[in their help guide.](https://help.transifex.com/en/articles/6318216-translating-with-the-web-editor)
4633

4734
**How to see the newest build of the documentation?**
4835

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-17Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
Polskie tłumaczenie dokumentacji Pythona
22
========================================
33
<!-- [[[cog
4-
from manage_translation import get_resource_language_stats, progress_from_resources, language_switcher, get_number_of_translators
4+
from manage_translation import get_resource_language_stats, progress_from_resources, get_number_of_translators
55
66
stats = get_resource_language_stats()
7-
switcher = progress_from_resources(filter(language_switcher, stats))
87
total = progress_from_resources(stats)
98
translators = get_number_of_translators()
109
1110
print(
1211
f'''![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
13-
![{switcher:.2f}% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-{switcher:.2f}%25-0.svg)
1412
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-{total:.2f}%25-0.svg)
1513
![{translators} tłumaczy](https://img.shields.io/badge/tłumaczy-{translators}-0.svg)''')
1614
]]] -->
1715
![build](https://github.com/python/python-docs-pl/workflows/.github/workflows/update-lint-and-build.yml/badge.svg)
18-
![100.00% przełącznika języków](https://img.shields.io/badge/przełącznik_języków-100.00%25-0.svg)
1916
![postęp tłumaczenia całości dokumentacji](https://img.shields.io/badge/całość-4.41%25-0.svg)
2017
![24 tłumaczy](https://img.shields.io/badge/tłumaczy-24-0.svg)
2118
<!-- [[[end]]] -->
@@ -31,23 +28,11 @@ projektu [dokumentacji Pythona](https://explore.transifex.com/python-doc/python-
3128
* Naciśnij przycisk „Join this project”, aby dołączyć do projektu.
3229
* Utwórz konto Transifex.
3330
* Na stronie projektu wybierz język polski.
34-
* Po dołączeniu do zespołu, wybierz zasób, który chcesz poprawić/zaktualizować.
31+
* Po dołączeniu do zespołu wybierz zasób, który chcesz poprawić/zaktualizować.
3532

3633
Więcej informacji o używaniu Transifeksa znajdziesz w
3734
[jego artykułach pomocy](https://help.transifex.com/en/articles/6318216-translating-with-the-web-editor).
3835

39-
**Postęp tłumaczenia**
40-
41-
![postęp tłumaczenia do przełącznika języków](language-switcher-progress.svg)
42-
43-
Język polski pojawi się w przełączniku języków na docs.python.org,
44-
[kiedy w pełni przetłumaczone będą](https://www.python.org/dev/peps/pep-0545/#add-translation-to-the-language-switcher):
45-
* `bugs`,
46-
* wszystkie zasoby z katalogu `tutorial`,
47-
* `library/functions`.
48-
49-
[Kliknij tutaj, aby zobaczyć co pozostało do przetłumaczenia.](https://github.com/python/python-docs-pl/issues/3)
50-
5136
**Jak obejrzeć najnowszy build dokumentacji?**
5237

5338
Pobierz ostatnią zbudowaną dokumentację z listy artefaktów w ostatniej GitHub Action (zakładka Actions).

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.