mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-19 16:26:36 +02:00
Add localization system (gettext)
This commit is contained in:
@ -24,6 +24,12 @@ ifneq ($(DESK_NOTIFY), disabled)
|
||||
-include $(CHECKS_DIR)/desktop_notifications.mk
|
||||
endif
|
||||
|
||||
# Check if we want build localization support
|
||||
LOCALIZATION = $(shell if [ -z "$(DISABLE_LOCALIZATION)" ] || [ "$(DISABLE_LOCALIZATION)" = "0" ] ; then echo enabled ; else echo disabled ; fi)
|
||||
ifneq ($(LOCALIZATION), enabled)
|
||||
CFLAGS += -DNO_GETTEXT
|
||||
endif
|
||||
|
||||
# Check if we can build Toxic
|
||||
CHECK_LIBS = $(shell pkg-config --exists $(LIBS) || echo -n "error")
|
||||
ifneq ($(CHECK_LIBS), error)
|
||||
|
Reference in New Issue
Block a user