Supporting translations for site/docs #74
Closed
opened 2021-06-17 20:27:05 +00:00 by decentral1se
·
3 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
documentation
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#74
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
We probably want to allow translation to happen in:
How to do that with a workflow that is not crap? Idk how mkdocs/hugo integrate there.
I remember people telling me to use https://www.transifex.com/.
No strong preferences Transifex vs Weblate, I've used Weblate and it was fine.
The main challenge, for docs and our site, seems to be getting Markdown files into Gettext format.
Some research:
Hugo: https://invent.kde.org/websites/hugo-i18n
README files (maybe?) using
po4a: https://github.com/WeblateOrg/weblate/issues/3106Mkdocs seems to support language translations for themes using Gettext already: https://www.mkdocs.org/dev-guide/translations/ For translating content we'd probably need a separate plugin: https://pypi.org/project/mkdocs-translations/
Issue tracking adding i18n to mkdocs core https://github.com/mkdocs/mkdocs/issues/211
I started some work on this in https://git.coopcloud.tech/coop-cloud/docs.coopcloud.tech/src/branch/translation, seems like we can only have one
navstatement meaning the main navigation on top will always be in english? I think i found a workaround for it here: https://github.com/squidfunk/mkdocs-material/discussions/2346 but it would require us tomkdocs generateinstead of justmkdocs serveso it would need a change inDockerfile,compose.ymland maybe other files too? I'm down to work further on that.Duplicate: https://git.coopcloud.tech/toolshed/-/projects/38