mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Add correct_strings.sh
This commit is contained in:
parent
8d6c8b4a30
commit
6f5048d64c
1 changed files with 16 additions and 0 deletions
16
correct_strings.sh
Executable file
16
correct_strings.sh
Executable file
|
@ -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\(.*</string>\)|\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"
|
Loading…
Reference in a new issue