Ver código fonte

fixed unlucky formatted messages (thanks to Glynn)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32588 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 16 anos atrás
pai
commit
cf621e9de7

+ 1 - 2
raster3d/base/r3.mask.main.c

@@ -156,8 +156,7 @@ int main(int argc, char *argv[])
 
 
 
 
     if (G3d_maskFileExists())
     if (G3d_maskFileExists())
-	G_fatal_error(_
-		      ("Cannot create mask file: G3D_MASK already exists!\n Use 'g.remove rast3d=G3D_MASK' to remove the existing mask."));
+	G_fatal_error(_("Cannot create mask file: G3D_MASK already exists!\n Use 'g.remove rast3d=G3D_MASK' to remove the existing mask."));
 
 
     setParams();
     setParams();
     if (G_parser(argc, argv))
     if (G_parser(argc, argv))

+ 1 - 2
raster3d/r3.cross.rast/main.c

@@ -296,8 +296,7 @@ int main(int argc, char *argv[])
     /*If not equal, set the 2D windows correct */
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
     if (rows != region.rows || cols != region.cols) {
 	G_message
 	G_message
-	    (_
-	     ("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+	    (_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
 	G_get_set_window(&window2d);
 	G_get_set_window(&window2d);
 	window2d.ns_res = region.ns_res;
 	window2d.ns_res = region.ns_res;
 	window2d.ew_res = region.ew_res;
 	window2d.ew_res = region.ew_res;

+ 4 - 8
raster3d/r3.gwflow/main.c

@@ -190,14 +190,11 @@ int main(int argc, char *argv[])
     solver = param.solver->answer;
     solver = param.solver->answer;
 
 
     if (strcmp(solver, N_SOLVER_DIRECT_LU) == 0 && param.sparse->answer)
     if (strcmp(solver, N_SOLVER_DIRECT_LU) == 0 && param.sparse->answer)
-	G_fatal_error(_
-		      ("The direct LU solver do not work with sparse matrices"));
+	G_fatal_error(_("The direct LU solver do not work with sparse matrices"));
     if (strcmp(solver, N_SOLVER_DIRECT_GAUSS) == 0 && param.sparse->answer)
     if (strcmp(solver, N_SOLVER_DIRECT_GAUSS) == 0 && param.sparse->answer)
-	G_fatal_error(_
-		      ("The direct Gauss solver do not work with sparse matrices"));
+	G_fatal_error(_("The direct Gauss solver do not work with sparse matrices"));
     if (strcmp(solver, N_SOLVER_DIRECT_CHOLESKY) == 0 && param.sparse->answer)
     if (strcmp(solver, N_SOLVER_DIRECT_CHOLESKY) == 0 && param.sparse->answer)
-	G_fatal_error(_
-		      ("The direct cholesky solver do not work with sparse matrices"));
+	G_fatal_error(_("The direct cholesky solver do not work with sparse matrices"));
 
 
 
 
 
 
@@ -299,8 +296,7 @@ int main(int argc, char *argv[])
 	N_solver_cholesky(les);
 	N_solver_cholesky(les);
 
 
     if (les == NULL)
     if (les == NULL)
-	G_fatal_error(_
-		      ("Unable to create and solve the linear equation system"));
+	G_fatal_error(_("Unable to create and solve the linear equation system"));
 
 
 
 
     /*write the result to the output file and copy the values to the data->phead array */
     /*write the result to the output file and copy the values to the data->phead array */

+ 1 - 2
raster3d/r3.in.ascii/main.c

@@ -188,8 +188,7 @@ asciiToG3d(FILE * fp, G3D_Region * region, int convertNull, double nullValue)
 	    for (x = 0; x < region->cols; x++) {
 	    for (x = 0; x < region->cols; x++) {
 		if (fscanf(fp, "%lf", &value) != 1) {
 		if (fscanf(fp, "%lf", &value) != 1) {
 		    if (feof(fp))
 		    if (feof(fp))
-			G_warning(_
-				  ("End of file reached while still loading data."));
+			G_warning(_("End of file reached while still loading data."));
 		    G_debug(0,
 		    G_debug(0,
 			    "missing data at col=%d row=%d depth=%d last_value=[%.4f]",
 			    "missing data at col=%d row=%d depth=%d last_value=[%.4f]",
 			    x + 1, region->rows - y, z + 1, value);
 			    x + 1, region->rows - y, z + 1, value);

+ 5 - 10
raster3d/r3.out.vtk/main.c

@@ -164,21 +164,18 @@ void check_input_maps(void)
 	for (i = 0; i < 3; i++) {
 	for (i = 0; i < 3; i++) {
 	    if (param.vectormaps->answers[i] != NULL) {
 	    if (param.vectormaps->answers[i] != NULL) {
 		if (NULL == G_find_grid3(param.vectormaps->answers[i], ""))
 		if (NULL == G_find_grid3(param.vectormaps->answers[i], ""))
-		    G3d_fatalError(_
-				   ("Requested g3d vector map <%s> not found"),
+		    G3d_fatalError(_("Requested g3d vector map <%s> not found"),
 				   param.vectormaps->answers[i]);
 				   param.vectormaps->answers[i]);
 	    }
 	    }
 	    else {
 	    else {
-		G3d_fatalError(_
-			       ("Please provide three g3d vector maps [x,y,z]"));
+		G3d_fatalError(_("Please provide three g3d vector maps [x,y,z]"));
 	    }
 	    }
 	}
 	}
     }
     }
 
 
     if (param.input->answers == NULL && param.rgbmaps->answers == NULL &&
     if (param.input->answers == NULL && param.rgbmaps->answers == NULL &&
 	param.vectormaps->answers == NULL) {
 	param.vectormaps->answers == NULL) {
-	G_warning(_
-		  ("No g3d data, RGB or xyz-vector maps are provided! Will only write the geometry."));
+	G_warning(_("No g3d data, RGB or xyz-vector maps are provided! Will only write the geometry."));
     }
     }
 
 
     return;
     return;
@@ -451,8 +448,7 @@ int main(int argc, char *argv[])
 
 
 	/*If not equal, set the 2D windows correct */
 	/*If not equal, set the 2D windows correct */
 	if (rows != region.rows || cols != region.cols) {
 	if (rows != region.rows || cols != region.cols) {
-	    G_message(_
-		      ("The 2d and 3d region settings are different. The g3d settings are used to adjust the 2d region."));
+	    G_message(_("The 2d and 3d region settings are different. The g3d settings are used to adjust the 2d region."));
 	    G_get_set_window(&window2d);
 	    G_get_set_window(&window2d);
 	    window2d.ns_res = region.ns_res;
 	    window2d.ns_res = region.ns_res;
 	    window2d.ew_res = region.ew_res;
 	    window2d.ew_res = region.ew_res;
@@ -546,8 +542,7 @@ int main(int argc, char *argv[])
 	    /* Close the 3d raster map */
 	    /* Close the 3d raster map */
 	    if (!G3d_closeCell(in->map)) {
 	    if (!G3d_closeCell(in->map)) {
 		in->map = NULL;
 		in->map = NULL;
-		fatal_error(_
-			    ("Error closing 3d raster map, the VTK file may be incomplete."),
+		fatal_error(_("Error closing 3d raster map, the VTK file may be incomplete."),
 			    in);
 			    in);
 	    }
 	    }
 
 

+ 2 - 4
raster3d/r3.out.vtk/writeVTKData.c

@@ -427,8 +427,7 @@ void write_vtk_rgb_data(void *map_r, void *map_g, void *map_b,
 							   0.0);
 							   0.0);
 			/*Test of value range, the data should be 1 byte gray values */
 			/*Test of value range, the data should be 1 byte gray values */
 			if (value > 255 || value < 0) {
 			if (value > 255 || value < 0) {
-			    G_warning(_
-				      ("Wrong 3d raster map values! Values should in between 0 and 255!\n"));
+			    G_warning(_("Wrong 3d raster map values! Values should in between 0 and 255!\n"));
 			    fprintf(fp, "0 ");
 			    fprintf(fp, "0 ");
 			}
 			}
 			else {
 			else {
@@ -461,8 +460,7 @@ void write_vtk_rgb_data(void *map_r, void *map_g, void *map_b,
 							   0.0);
 							   0.0);
 			/*Test of value range, the data should be 1 byte gray values */
 			/*Test of value range, the data should be 1 byte gray values */
 			if (value > 255 || value < 0) {
 			if (value > 255 || value < 0) {
-			    G_warning(_
-				      ("Wrong 3d raster map values! Values should in between 0 and 255!\n"));
+			    G_warning(_("Wrong 3d raster map values! Values should in between 0 and 255!\n"));
 			    fprintf(fp, "0 ");
 			    fprintf(fp, "0 ");
 			}
 			}
 			else {
 			else {

+ 1 - 2
raster3d/r3.stats/main.c

@@ -603,8 +603,7 @@ int main(int argc, char *argv[])
 
 
     /* break if the wrong number of subranges are given */
     /* break if the wrong number of subranges are given */
     if (nsteps <= 0)
     if (nsteps <= 0)
-	G_fatal_error(_
-		      ("The number of subranges has to be equal or greater than 1"));
+	G_fatal_error(_("The number of subranges has to be equal or greater than 1"));
 
 
     infile = inputfile->answer;
     infile = inputfile->answer;
 
 

+ 1 - 2
raster3d/r3.to.rast/main.c

@@ -310,8 +310,7 @@ int main(int argc, char *argv[])
 	G_message(_("Raster map %i Filename: %s"), i + 1, RasterFileName);
 	G_message(_("Raster map %i Filename: %s"), i + 1, RasterFileName);
 
 
 	if (G_find_cell2(RasterFileName, ""))
 	if (G_find_cell2(RasterFileName, ""))
-	    G_message(_
-		      ("Raster map %d Filename: %s already exists. Will be overwritten!"),
+	    G_message(_("Raster map %d Filename: %s already exists. Will be overwritten!"),
 		      i + 1, RasterFileName);
 		      i + 1, RasterFileName);
 
 
 	if (output_type == FCELL_TYPE)
 	if (output_type == FCELL_TYPE)