Merge pull request #10179 from nupplaphil/fix/transifex_script
Fix messages.po check & Update messages.po
This commit is contained in:
commit
0e2f4b6825
|
@ -20,8 +20,9 @@ jobs:
|
||||||
echo "::group::Check messages.po"
|
echo "::group::Check messages.po"
|
||||||
# Skip first 4 lines in possible diff, because they're header
|
# Skip first 4 lines in possible diff, because they're header
|
||||||
# Skip all lines of the git diff starting with "@@" or comments or starting "POT-Creation-Date"
|
# Skip all lines of the git diff starting with "@@" or comments or starting "POT-Creation-Date"
|
||||||
if [[ $(git diff -U0 ./view/lang/C/messages.po | awk '!/@@|-"POT-Creation-Date|+"POT-Creation-Date|-#|+#/{print }' | wc -l) > 4 ]]; then
|
if [[ $(git diff -U0 ./view/lang/C/messages.po | awk '!/@@|-"POT-Creation-Date|+"POT-Creation-Date|-#|+#/{print }' | wc -l) -gt 4 ]]; then
|
||||||
echo "::error file=messages.po::messages.po is out of date"
|
echo "::error file=messages.po::messages.po is out of date"
|
||||||
|
echo "$(git diff ./view/lang/C/messages.po)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Nothing to update"
|
echo "Nothing to update"
|
||||||
|
|
|
@ -61,7 +61,7 @@ KEYWORDS="-k -kt -ktt:1,2"
|
||||||
echo "Extract strings to $OUTFILE.."
|
echo "Extract strings to $OUTFILE.."
|
||||||
rm "$OUTFILE"; touch "$OUTFILE"
|
rm "$OUTFILE"; touch "$OUTFILE"
|
||||||
|
|
||||||
find_result=$(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | sort)
|
find_result=$(find "$FINDSTARTDIR" $FINDOPTS -name "*.php" -type f | LC_ALL=C sort --stable)
|
||||||
|
|
||||||
total_files=$(wc -l <<< "${find_result}")
|
total_files=$(wc -l <<< "${find_result}")
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user