Change translated strings to .c file.

This commit is contained in:
Érico Rolim 2021-02-22 01:57:46 -03:00
parent fdf2b43b34
commit 780151cfee
6 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,5 @@
LANGUAGE = PORTUGUESE
CFLAGS = -g -Og -pipe -Ipo/ -D$(LANGUAGE)
LANGUAGE = po/strings_pt.c
CFLAGS = -g -Og -pipe -Ipo/ -D_GNU_SOURCE
# defaults to cproc because "why not?"
CC = cproc
@ -9,7 +9,7 @@ bindir = $(PREFIX)/bin
all: ep
ep: ep.c out.c path.c git.c
ep: ep.c out.c path.c git.c $(LANGUAGE)
install: ep
install -m755 $< $(bindir)/ep

View File

@ -1,7 +1 @@
#if defined(PORTUGUESE)
# include "strings_pt.h"
#elif defined(ENGLISH)
# include "strings_en.h"
#else
# error "No language selected!"
#endif
extern const char *unknowndir;

1
po/strings_en.c Normal file
View File

@ -0,0 +1 @@
const char *unknowndir = "[unknown]";

View File

@ -1 +0,0 @@
static const char *unknowndir = "[unknown]";

1
po/strings_pt.c Normal file
View File

@ -0,0 +1 @@
const char *unknowndir = "[desconhecido]";

View File

@ -1 +0,0 @@
static const char *unknowndir = "[desconhecido]";