forked from SchildiChat/schildichat-android-next
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorrect_strings.sh
More file actions
executable file
·31 lines (24 loc) · 1.1 KB
/
Copy pathcorrect_strings.sh
File metadata and controls
executable file
·31 lines (24 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
source "$mydir/merge_helpers.sh"
pushd "$mydir" > /dev/null
mydir="."
# Element -> SchildiChat, but restore Element where it makes sense
# After resoring some "Element Call" things, redo those call-related stringt pointing to "Element X" anyway
find "$mydir" -not -path "./schildi/**" \
-name translations.xml -exec \
sed -i 's|Element|SchildiChat|g;
s|SchildiChat X|SchildiChat Next|g;
s/SchildiChat \(Web\|iOS\|Desktop\)/Element \1/g;
s|SchildiChat Matrix Services|Element Matrix Services|g;
s|\(name="screen_onboarding_welcome_title".*\)SchildiChat|\1Element|g;
s|\(name=".*_call_.*".*\)SchildiChat|\1Element|g;
s|\(name=".*element_dot_io.*".*\)SchildiChat|\1Element|g;
s|Element X|SchildiChat Next|g;
s/SchildiChat\( \|-\)Pro/Element\1Pro/g;
s/SchildiChatul/Elementul/g;
s/SchildiChat Classic/SchildiChat Legacy/g;
s/SchildiChat\( \|-\)Call/Element\1Call/g' '{}' \;
git --no-pager diff \*/translations.xml
popd > /dev/null