Skip to content

Commit 0ab105d

Browse files
kattnifreakboy3742
andauthored
Enable i18n plugin, configure, and prepare for switch to Weblate (#637)
Removes Lektor alternative content, moving translations to gettext .po files so they can be handled by Weblate. Explclictly excludes some "rapidly moving" content (such as blog content) from translation. --------- Co-authored-by: Russell Keith-Magee <[email protected]>
1 parent 09a887a commit 0ab105d

File tree

285 files changed

+150638
-13126
lines changed

Some content is hidden

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

285 files changed

+150638
-13126
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ venv*/
77
.vscode/
88
.envrc
99
.idea/
10+
contents+*.lr
11+
i18n/_compiled

β€ŽBeeWare.lektorprojectβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ locale = fa_IR
8383
lektor-github-repos = 0.1.1
8484
lektor-gravatar = 0.1.3
8585
lektor-markdown-admonition = 0.3.1
86+
git+https://github.com/beeware/lektor-i18n-plugin@v0.5.1 =
8687

8788
[servers.ghpages]
8889
target = ghpages://beeware/beeware.github.io?cname=beeware.org

β€Žbabel.cfgβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[jinja2: **/templates/**.html]
2+
encoding = utf-8

β€Žconfigs/i18n.iniβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
content = en
2+
translations = ar, cs, da, de, es, fa, fr, it, ko, pl, pt, tr, zh_CN, zh_TW
3+
i18npath = i18n
4+
translate_paragraphwise = True
5+
url_prefix = https://beeware.org/

β€Žcontent/about/contact/contents+ar.lrβ€Ž

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

β€Žcontent/about/contact/contents+de.lrβ€Ž

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

β€Žcontent/about/contact/contents+es.lrβ€Ž

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

β€Žcontent/about/contact/contents+pt.lrβ€Ž

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

β€Žcontent/about/contact/media/contents+ar.lrβ€Ž

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

β€Žcontent/about/contact/media/contents+es.lrβ€Ž

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

0 commit comments

Comments
Β (0)