Description: patch to update the locale files
Author: Fabio Augusto De Muzio Tobich <ftobich@debian.org>
Forwarded: not-needed
Last-Update: 2021-10-15

Index: gnome-shell-extension-tiling-assistant/update-locale.sh
===================================================================
--- /dev/null
+++ gnome-shell-extension-tiling-assistant/update-locale.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env sh
+
+mainpot=translations/main.pot
+pot=tiling-assistant@leleat-on-github.pot
+
+cp $mainpot tiling-assistant@leleat-on-github/$pot
+
+for i in translations/*; do
+	locale_lang=$(echo $i | sed s/'^translations'/'locale'/ | cut -d'.' -f1)
+	if [ "$locale_lang" != "locale/main" ]; then
+		mkdir -p tiling-assistant@leleat-on-github/$locale_lang/LC_MESSAGES
+		cp -f $i tiling-assistant@leleat-on-github/$locale_lang/LC_MESSAGES/tiling-assistant@leleat-on-github.po
+		cd tiling-assistant@leleat-on-github
+		po=$locale_lang/LC_MESSAGES/tiling-assistant@leleat-on-github.po
+		echo $po
+		msgmerge --backup=off -U $po $pot
+		msgfmt $po -o ${po%po}mo
+		cd ..
+	fi
+done
+
+exit 0
