Skip to content

Commit ea3367d

Browse files
authored
Merge pull request #15317 from nextcloud/feature/de-locale-de_DE-alignment
fix(l10n): normalize de_DE to de before user manual build
2 parents e856e53 + e1b168a commit ea3367d

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

build/normalize_locale_codes.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
#
3+
# Nextcloud server, apps and clients use "de_DE" for formal German in Transifex.
4+
# These docs historically used "de", causing translator confusion and a fragmented
5+
# translation memory (see https://github.com/nextcloud/documentation/issues/13370).
6+
#
7+
# Transifex is being reconfigured to sync German as "de_DE" like every other
8+
# Nextcloud project, but the published docs URL must stay "de" (it's linked from
9+
# many external sites). This folds "de_DE" into "de" right before Sphinx builds,
10+
# so the sync stays de_DE-native while the published path is unaffected.
11+
#
12+
# No-op until locale/de_DE actually exists.
13+
14+
if [ -d ./locale/de_DE ]; then
15+
mkdir -p ./locale/de
16+
rsync -a ./locale/de_DE/ ./locale/de/
17+
rm -rf ./locale/de_DE
18+
fi

user_manual/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ clean:
4949

5050
html:
5151
../build/change_file_extension.sh
52+
../build/normalize_locale_codes.sh
5253
make html-all merge-folders
5354

5455
html-all: $(foreach lang, $(LANGS), html-allow-warnings-lang-$(lang))

0 commit comments

Comments
 (0)