mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 10:25:51 +03:00
Revert back to updated correct_strings.sh
This commit is contained in:
parent
589068cbf8
commit
9c3089c2b9
1 changed files with 6 additions and 2 deletions
|
@ -2,14 +2,18 @@
|
||||||
|
|
||||||
mydir="$(dirname "$(realpath "$0")")"
|
mydir="$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
|
# Element -> SchildiChat
|
||||||
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
||||||
sed -i 's|Element|SchildiChat|g' '{}' \;
|
sed -i 's|Element|SchildiChat|g' '{}' \;
|
||||||
|
# Restore Element where it makes sense
|
||||||
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
||||||
sed -i 's|SchildiChat Web|Element Web|g' '{}' \;
|
sed -i 's/SchildiChat \(Web\|iOS\|Desktop\)/Element \1/g' '{}' \;
|
||||||
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
||||||
sed -i 's|SchildiChat iOS|Element iOS|g' '{}' \;
|
sed -i 's|SchildiChat Matrix Services|Element Matrix Services|g' '{}' \;
|
||||||
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
||||||
sed -i 's|\("use_latest_riot">.*\)SchildiChat\(.*</string>\)|\1Element\2|g' '{}' \;
|
sed -i 's|\("use_latest_riot">.*\)SchildiChat\(.*</string>\)|\1Element\2|g' '{}' \;
|
||||||
|
find "$mydir/vector/src/main/res" -name strings.xml -exec \
|
||||||
|
sed -i 's|\("use_other_session_content_description">.*\)SchildiChat\(.*SchildiChat.*</string>\)|\1SchildiChat/Element\2|' '{}' \;
|
||||||
|
|
||||||
# Requires manual intervention for correct grammar
|
# Requires manual intervention for correct grammar
|
||||||
sed -i 's|!nnen|wolpertinger|g' "$mydir/vector/src/main/res/values-de/strings.xml"
|
sed -i 's|!nnen|wolpertinger|g' "$mydir/vector/src/main/res/values-de/strings.xml"
|
||||||
|
|
Loading…
Reference in a new issue