[gtk/more-vs-proj-updates: 5/6] 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: 5/6] win32/generate-msvc.mak: Add rules for gtk30-properties.pot
- Date: Tue, 7 Jun 2022 03:39:31 +0000 (UTC)
commit fba65132bde256e0812b9139490a9eda108fcd21
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-properties.pot. Since
it seems that it is not possible to successfully generate gtk30.pot on
Windows, and gtk30.pot is checked into the repo, we do not support
generating it here with the NMake Makefiles.
Currently, the XGETTEXT=... must be supplied, since it will likely come
from a MSYS2 or Cygwin installation on Windows.
win32/generate-msvc.mak | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
---
diff --git a/win32/generate-msvc.mak b/win32/generate-msvc.mak
index acc9252e85..9b5678afab 100644
--- a/win32/generate-msvc.mak
+++ b/win32/generate-msvc.mak
@@ -447,6 +447,38 @@ regenerate-demos-h-win32: ..\demos\gtk-demo\geninclude.py $(demo_actual_sources)
@$(PYTHON) geninclude.py demos.h.win32 $(demo_sources)
@cd ..\..\win32
+# We don't generate gtk30.pot here since that is in the repos
+..\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=".." \
+ --add-comments --keyword --keyword=P_ \
+ --from-code=utf-8 --flag=g_dngettext:2:pass-c-format \
+ --flag=g_strdup_printf:1:c-format \
+ --flag=g_string_printf:2:c-format \
+ --flag=g_string_append_printf:2:c-format \
+ --flag=g_error_new:3:c-format \
+ --flag=g_set_error:4:c-format \
+ --flag=g_markup_printf_escaped:1:c-format \
+ --flag=g_log:3:c-format \
+ --flag=g_print:1:c-format \
+ --flag=g_printerr:1:c-format \
+ --flag=g_printf:1:c-format \
+ --flag=g_fprintf:2:c-format \
+ --flag=g_sprintf:2:c-format \
+ --flag=g_snprintf:3:c-format \
+ --flag=g_scanner_error:2:c-format \
+ --flag=g_scanner_warn:2:c-format \
+ --flag=gtk_message_dialog_format_secondary_markup:2:c-format \
+ --flag=gtk_message_dialog_format_secondary_text:2:c-format \
+ --flag=gtk_message_dialog_new:5:c-format \
+ --flag=gtk_message_dialog_new_with_markup:5:c-format \
+ --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]