Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffca205d authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Merge branch '6721-master-chrome_strings' into 'master'

Browser: Replace `Chrome` with `Browser`

See merge request !55
parents f91696c4 06fb4641
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -126,6 +126,9 @@ patch() {
    for file in $e_patches_list; do
        git am -3 --ignore-whitespace "${root_dir}/build/patches/$file"
    done

    # Rename Chrome to Browser
    bash ${root_dir}/rename.sh
}

sync() {

rename.sh

0 → 100755
+30 −0
Original line number Diff line number Diff line
#!/bin/bash

set -e

chromium_dir="${chromium_dir:-/srv/chromium}"
root_dir=$(dirname "$(readlink -f "$0")")
if [ ! -d "$chromium_dir" ]; then
    chromium_dir=$root_dir
fi

cd $chromium_dir/src

# Translation directories
dirs="components components/strings chrome/browser/ui/android/strings chrome/browser/ui/android/strings/translations"

for dir in $dirs; do
    grdp_files=$(ls $dir/*.grdp 2> /dev/null | wc -l)
    if [ "$grdp_files" != "0" ]; then
        sed -i 's/Chrome browser/Browser/g' $dir/*.grdp
        sed -i 's/Chrome/Browser/g' $dir/*.grdp
    fi
    xtb_files=$(ls $dir/*.xtb 2> /dev/null | wc -l)
    if [ "$xtb_files" != "0" ]; then
        sed -i 's/Chrome browser/Browser/g' $dir/*.xtb
        sed -i 's/Chrome/Browser/g' $dir/*.xtb
    fi
done

git add .
git commit -m "Browser: Replace Chrome with Browser"