mirror of
https://github.com/zen-browser/desktop.git
synced 2025-12-17 03:45:33 +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 --enable-official-branding
|
||||
|
||||
# Multi-locale
|
||||
ac_add_options --with-l10n-base="$PWD/../l10n"
|
||||
|
||||
export MOZ_USER_DIR="${name}"
|
||||
export MOZ_APP_BASENAME=Zen
|
||||
export MOZ_APP_PROFILE=${binName}
|
||||
|
||||
2
l10n
2
l10n
Submodule l10n updated: 012020707c...dd454155fd
@@ -18,7 +18,7 @@ cd $CURRENT_DIR
|
||||
|
||||
update_language() {
|
||||
langId=$1
|
||||
cd l10n
|
||||
cd ./l10n
|
||||
cd $langId
|
||||
|
||||
echo "Updating $langId"
|
||||
@@ -38,7 +38,30 @@ for lang in $(cat ./l10n/supported-languages); do
|
||||
done
|
||||
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"
|
||||
rm -rf ~/tools
|
||||
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