mv git submodule electrum-locale from contrib to electrum/locale
- this merges `contrib/deterministic-build/locale` and `electrum/locale`
- it is now once again possible have translations when running from a local git clone
- which was already possible in the past before crowdin removed their unauthenticated APIs
- see https://github.com/spesmilo/electrum/issues/9531
- however, the translations available are the often-old frozen strings from electrum-locale
- while previously one could just download the latest strings from crowdin
This commit is contained in:
@@ -140,9 +140,12 @@ info "preparing electrum-locale."
|
||||
git submodule update --init
|
||||
|
||||
LOCALE="$PROJECT_ROOT/electrum/locale/"
|
||||
cd "$LOCALE"
|
||||
git clean -ffxd
|
||||
git reset --hard
|
||||
"$CONTRIB/build_locale.sh" "$LOCALE/locale" "$LOCALE/locale"
|
||||
# we want the binary to have only compiled (.mo) locale files; not source (.po) files
|
||||
rm -rf "$LOCALE"
|
||||
"$CONTRIB/build_locale.sh" "$CONTRIB/deterministic-build/electrum-locale/locale/" "$LOCALE"
|
||||
rm -r locale/*/electrum.po
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user