update of localizatio (same error message)
Sylvestre Ledru [Mon, 26 Nov 2007 17:05:06 +0000 (17:05 +0000)]
scilab/modules/action_binding/src/c/dynamic_menus.c
scilab/modules/fileio/src/c/mgetstr.c
scilab/modules/output_stream/src/c/sciprint_full.c
scilab/modules/scicos/sci_gateway/c/intcscicos.c
scilab/modules/tclsci/src/c/ScilabEval.c

index 99a493d..a1c8678 100644 (file)
@@ -105,7 +105,7 @@ int StoreCommand1 (char *command,int flag)
                          p = (CommandRec *) MALLOC (sizeof (CommandRec));
                          if (p == (CommandRec *) 0)
                                {
-                                       sciprint(_("send_command : No more memory.\n"));
+                                       sciprint(_("%s: No more memory.\n"),"send_command");
                                        return (1);
                                }
                          p->flag = 0;
@@ -113,7 +113,7 @@ int StoreCommand1 (char *command,int flag)
                          if (p->command == (char *) 0)
                                {
                                  FREE(p);
-                                 sciprint(_("send_command : No more memory.\n"));
+                                 sciprint(_("%s: No more memory.\n"),"send_command");
                                  return (1);
                                }
                          strcpy (p->command, command);
index c4e37cf..f31db91 100644 (file)
@@ -21,7 +21,7 @@ void C2F(mgetstr) (integer *fd, char **start, integer *n, integer *ierr)
                *start= (char *) MALLOC((*n+1)*sizeof(char));
                if ( *start == (char *) 0)
                {       
-                       sciprint(_("No more memory \n"));
+                       sciprint(_("%s: No more memory.\n"),"mgetstr");
                        *ierr=1;
                        return;
                }
@@ -33,7 +33,7 @@ void C2F(mgetstr) (integer *fd, char **start, integer *n, integer *ierr)
                }
                return;
        }
-       sciprint(_("No input file \n"));
+       sciprint(_("No input file\n"));
        *ierr=1;
 }
 /*--------------------------------------------------------------------------*/
@@ -53,7 +53,7 @@ void C2F(mgetstr1) (integer *fd, char *start, integer *n, integer *ierr)
                }
                return;
        }
-       sciprint(_("No input file \n"));
+       sciprint(_("No input file\n"));
        *ierr=1;
 }
 /*--------------------------------------------------------------------------*/
index ad0728e..8ec7027 100644 (file)
@@ -35,7 +35,7 @@ void sciprint_full(char *fmt,...)
        s_buf=MALLOC(sizeof(char)*(MAXCHARSSCIPRINT_FULL+1));
        if (s_buf == (char *) 0)
        {
-               sciprint(_("sciprint_full : No more memory.\n"));
+               sciprint(_("%s: No more memory.\n"),"sciprint_full");
                return;
        }
 
@@ -53,7 +53,7 @@ void sciprint_full(char *fmt,...)
        split_s_buf=MALLOC(sizeof(char)*(colwidth+1));
        if (split_s_buf == (char *) 0)
        {
-               sciprint(_("sciprint_full : No more memory.\n"));
+               sciprint(_("%s: No more memory.\n"),"sciprint_full");
                return;
        }
 
index a35053c..b3787a4 100644 (file)
@@ -1916,7 +1916,7 @@ int intscicosimc(fname,fname_len)
   nelem+=outtbsz[j*2]*outtbsz[(j*2)+1];
   if ((outtb_elem=(outtb_el *) REALLOC(outtb_elem,nelem*sizeof(outtb_el)))==NULL)
   {
-   Scierror(999,"%s : No more free memory.\n",fname);
+   Scierror(999,"%s : No more memory.\n",fname);
    FREE(outtbptr);
    FREE(outtbtyp);
    FREE(outtbsz);
@@ -3657,7 +3657,7 @@ int intbuildouttb(fname)
 
   if (ierr==-1)
   {
-   Scierror(999,"%s : No more free memory.\n",fname);
+   Scierror(999,"%s : No more memory.\n",fname);
    FREE(lnksz);
    FREE(lnktyp);
    return 0;
index 7999946..e9c3e14 100644 (file)
@@ -62,7 +62,7 @@ int TCL_EvalScilabCmd(ClientData clientData,Tcl_Interp * theinterp,int objc,CONS
       command = (char *) MALLOC (bsiz * sizeof (char));
       if (command == (char *) 0)
       {
-               sciprint(_("TCL_EvalScilabCmd: No more memory.\n"));
+               sciprint(_("%s: No more memory.\n"),"TCL_EvalScilabCmd");
         return TCL_ERROR;
       }
       memset(command,'\0',bsiz);
@@ -74,7 +74,7 @@ int TCL_EvalScilabCmd(ClientData clientData,Tcl_Interp * theinterp,int objc,CONS
       command = (char *) MALLOC ((strlen (AsciiFromUTF8) + 1) * sizeof (char));
       if (command == (char *) 0)
       {
-                 sciprint(_("TCL_EvalScilabCmd: No more memory.\n"));
+                 sciprint(_("%s: No more memory.\n"));
           return TCL_ERROR;
       }
       strcpy(command,AsciiFromUTF8);
@@ -115,7 +115,7 @@ int TCL_EvalScilabCmd(ClientData clientData,Tcl_Interp * theinterp,int objc,CONS
         comm[ncomm] = (char *) MALLOC (bsiz+1);
         if (comm[ncomm] == (char *) 0)
         {
-                       sciprint(_("TCL_EvalScilabCmd: No more memory.\n"));
+                       sciprint(_("%s: No more memory.\n"),"TCL_EvalScilabCmd");
                        return TCL_ERROR;
         }
         seqf[ncomm]=GetCommand (comm[ncomm]);