mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColTemplate: New recurrence attribute
This commit is contained in:
parent
b600671e53
commit
5ac7ca6885
14 changed files with 159 additions and 0 deletions
25
src/l10n/check_translations.sh
Executable file
25
src/l10n/check_translations.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
REFERENCE_LANGUAGE_FILE="eng-USA.h"
|
||||
TESTED_LANGUAGE_FILES=`ls *.h | grep -v $REFERENCE_LANGUAGE_FILE`
|
||||
|
||||
# At the beginning, we haven't detected any invalid translation files
|
||||
MISMATCHED=0
|
||||
|
||||
# Generate list of keys, not including defines that are commented out. Strips out the leading whitespace.
|
||||
cat $REFERENCE_LANGUAGE_FILE | grep "^[[:space:]]*#define" | sed -e 's/^ *//' - | cut -f2 -d' ' | sort > identifiers
|
||||
|
||||
# Generate report
|
||||
for LANGUAGE_FILE in $TESTED_LANGUAGE_FILES
|
||||
do
|
||||
echo "Comparing $REFERENCE_LANGUAGE_FILE (left) to $LANGUAGE_FILE (right)"
|
||||
cat $LANGUAGE_FILE | grep "^[[:space:]]*#define" | sed -e 's/^ *//' - | cut -f2 -d' ' | sort | diff identifiers -
|
||||
MISMATCHED=$(($MISMATCHED+$?))
|
||||
echo ""
|
||||
done
|
||||
|
||||
# Cleanup
|
||||
rm -f identifiers
|
||||
|
||||
# Exit with number of not synced translations files
|
||||
exit $MISMATCHED
|
Loading…
Add table
Add a link
Reference in a new issue