tools/fix-ellipsis.sh: standardize to keep translation merges easy

This commit is contained in:
Hans-Christoph Steiner 2021-04-29 16:00:36 +02:00
parent dd2f44c70e
commit 5ba7220802
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
4 changed files with 22 additions and 3 deletions

View file

@ -1 +1 @@
Reminds you to go to sleep... until you do
Reminds you to go to sleep until you do

View file

@ -1 +1 @@
Add an ownCloud server now and get ... Your Cloud, Your Data, Your Way!
Add an ownCloud server now and get Your Cloud, Your Data, Your Way!

View file

@ -61,7 +61,7 @@ Approximate map coverage and quality:
• Africa: **
• Antarctica: *
Most countries around the globe available as downloads!
From Afghanistan to Zimbabwe, from Australia to the USA. Argentina, Brazil, Canada, France, Germany, Mexico, UK, Spain, ...
From Afghanistan to Zimbabwe, from Australia to the USA. Argentina, Brazil, Canada, France, Germany, Mexico, UK, Spain,
Anti-Features:
* NonFreeAssets - Artwork and layouts are under a non-commercial license.

19
tools/fix-ellipsis.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
# Fix TypographyEllipsis programmatically
exitvalue=0
for d in metadata/*/*; do
test -d $d || continue
test $(basename $d) != "signatures" || continue
sed -i 's/\.\.\./…/g' $d/*.txt
if [ $exitvalue = 0 ]; then
git diff $d | grep -Eo '^\+.*…' || exitvalue=1
fi
done
if [ $exitvalue != 0 ]; then
echo Fix TypographyEllipsis
fi
exit $exitvalue