mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Update copy-language-pack.sh
Signed-off-by: Cristian Cezar Moisés <ethicalhacker@riseup.net>
This commit is contained in:

committed by
GitHub

parent
32e9d6fe72
commit
8c129ab512
@@ -2,17 +2,25 @@ browser_locales=engine/browser/locales
|
||||
|
||||
copy_browser_locales() {
|
||||
langId=$1
|
||||
mkdir -p $browser_locales/$langId
|
||||
mkdir -p "$browser_locales/$langId"
|
||||
|
||||
if [ "$langId" = "en-US" ]; then
|
||||
find $browser_locales/$langId -type f -name "zen*" -delete
|
||||
rsync -av --exclude=.git ./l10n/en-US/browser/ $browser_locales/$langId/
|
||||
find "$browser_locales/$langId" -type f -name "zen*" -delete
|
||||
rsync -av --exclude=.git ./l10n/en-US/browser/ "$browser_locales/$langId/"
|
||||
return
|
||||
fi
|
||||
rm -rf $browser_locales/$langId/
|
||||
|
||||
rm -rf "$browser_locales/$langId/"
|
||||
|
||||
# TODO: Copy the rest of the l10n directories to their respective locations
|
||||
rsync -av --exclude=.git ./l10n/$langId/ $browser_locales/$langId/
|
||||
rsync -av --exclude=.git "./l10n/$langId/" "$browser_locales/$langId/"
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Error: No language specified."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LANG=$1
|
||||
echo "Copying language pack for $LANG"
|
||||
copy_browser_locales $LANG
|
||||
copy_browser_locales "$LANG"
|
||||
|
Reference in New Issue
Block a user