summaryrefslogtreecommitdiff
path: root/tests/i18n.c
blob: 47a324709bdd14a21ce5d83dae6575825ca92aa1 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "../src/i18n.c"

#include <stdlib.h>

#include "../src/logerr.h"
#include "../src/catalog.h"


int
main(void) {
	int rc = 0;

	if (getenv("DUMP_TRANSLATABLE_STRINGS")) {
		if (dump_translatable_strings(MSGS)) {
			logerr("dump_translatable_strings(MSGS)\n");
			rc = -1;
			goto out;
		}
	}

out:
	return !!rc;
}