mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 04:49:59 +02:00
chore: Update l10n submodule commit
This commit is contained in:
parent
d9c3973b9d
commit
e7103f1d87
3 changed files with 25 additions and 5 deletions
|
@ -3,9 +3,6 @@ ac_add_options --with-app-name=${binName}
|
||||||
ac_add_options --with-app-basename=Zen
|
ac_add_options --with-app-basename=Zen
|
||||||
ac_add_options --enable-official-branding
|
ac_add_options --enable-official-branding
|
||||||
|
|
||||||
# Multi-locale
|
|
||||||
ac_add_options --with-l10n-base="$PWD/../l10n"
|
|
||||||
|
|
||||||
export MOZ_USER_DIR="${name}"
|
export MOZ_USER_DIR="${name}"
|
||||||
export MOZ_APP_BASENAME=Zen
|
export MOZ_APP_BASENAME=Zen
|
||||||
export MOZ_APP_PROFILE=${binName}
|
export MOZ_APP_PROFILE=${binName}
|
||||||
|
|
2
l10n
2
l10n
|
@ -1 +1 @@
|
||||||
Subproject commit 012020707c2c3e9685f40a109f4b7bc19e8804e7
|
Subproject commit dd454155fd0e6b5ee760259661518dac1654e00a
|
|
@ -18,7 +18,7 @@ cd $CURRENT_DIR
|
||||||
|
|
||||||
update_language() {
|
update_language() {
|
||||||
langId=$1
|
langId=$1
|
||||||
cd l10n
|
cd ./l10n
|
||||||
cd $langId
|
cd $langId
|
||||||
|
|
||||||
echo "Updating $langId"
|
echo "Updating $langId"
|
||||||
|
@ -38,7 +38,30 @@ for lang in $(cat ./l10n/supported-languages); do
|
||||||
done
|
done
|
||||||
cd $CURRENT_DIR
|
cd $CURRENT_DIR
|
||||||
|
|
||||||
|
# Move all the files to the correct location
|
||||||
|
browser_locales=engine/browser/locales
|
||||||
|
copy_browser_locales() {
|
||||||
|
langId=$1
|
||||||
|
only_en=$2
|
||||||
|
mkdir -p $browser_locales/$langId
|
||||||
|
if [ "$only_en" = true ]; then
|
||||||
|
rsync -av --exclude=.git ./l10n/en-US/browser/ $browser_locales/$langId/
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
rm -rf $browser_locales/$langId/
|
||||||
|
rsync -av --exclude=.git ./l10n/$langId/ $browser_locales/$langId/
|
||||||
|
}
|
||||||
|
|
||||||
|
copy_browser_locales en-US true
|
||||||
|
for lang in $(cat ./l10n/supported-languages); do
|
||||||
|
copy_browser_locales $lang false
|
||||||
|
done
|
||||||
|
|
||||||
echo "Cleaning up"
|
echo "Cleaning up"
|
||||||
rm -rf ~/tools
|
rm -rf ~/tools
|
||||||
rm -rf ~/.git-cinnabar
|
rm -rf ~/.git-cinnabar
|
||||||
|
|
||||||
|
for lang in $(cat ./l10n/supported-languages); do
|
||||||
|
# remove every file except if it starts with "zen"
|
||||||
|
find ./l10n/$lang -type f -not -name "zen*" -delete
|
||||||
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue