diff options
Diffstat (limited to 'tests/i18n.c')
-rw-r--r-- | tests/i18n.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/i18n.c b/tests/i18n.c new file mode 100644 index 0000000..47a3247 --- /dev/null +++ b/tests/i18n.c @@ -0,0 +1,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; +} |