Skip to content

Commit 9a05532

Browse files
authored
Switch to single translation file. (#8)
Includes an update to stub translations.
1 parent 0701c48 commit 9a05532

File tree

138 files changed

+37939
-38609
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+37939
-38609
lines changed

.github/workflows/translate.yml

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,63 @@ jobs:
4949
git config --local user.email "$(git log --pretty='%ae' -1)"
5050
git config --local user.name "brutusthebee[bot]"
5151
52-
- name: Regenerate PO files
53-
run: |
54-
tox -e docs-translate
52+
# Temporary disabled until we're fully registered with Weblate.
53+
# - name: Regenerate PO files
54+
# env:
55+
# DEEPL_API_KEY: ${{ secrets.DEEPL_API_KEY }}
56+
# run: |
57+
# tox -e docs-translate
5558

56-
- name: Update Needed?
57-
id: updated
58-
run: |
59-
if [[ $(git status --porcelain) ]]; then
60-
echo "updated=true" >> ${GITHUB_OUTPUT}
61-
else
62-
echo "updated=false" >> ${GITHUB_OUTPUT}
63-
fi
64-
65-
- name: Commit updated translations
66-
if: steps.updated.outputs.updated == 'true'
67-
env:
68-
GITHUB_TOKEN: ${{ github.token }}
69-
run: |
70-
# Commit the updated PO files.
71-
git add docs/locales
72-
git commit -m "Update translations to $(git rev-parse --short HEAD)."
73-
git push origin
59+
# - name: Configure Weblate
60+
# env:
61+
# WEBLATE_API_TOKEN: ${{ secrets.WEBLATE_API_TOKEN }}
62+
# run: |
63+
# cat <<EOF > ~/.weblate
64+
# [weblate]
65+
# url = https://hosted.weblate.org/api/
66+
# key = $WEBLATE_API_TOKEN
67+
# translation = beeware/tutorial
68+
# EOF
69+
70+
# - name: Lock Weblate and Sync
71+
# run: wlc lock
72+
# - name: Commit Weblate changes
73+
# run: wlc commit
74+
# - name: Push Weblate changes
75+
# run: wlc push
76+
# - name: Pull translation updates pushed by Weblate
77+
# run: git pull origin
78+
79+
# - name: Update Needed?
80+
# id: updated
81+
# run: |
82+
# if [[ $(git status --porcelain) ]]; then
83+
# echo "updated=true" >> ${GITHUB_OUTPUT}
84+
# else
85+
# echo "updated=false" >> ${GITHUB_OUTPUT}
86+
# fi
87+
88+
# - name: Commit updated translations
89+
# if: steps.updated.outputs.updated == 'true'
90+
# env:
91+
# GITHUB_TOKEN: ${{ github.token }}
92+
# run: |
93+
# # Commit the updated PO files.
94+
# git add docs/locales
95+
# git commit -m "Update translations to $(git rev-parse --short HEAD)."
96+
# git push origin
97+
98+
# - name: Ensure Weblate has current updates
99+
# if: steps.updated.outputs.updated == 'true'
100+
# run: wlc pull
101+
102+
# - name: Unlock Weblate
103+
# run: wlc unlock
104+
105+
# # This step is only needed if you're trying to diagnose test failures that
106+
# # only occur in CI, and can't be reproduced locally. When it runs, it will
107+
# # open an SSH server (URL reported in the logs) so you can ssh into the CI
108+
# # machine.
109+
# - name: Setup tmate session
110+
# uses: mxschmitt/action-tmate@v3
111+
# if: failure()

docs/en/SUMMARY.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
- [Tutorial 2 - Making it interesting](tutorial/tutorial-2.md)
44
- [Tutorial 3 - Packaging for distribution](tutorial/tutorial-3.md)
55
- [Tutorial 4 - Updating your application](tutorial/tutorial-4.md)
6-
- Tutorial 5 - Taking it Mobile
7-
- [Tutorial 5 - Taking it Mobile](tutorial/tutorial-5/index.md)
6+
- Tutorial 5 - Taking it mobile
7+
- [Tutorial 5 - Taking it mobile](tutorial/tutorial-5/index.md)
88
- [Tutorial 5 - Taking it mobile: Android](tutorial/tutorial-5/android.md)
99
- [Tutorial 5 - Taking it mobile: iOS](tutorial/tutorial-5/iOS.md)
1010
- [Tutorial 6 - Put it on the web!](tutorial/tutorial-6.md)
@@ -15,4 +15,6 @@
1515
- [Customizing icons](tutorial/topics/custom-icons.md)
1616
- [Using the camera](tutorial/topics/camera-access.md)
1717
- [Testing times](tutorial/topics/testing.md)
18-
- [Contributing to this tutorial](how-to/index.md)
18+
- How-to guides
19+
- [Contributing to this tutorial](how-to/contribute.md)
20+
- [Style guide](how-to/style-guide.md)
File renamed without changes.

docs/en/how-to/style-guide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-8<- "style_guide.md"

docs/locales/de/LC_MESSAGES/SUMMARY.po

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)