From 28204c127dabdd59203d822b393c327fa6f340a1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 3 Jan 2023 14:39:10 +0100 Subject: [PATCH] tools: update po/LINGUAS when downloading new translations Fix: https://github.com/util-linux/util-linux/issues/1985 Signed-off-by: Karel Zak --- po/LINGUAS | 5 ++++- tools/git-tp-sync | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/po/LINGUAS b/po/LINGUAS index 83ee66cac4..4886a44a55 100644 --- a/po/LINGUAS +++ b/po/LINGUAS @@ -13,12 +13,15 @@ hu id it ja +ko nl pl -pt_BR pt +pt_BR ru +sk sl +sr sv tr uk diff --git a/tools/git-tp-sync b/tools/git-tp-sync index c2e2d8d8f4..d51da5670e 100755 --- a/tools/git-tp-sync +++ b/tools/git-tp-sync @@ -56,3 +56,5 @@ for f in $PO_NEW; do do_commit "po/$f" "po: add $f (from translationproject.org)" done +LINGUAS=$(find po/ -name '*.po' -type f -printf '%P\n' | sed 's/\.po//g' | sort) +echo "$LINGUAS" > po/LINGUAS -- 2.47.2