mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-17 11:55:38 +00:00
chore: Update l10n submodule commit
This commit is contained in:
@@ -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
Submodule l10n updated: 012020707c...dd454155fd
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user