i18ntest.c
branchtrunk
changeset 0 474a1293c3c0
equal deleted inserted replaced
-1:000000000000 0:474a1293c3c0
       
     1 
       
     2 #include <stdio.h>
       
     3 #include <stdlib.h>
       
     4 
       
     5 #undef APIVERSNUM
       
     6 #define APIVERSNUM 10307 // to keep common.h happy
       
     7 
       
     8 #include "i18n.h"
       
     9 #include "i18n.c"
       
    10 
       
    11 int main(int argc, char *argv[])
       
    12 {
       
    13   if(argc<2) return 1;
       
    14   int num=atoi(argv[1]);
       
    15   if(num<1 || num>I18nNumLanguages) return 1;
       
    16 
       
    17   const tI18nPhrase *p=Phrases;
       
    18   while(*p[0]) {
       
    19     if((*p)[num-1]==0 || *((*p)[num-1])==0)
       
    20       printf("missing translation for '%s'\n",*p[0]);
       
    21     p++;
       
    22     }
       
    23 }
       
    24