Subversion Repositories SvarDOS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2082 mateusz.vi 1
#include <stdio.h>
2
 
3
#include "../svarlang.h"
4
 
5
 
6
int main(void) {
7
  const char *larr[] = {"EN", "PL", NULL};
8
  const char **l;
9
  int r;
10
 
11
  for (l = larr; *l != NULL; l++) {
12
    printf("\nLOADING LANG=%s\n", *l);
13
 
14
    r = svarlang_load("out.lng", *l);
15
    if (r != 0) {
16
      printf("svarlang_load('out.lng', '%s') err %d\n", *l, r);
17
      return(1);
18
    }
19
 
20
    for (r = 0; r < 20; r++) {
21
      const char *s = svarlang_strid(r);
22
      if (s[0] == 0) continue;
23
      printf("0.%d = '%s'\n", r, s);
24
    }
25
  }
26
 
27
  return(0);
28
}