Skip to content

Commit

Permalink
i18n: return early if xgettext is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions authored and annacrombie committed Dec 17, 2024
1 parent 026fa2a commit aab6cc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/script/modules/i18n.meson
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ func gettext(
preset str:,
) -> list[any]

xgettext = find_program('xgettext', native: false)
xgettext = find_program('xgettext', native: false, required: false)
if not xgettext.found()
warning('gettext not found, all translation (po) targets will be ignored.')
return []
endif
msgfmt = find_program('msgfmt', native: false)
msgmerge = find_program('msgmerge', native: false)
msginit = find_program('msginit', native: false)
Expand Down

0 comments on commit aab6cc7

Please sign in to comment.