mirror of https://github.com/ericonr/ep.git
Change translated strings to .c file.
This commit is contained in:
parent
fdf2b43b34
commit
780151cfee
6
Makefile
6
Makefile
|
@ -1,5 +1,5 @@
|
||||||
LANGUAGE = PORTUGUESE
|
LANGUAGE = po/strings_pt.c
|
||||||
CFLAGS = -g -Og -pipe -Ipo/ -D$(LANGUAGE)
|
CFLAGS = -g -Og -pipe -Ipo/ -D_GNU_SOURCE
|
||||||
|
|
||||||
# defaults to cproc because "why not?"
|
# defaults to cproc because "why not?"
|
||||||
CC = cproc
|
CC = cproc
|
||||||
|
@ -9,7 +9,7 @@ bindir = $(PREFIX)/bin
|
||||||
|
|
||||||
all: ep
|
all: ep
|
||||||
|
|
||||||
ep: ep.c out.c path.c git.c
|
ep: ep.c out.c path.c git.c $(LANGUAGE)
|
||||||
|
|
||||||
install: ep
|
install: ep
|
||||||
install -m755 $< $(bindir)/ep
|
install -m755 $< $(bindir)/ep
|
||||||
|
|
|
@ -1,7 +1 @@
|
||||||
#if defined(PORTUGUESE)
|
extern const char *unknowndir;
|
||||||
# include "strings_pt.h"
|
|
||||||
#elif defined(ENGLISH)
|
|
||||||
# include "strings_en.h"
|
|
||||||
#else
|
|
||||||
# error "No language selected!"
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
const char *unknowndir = "[unknown]";
|
|
@ -1 +0,0 @@
|
||||||
static const char *unknowndir = "[unknown]";
|
|
|
@ -0,0 +1 @@
|
||||||
|
const char *unknowndir = "[desconhecido]";
|
|
@ -1 +0,0 @@
|
||||||
static const char *unknowndir = "[desconhecido]";
|
|
Loading…
Reference in New Issue