~libecbufr-dev/libecbufr/trunk

« back to all changes in this revision

Viewing changes to API/Sources/bufr_ddo.c

  • Committer: Michel Van Eeckhout
  • Date: 2010-03-12 16:37:56 UTC
  • mto: This revision was merged to the branch mainline in revision 109.
  • Revision ID: afsmmve@corbeau-20100312163756-n9fpy2r26y19ttxr
Modified sources for internationalisation + added m4 and po directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "bufr_tables.h"
27
27
#include "bufr_ddo.h"
28
28
#include "bufr_meta.h"
 
29
#include "bufr_i18n.h"
29
30
 
30
31
static int  bufr_match_increment ( int desc );
31
32
static void free_af_list         ( LinkedList *list );
137
138
         ++dpbm->nb_dp;
138
139
         if (isdebug)
139
140
            {
140
 
            sprintf( buf, "DPBM Pos=%d ON\n", i );
 
141
            sprintf( buf, _("DPBM Pos=%d ON\n"), i );
141
142
            bufr_print_debug( buf );
142
143
            }
143
144
         }
145
146
      }
146
147
   if (isdebug)
147
148
      {
148
 
      sprintf( buf, "DPBM DPCount=%d\n", dpbm->nb_dp );
 
149
      sprintf( buf, _("DPBM DPCount=%d\n"), dpbm->nb_dp );
149
150
      bufr_print_debug( buf );
150
151
      }
151
152
   }
369
370
         break;
370
371
      default :
371
372
         {
372
 
         sprintf( errmsg, "Warning: unsupported Table C operator %d in BUFR version %d\n", 
 
373
         sprintf( errmsg, _("Warning: unsupported Table C operator %d in BUFR version %d\n"), 
373
374
               cb->descriptor, version );
374
375
         bufr_print_debug( errmsg );
375
376
         return -1;
417
418
      case 25 :
418
419
      case 32 : 
419
420
      case 35 : 
420
 
         sprintf( errmsg, "Warning: Table C operator %d has not been implemented\n", x );
 
421
         sprintf( errmsg, _("Warning: Table C operator %d has not been implemented\n"), x );
421
422
         bufr_print_debug( errmsg );
422
423
         return -1;
423
424
      default :
470
471
      case 43 : 
471
472
         {
472
473
         char errmsg[256];
473
 
         sprintf( errmsg, "Warning: Table C operator %d has not been implemented\n", x );
 
474
         sprintf( errmsg, _("Warning: Table C operator %d has not been implemented\n"), x );
474
475
         bufr_print_debug( errmsg );
475
476
         return -1;
476
477
         }
512
513
            {
513
514
            char errmsg[256];
514
515
 
515
 
            sprintf( errmsg, "Warning: unsupported IEEE floating point width=%d, ignored\n", y );
 
516
            sprintf( errmsg, _("Warning: unsupported IEEE floating point width=%d, ignored\n"), y );
516
517
            bufr_print_debug( errmsg );
517
518
            }
518
519
         break;
599
600
 
600
601
      if (bufr_is_debug())
601
602
         {
602
 
         sprintf( buf, "Matching increment %.6d to %.6d incr=%f\n", code, code2, value );
 
603
         sprintf( buf, _("Matching increment %.6d to %.6d incr=%f\n"), code, code2, value );
603
604
         bufr_print_debug( buf );
604
605
         }
605
606
       }
734
735
 
735
736
   if (isdebug)
736
737
      {
737
 
      sprintf( buf, "Associating %d\n", bc->descriptor );
 
738
      sprintf( buf, _("Associating %d\n"), bc->descriptor );
738
739
      bufr_print_debug( buf );
739
740
      }
740
741
 
747
748
 
748
749
      if (isdebug)
749
750
         {
750
 
         sprintf( buf, "   %d=%f npos=%d\n", tlc->descriptor, tlc->value, npos );
 
751
         sprintf( buf, _("   %d=%f npos=%d\n"), tlc->descriptor, tlc->value, npos );
751
752
         bufr_print_debug( buf );
752
753
         }
753
754
      }