~libecbufr-dev/libecbufr/trunk

« back to all changes in this revision

Viewing changes to API/Sources/bufr_desc.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:
36
36
#include "bufr_linklist.h"
37
37
#include "bufr_array.h"
38
38
#include "bufr_value.h"
39
 
 
 
39
#include "bufr_i18n.h"
40
40
 
41
41
static int bufr_check_class31_set( BufrDescriptor *cb );
42
42
static void print_set_value_error( BufrDescriptor *cb, char *valstr );
168
168
   if (dup == NULL) 
169
169
      {
170
170
      if (bufr_is_debug())
171
 
         bufr_print_debug( "Error in bufr_dupl_descriptor(): cannot copy NULL in bufr_dupl_descriptor\n" );
 
171
         bufr_print_debug( _("Error in bufr_dupl_descriptor(): cannot copy NULL in bufr_dupl_descriptor\n") );
172
172
      return NULL;
173
173
      }
174
174
 
554
554
         {
555
555
         char errmsg[256];
556
556
 
557
 
         sprintf( errmsg, "Warning: %d has no value to set\n", cb->descriptor );
 
557
         sprintf( errmsg, _("Warning: %d has no value to set\n"), cb->descriptor );
558
558
         bufr_print_debug( errmsg );
559
559
         }
560
560
      return rtrn;
573
573
            {
574
574
            char errmsg[256];
575
575
 
576
 
            sprintf( errmsg, "Warning: %d value %f is out of range [%f,%f]\n", 
 
576
            sprintf( errmsg, _("Warning: %d value %f is out of range [%f,%f]\n"), 
577
577
                  cb->descriptor, fval, min, max );
578
578
            bufr_print_debug( errmsg );
579
579
            }
641
641
      {
642
642
      if (bufr_is_debug())
643
643
         {
644
 
         sprintf( errmsg, "Warning: %d has no value to set\n", cb->descriptor );
 
644
         sprintf( errmsg, _("Warning: %d has no value to set\n"), cb->descriptor );
645
645
         bufr_print_debug( errmsg );
646
646
         }
647
647
      return rtrn;
656
656
      else
657
657
         {
658
658
         bufr_value_set_double( cb->value, bufr_get_max_double() );
659
 
         sprintf( errmsg, "Warning: %d value %f is out of range [%f,%f]\n", 
 
659
         sprintf( errmsg, _("Warning: %d value %f is out of range [%f,%f]\n"), 
660
660
               cb->descriptor, dval, min, max );
661
661
         bufr_print_debug( errmsg );
662
662
         }
721
721
      {
722
722
      if (bufr_is_debug())
723
723
         {
724
 
         sprintf( errmsg, "Warning: %d has no value to set\n", cb->descriptor );
 
724
         sprintf( errmsg, _("Warning: %d has no value to set\n"), cb->descriptor );
725
725
         bufr_print_debug( errmsg );
726
726
         }
727
727
      return rtrn;
738
738
         rtrn = bufr_value_set_int32( cb->value, -1 );
739
739
         if ( ival != -1 )
740
740
            {
741
 
            sprintf( errmsg, "Warning: %d value %d is out of range [%.0f,%.0f]\n", 
 
741
            sprintf( errmsg, _("Warning: %d value %d is out of range [%.0f,%.0f]\n"), 
742
742
               cb->descriptor, ival, min, max );
743
743
            bufr_print_debug( errmsg );
744
744
            }
907
907
      {
908
908
      if (bufr_is_debug())
909
909
         {
910
 
         sprintf( errmsg, "Warning: %d has no value to set\n", cb->descriptor );
 
910
         sprintf( errmsg, _("Warning: %d has no value to set\n"), cb->descriptor );
911
911
         bufr_print_debug( errmsg );
912
912
         }
913
913
      return rtrn;
937
937
   {
938
938
   char errmsg[256];
939
939
 
940
 
   strcpy( errmsg, "Warning: cannot set value for" );
 
940
   strcpy( errmsg, _("Warning: cannot set value for") );
941
941
   bufr_print_descriptor( errmsg, cb );
942
942
   bufr_print_debug( errmsg );
943
 
   sprintf( errmsg, "with value=%s\n", valstr );
 
943
   sprintf( errmsg, _("with value=%s\n"), valstr );
944
944
   bufr_print_debug( errmsg );
945
945
   }
946
946