Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build/normalize_locale_codes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
#
# Nextcloud server, apps and clients use "de_DE" for formal German in Transifex.
# These docs historically used "de", causing translator confusion and a fragmented
# translation memory (see https://github.com/nextcloud/documentation/issues/13370).
#
# Transifex is being reconfigured to sync German as "de_DE" like every other
# Nextcloud project, but the published docs URL must stay "de" (it's linked from
# many external sites). This folds "de_DE" into "de" right before Sphinx builds,
# so the sync stays de_DE-native while the published path is unaffected.
#
# No-op until locale/de_DE actually exists.

if [ -d ./locale/de_DE ]; then
mkdir -p ./locale/de
rsync -a ./locale/de_DE/ ./locale/de/
rm -rf ./locale/de_DE
fi
1 change: 1 addition & 0 deletions user_manual/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ clean:

html:
../build/change_file_extension.sh
../build/normalize_locale_codes.sh
make html-all merge-folders

html-all: $(foreach lang, $(LANGS), html-allow-warnings-lang-$(lang))
Expand Down
Loading