[gtk/more-vs-proj-updates: 12/23] win32/generate-msvc.mak: Add rules for gtk30[-properties].pot
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/more-vs-proj-updates: 12/23] win32/generate-msvc.mak: Add rules for gtk30[-properties].pot
- Date: Fri, 5 Aug 2022 09:54:33 +0000 (UTC)
commit 78f7aa10ffe77815f2021b424486d9ba23dbd1aa
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue May 31 18:19:10 2022 +0800
win32/generate-msvc.mak: Add rules for gtk30[-properties].pot
This adds rules using xgettext to generate gtk30.pot and
gtk30-properties.pot.
Currently, the XGETTEXT=... must be supplied, since it will likely come
from a MSYS2 or Cygwin installation on Windows.
This will help us get closer to support building more directly from a
GIT checkout with the Visual Studio projects
win32/generate-msvc.mak | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/win32/generate-msvc.mak b/win32/generate-msvc.mak
index fbd092a1c1..bde3b57115 100644
--- a/win32/generate-msvc.mak
+++ b/win32/generate-msvc.mak
@@ -460,6 +460,29 @@ regenerate-demos-h-win32: ..\demos\gtk-demo\geninclude.py $(demo_actual_sources)
@$(PYTHON) geninclude.py demos.h.win32 $(demo_sources)
@cd ..\..\win32
+..\po\gtk30.pot: ..\gtk\gtkbuilder.its
+ $(XGETTEXT) --default-domain="$(@B)" \
+ --copyright-holder="GTK+ Team and others. See AUTHORS" \
+ --package-name="gtk+" \
+ --package-version="$(GTK_VERSION)" \
+ --msgid-bugs-address="https://gitlab.gnome.org/GNOME/gtk/-/issues/" \
+ --directory=".." \
+ --add-comments=TRANSLATORS: --from-code=UTF-8 --keyword=_ --keyword=N_ \
+ --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 --add-comments \
+ --files-from="$(@D:\=/)/POTFILES.in" --output=$(@F)
+ @move $(@F) $@
+
+..\po-properties\gtk30-properties.pot:
+ $(XGETTEXT) --default-domain="$(@B)" \
+ --copyright-holder="GTK+ Team and others. See AUTHORS" \
+ --package-name="gtk+" \
+ --package-version="$(GTK_VERSION)" \
+ --msgid-bugs-address="https://gitlab.gnome.org/GNOME/gtk/-/issues/" \
+ --directory=".." \
+ --from-code=UTF-8 --keyword --keyword=P_ --add-comments \
+ --files-from="$(@D:\=/)/POTFILES.in"
+ @move $(@B).po $@
+
# Remove the generated files
clean:
@-del /f /q .\vs$(VSVER)\$(CFG)\$(PLAT)\bin\*.gresource
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]