mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-07 13:52:49 -04:00
Add the same locales that OnionShare is translated into
This commit is contained in:
parent
84fc623e99
commit
5e8a64cb7c
220 changed files with 39919 additions and 1 deletions
27
docs/build.sh
Executable file
27
docs/build.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Supported locales
|
||||
LOCALES="ar ca zh_CN zh_TW da nl en fr de el is ga it ja nb fa pl pt_BR pt_PT ro ru sr@latin es sv te tr uk"
|
||||
|
||||
# Generate English .po files
|
||||
make gettext
|
||||
|
||||
# Update all .po files for all locales
|
||||
for LOCALE in $LOCALES; do
|
||||
sphinx-intl update -p build/gettext -l $LOCALE
|
||||
done
|
||||
|
||||
# Build all locales
|
||||
rm -rf build/html build/localized_html > /dev/null
|
||||
mkdir -p build/localized_html
|
||||
|
||||
make html
|
||||
mv build/html build/localized_html/en
|
||||
|
||||
for LOCALE in $LOCALES; do
|
||||
make -e SPHINXOPTS="-D language='$LOCALE'" html
|
||||
mv build/html build/localized_html/$LOCALE
|
||||
done
|
||||
|
||||
# Redirect to English by default
|
||||
echo '<html><head><meta http-equiv="refresh" content="0; url=en/" /><script>document.location="en/"</script></head></html>' > build/localized_html/index.html
|
Loading…
Add table
Add a link
Reference in a new issue