From 9d125a15e6b8f78f0b947d31eb93dedfc52432df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ka=C5=88kovsk=C3=BD?= Date: Tue, 8 Aug 2023 10:32:33 +0200 Subject: [PATCH] webui: Back/Next button are not localized --- po/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/po/Makefile.am b/po/Makefile.am index 53c12dd2b6e..6f21dd87437 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -206,8 +206,10 @@ main.pot: $(POTFILE_INPUT) $(GETTEXT_V_EXTRACT)$(XGETTEXT) $(XGETTEXT_OPTIONS) --directory=$(top_srcdir) -o $@ \ $(patsubst $(top_srcdir)/%,%,$(POTFILE_INPUT)) +# Javascript parsing is buggy in xgettext: template strings within JSX silently stop parsing the +# whole file. To work around this, explicitly set parsed language to C, which somehow works. main_js.pot: $(POTFILE_INPUT) - $(GETTEXT_V_EXTRACT)$(XGETTEXT) $(XGETTEXT_OPTIONS) --language=JavaScript --directory=$(top_srcdir) -o $@ \ + $(GETTEXT_V_EXTRACT)$(XGETTEXT) $(XGETTEXT_OPTIONS) --language=C --directory=$(top_srcdir) -o $@ \ $(patsubst $(top_srcdir)/%,%,$(POTFILE_JS_INPUT)) extra.pot: $(POTFILE_EXTRA)