Skip to content

Commit

Permalink
OTA fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Jul 10, 2024
1 parent 7d77f89 commit 1a8db66
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/build-ota-translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ trap finish EXIT

# check PO files for errors and remove the ones that won't compile:
for po in locales/*.po ; do
if ! stderr=$(msgfmt -c -o "$DESTDIR/$mo" "$po" 2>&1) ; then
echo "ERROR: $stderr"
echo "::warning file=$po,title=Failed to compile PO file::`echo $stderr`"
echo "::group::Content of $po"
cat "$po"
if ! stderr=$(msgfmt -c -o /dev/null "$po" 2>&1) ; then
echo "::warning title=Failed to compile $po::`echo $stderr`"
echo "::group::cat -n $po"
cat -n "$po"
echo "::endgroup::"
rm "$po"
fi
Expand Down

0 comments on commit 1a8db66

Please sign in to comment.