From 6f5048d64cdca27313e066bc8740fd29d9ce06f4 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sat, 25 Jul 2020 10:02:44 +0200 Subject: [PATCH] Add correct_strings.sh --- correct_strings.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 correct_strings.sh diff --git a/correct_strings.sh b/correct_strings.sh new file mode 100755 index 0000000000..579abb5b6a --- /dev/null +++ b/correct_strings.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +mydir="$(dirname "$(realpath "$0")")" + +find "$mydir/vector/src/main/res" -name strings.xml -exec \ + sed -i 's|Element|SchildiChat|g' '{}' \; +find "$mydir/vector/src/main/res" -name strings.xml -exec \ + sed -i 's|SchildiChat Web|Element Web|g' '{}' \; +find "$mydir/vector/src/main/res" -name strings.xml -exec \ + sed -i 's|SchildiChat iOS|Element iOS|g' '{}' \; +find "$mydir/vector/src/main/res" -name strings.xml -exec \ + sed -i 's|\("use_latest_riot">.*\)SchildiChat\(.*\)|\1Element\2|g' '{}' \; + +# Requires manual intervention for correct grammar +sed -i 's|!nnen|wolpertinger|g' "$mydir/vector/src/main/res/values-de/strings.xml" +sed -i 's|!n|schlumpfwesen|g' "$mydir/vector/src/main/res/values-de/strings.xml"