From a6fd55ad9d9554ec885bae37c79cf35ccd139e59 Mon Sep 17 00:00:00 2001 From: Cameron White Date: Mon, 31 Aug 2026 23:38:33 -0400 Subject: [PATCH] Fix detection of translatable strings in .ui files intltool needs an extra '[type: gettext/glade]' prefix in POTFILES.in, otherwise it just skips them --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index 011d192075..f50567e751 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,9 +64,11 @@ list: fi #target: updatepotfiles - update the POTFILES.in file +# Note that intltool needs the [type:] prefix to correctly handle .ui files updatepotfiles: echo xdg/com.github.PintaProject.Pinta.desktop.in > po/POTFILES.in echo xdg/com.github.PintaProject.Pinta.metainfo.xml.in >> po/POTFILES.in + find . -name \*.ui | sort | sed 's/^/[type: gettext\/glade]/' >> po/POTFILES.in find \ Pinta \ Pinta.Core \