Skip to content

Commit be580e7

Browse files
authored
Clean up translation files for build. (#12)
1 parent a8eb622 commit be580e7

File tree

10 files changed

+31
-28
lines changed

10 files changed

+31
-28
lines changed

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ version: 2
99
build:
1010
os: ubuntu-24.04
1111
tools:
12-
# Docs are always built on Python 3.13. See also the tox config.
13-
python: "3.13"
12+
# Docs are always built on Python 3.12. See also the tox config.
13+
python: "3.12"
1414
jobs:
1515
pre_install:
1616
- python -m pip install -r requirements.dev.txt

.rumdl.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ respect-gitignore = true
88
# MD014: Forces commands in codeblocks to show output
99
disable = ["MD014",]
1010

11+
[MD026] # Remove punctuation at the end of headings
12+
punctuation = ",;:"
13+
1114
[MD033] # No inline HTML
1215
allowed_elements = ["nospell",] # pyspelling inline disable tag
1316

docs/en/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Welcome to BeeWare! In this tutorial, we're going to build a graphical user inte
88

99
/// admonition | Translations are available
1010

11-
If you're not comfortable with English, translations of this tutorial are available in [Deutsch](https://docs.beeware.org/de), [Español](https://docs.beeware.org/es), [Français](https://docs.beeware.org/fr), [Italiano](https://docs.beeware.org/it), [Português](https://docs.beeware.org/pt), [中文(简体)](https://docs.beeware.org/zh-cn), and [中文(繁體)](https://docs.beeware.org/zh-tw).
11+
If you're not comfortable with English, translations of this tutorial are available in [Deutsch](https://tutorial.beeware.org/de), [Español](https://tutorial.beeware.org/es), [Français](https://tutorial.beeware.org/fr), [Italiano](https://tutorial.beeware.org/it), [Português](https://tutorial.beeware.org/pt), [中文(简体)](https://tutorial.beeware.org/zh-cn), and [中文(繁體)](https://tutorial.beeware.org/zh-tw).
1212

1313
///
1414

docs/en/tutorial/tutorial-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tutorial 0 - Let's get set up
1+
# Tutorial 0 - Let's get set up!
22

33
Before we build our first BeeWare app, we have to make sure we've got all the prerequisites for running BeeWare.
44

docs/en/tutorial/tutorial-6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tutorial 6 - Put it on the web
1+
# Tutorial 6 - Put it on the web!
22

33
In addition to supporting mobile platforms, the Toga widget toolkit also supports the web! Using the same API that you used to deploy your desktop and mobile applications, you can deploy your application as a single-page web app.
44

docs/locales/it/translations.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ msgstr "[Esercitazione 5 - Il mobile: iOS]{1}"
5959
#: docs/en/SUMMARY.md:10
6060
#, fuzzy
6161
msgid "[Tutorial 6 - Put it on the web!]{1}"
62-
msgstr "[Tutorial 6 - Mettetelo sul web!]{1}"
62+
msgstr "[Esercitazione 6 - Mettetelo sul web!]{1}"
6363

6464
#: docs/en/SUMMARY.md:11
6565
#, fuzzy
@@ -74,12 +74,12 @@ msgstr "[Esercitazione 8 - Renderlo liscio]{1}"
7474
#: docs/en/SUMMARY.md:13
7575
#: docs/en/tutorial/topics/index.md:1
7676
msgid "Going further"
77-
msgstr "Andare avanti"
77+
msgstr "Approfondimento"
7878

7979
#: docs/en/SUMMARY.md:13
8080
#, fuzzy
8181
msgid "[Going further]{1}"
82-
msgstr "[Approfondimento] {1}"
82+
msgstr "[Approfondimento]{1}"
8383

8484
#: docs/en/SUMMARY.md:13
8585
#: docs/en/tutorial/topics/index.md:5
@@ -91,7 +91,7 @@ msgstr "[Personalizzazione delle icone]{1}"
9191
#: docs/en/tutorial/topics/index.md:9
9292
#, fuzzy
9393
msgid "[Using the camera]{1}"
94-
msgstr "[Uso della fotocamera]{1}"
94+
msgstr "[Utilizzo della fotocamera]{1}"
9595

9696
#: docs/en/SUMMARY.md:13
9797
#: docs/en/tutorial/topics/index.md:13
@@ -1771,7 +1771,7 @@ msgstr ""
17711771

17721772
#: docs/en/tutorial/topics/testing.md:1
17731773
msgid "Testing times"
1774-
msgstr "Tempi di verifica"
1774+
msgstr "Tempi di prova"
17751775

17761776
#: docs/en/tutorial/topics/testing.md:3
17771777
#, fuzzy
@@ -1983,7 +1983,7 @@ msgstr ""
19831983

19841984
#: docs/en/tutorial/tutorial-0.md:1
19851985
#, fuzzy
1986-
msgid "Tutorial 0 - Let's get set up"
1986+
msgid "Tutorial 0 - Let's get set up!"
19871987
msgstr "Esercitazione 0 - Configuriamoci!"
19881988

19891989
#: docs/en/tutorial/tutorial-0.md:3
@@ -4609,8 +4609,8 @@ msgstr "le applicazioni iOS possono essere compilate solo su macOS."
46094609

46104610
#: docs/en/tutorial/tutorial-6.md:1
46114611
#, fuzzy
4612-
msgid "Tutorial 6 - Put it on the web"
4613-
msgstr "Tutorial 6 - Mettetelo sul web!"
4612+
msgid "Tutorial 6 - Put it on the web!"
4613+
msgstr "Esercitazione 6 - Mettetelo sul web!"
46144614

46154615
#: docs/en/tutorial/tutorial-6.md:3
46164616
#, fuzzy

docs/locales/pt/translations.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,7 @@ msgid ""
23772377
msgstr ""
23782378
"Se você observar erros durante a instalação, é quase certo que alguns dos "
23792379
"requisitos do sistema não foram instalados. Certifique-se de ter "
2380-
"[instalado todos os pré-requisitos da plataforma][instalar dependências]."
2380+
"[instalado todos os pré-requisitos da plataforma][install-dependencies]."
23812381

23822382
#: docs/en/tutorial/tutorial-1.md:39
23832383
msgid ""

docs/locales/zh_CN/translations.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ msgstr "[教程 4 - 更新应用程序]{1}"
3939
#: docs/en/SUMMARY.md:6
4040
#, fuzzy
4141
msgid "Tutorial 5 - Taking it mobile"
42-
msgstr "[教程 5 - 在移动设备上]{1}"
42+
msgstr "教程 5 - 在移动设备上"
4343

4444
#: docs/en/SUMMARY.md:6
4545
#, fuzzy
@@ -97,7 +97,7 @@ msgstr "[使用相机]{1}"
9797
#: docs/en/tutorial/topics/index.md:13
9898
#, fuzzy
9999
msgid "[Testing times]{1}"
100-
msgstr "{1}[测试次数}"
100+
msgstr "[测试次数]{1}"
101101

102102
#: docs/en/SUMMARY.md:18
103103
#, fuzzy
@@ -107,12 +107,12 @@ msgstr "操作指南"
107107
#: docs/en/SUMMARY.md:18
108108
#, fuzzy
109109
msgid "[Contributing to this tutorial]{1}"
110-
msgstr "[为本教程做出贡献]{1}"
110+
msgstr "[为本教程做出贡献]{1}"
111111

112112
#: docs/en/SUMMARY.md:18
113113
#, fuzzy
114114
msgid "[Style guide]{1}"
115-
msgstr "{1}[样式指南}"
115+
msgstr "[样式指南]{1}"
116116

117117
#: docs/en/how-to/contribute.md:1
118118
#, fuzzy
@@ -1599,7 +1599,7 @@ msgstr "怎样确保您的应用程序始终正常工作?向您的项目加入
15991599

16001600
#: docs/en/tutorial/topics/testing.md:1
16011601
msgid "Testing times"
1602-
msgstr "测试的时候"
1602+
msgstr "测试次数"
16031603

16041604
#: docs/en/tutorial/topics/testing.md:3
16051605
msgid ""
@@ -2125,7 +2125,7 @@ msgid ""
21252125
"the system requirements haven't been installed. Make sure you have "
21262126
"[installed all the platform pre-requisites][install-dependencies]."
21272127
msgstr "如果在安装过程中出现错误,几乎可以肯定是因为某些系统要求尚未安装。请确保已"
2128-
"[安装所有平台先决条件][安装依赖项]。"
2128+
"[安装所有平台先决条件][install-dependencies]。"
21292129

21302130
#: docs/en/tutorial/tutorial-1.md:39
21312131
msgid ""

docs/locales/zh_TW/translations.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ msgstr "[Customizing icons]{1}"
9292
#: docs/en/tutorial/topics/index.md:9
9393
#, fuzzy
9494
msgid "[Using the camera]{1}"
95-
msgstr "[使用相機]{1}"
95+
msgstr "[使用相機]{1}"
9696

9797
#: docs/en/SUMMARY.md:13
9898
#: docs/en/tutorial/topics/index.md:13
@@ -108,7 +108,7 @@ msgstr "操作指南"
108108
#: docs/en/SUMMARY.md:18
109109
#, fuzzy
110110
msgid "[Contributing to this tutorial]{1}"
111-
msgstr "[對本教學的貢獻]{1}"
111+
msgstr "[對本教學的貢獻]{1}"
112112

113113
#: docs/en/SUMMARY.md:18
114114
#, fuzzy

tox.ini

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ envlist = docs-lint,docs-all
44
[docs]
55
docs_dir = {tox_root}{/}docs{/}en
66

7-
[testenv:docs{,-lint,-translate,-all,-live,-en,-de,-es,-fr,-it,-pt,-zh_CN,-zh_TW}]
8-
# Docs are always built on Python 3.13. See also the RTD config.
9-
base_python = py313
7+
[testenv:docs{,-lint,-translate,-all,-live,-en,-de,-es,-fr,-it,-pt,-zh-cn,-zh-tw}]
8+
# Docs are always built on Python 3.12. See also the RTD config.
9+
base_python = py312
1010
skip_install = true
1111
passenv =
1212
DEEPL_API_KEY
1313
deps =
1414
-r {tox_root}/requirements.docs.txt
1515
commands:
16-
!lint-!all-!translate-!live-!en-!de-!es-!fr-!it-!pt-!zh_CN-!zh_TW : build_md_translations {posargs} en
16+
!lint-!all-!translate-!live-!en-!de-!es-!fr-!it-!pt-!zh-cn-!zh-tw : build_md_translations {posargs} en
1717
translate : build_pot_translations
1818
translate : build_po_translations de es fr it pt zh_CN zh_TW
1919
translate : update_machine_translations --soft-fail de es fr it pt zh_CN zh_TW
@@ -27,5 +27,5 @@ commands:
2727
fr : build_md_translations {posargs} fr
2828
it : build_md_translations {posargs} it
2929
pt : build_md_translations {posargs} pt
30-
zh_CN : build_md_translations {posargs} zh_CN
31-
zh_TW : build_md_translations {posargs} zh_TW
30+
zh-cn : build_md_translations {posargs} zh_CN
31+
zh-tw : build_md_translations {posargs} zh_TW

0 commit comments

Comments
 (0)