mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
search for translation errors in ./res/, not in intermediate files
This commit is contained in:
parent
6f2d19f6b0
commit
d2901e0a47
1 changed files with 7 additions and 7 deletions
|
@ -2,19 +2,19 @@ echo potential errors, if any:
|
|||
|
||||
# a space after the percent sign
|
||||
# results in an IllegalFormatException in getString()
|
||||
grep --include='strings.xml' -r '\% [12]' .
|
||||
grep --include='strings.xml' -r '\%[$]' .
|
||||
grep --include='strings.xml' -r '\$ ' .
|
||||
grep --include='strings.xml' -r ' \$' .
|
||||
grep --include='strings.xml' -r '\% [12]' ./res/
|
||||
grep --include='strings.xml' -r '\%[$]' ./res/
|
||||
grep --include='strings.xml' -r '\$ ' ./res/
|
||||
grep --include='strings.xml' -r ' \$' ./res/
|
||||
|
||||
# check for broken usage of escape sequences:
|
||||
# - alert on `\ n`, `\ N`, `\n\Another paragraph` and so on
|
||||
# - allow only `\n`, `\"`, `\'` and `\’`
|
||||
# (`’` might not be escaped, but it is done often eg. in "sq", so we allow that for now)
|
||||
grep --include='strings.xml' -r "\\\\[^n\"'’]" .
|
||||
grep --include='strings.xml' -r "\\\\[^n\"'’]" ./res/
|
||||
|
||||
# check for usage of a single `&` - this has to be an `&`
|
||||
grep --include='strings.xml' -r "&[^a]" .
|
||||
grep --include='strings.xml' -r "&[^a]" ./res/
|
||||
|
||||
# single <br> is not needed - and not allowed in xml, leading to error "matching end tag missing"
|
||||
grep --include='strings.xml' -r "<br" .
|
||||
grep --include='strings.xml' -r "<br" ./res/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue