Browse Source

better phrasing

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41061 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 15 years ago
parent
commit
81db5eb70b

+ 8 - 8
vector/lidar/lidarlib/raster.c

@@ -78,7 +78,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		    else if ((*point->y < Overlap.S) && (*point->y > General.S)) {	/*(1) */
@@ -93,7 +93,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		    else if ((*point->y <= Overlap.N) && (*point->y >= Overlap.S)) {	/*(1) */
@@ -106,7 +106,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		}
@@ -123,7 +123,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		    else if ((*point->y < Overlap.S) && (*point->y > General.S)) {	/*(2) */
@@ -138,7 +138,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		    else if ((*point->y >= Overlap.S) && (*point->y <= Overlap.N)) {	/*(2) */
@@ -151,7 +151,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		}
@@ -166,7 +166,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		    else if ((*point->y < Overlap.S) && (*point->y > General.S)) {	/*(1) */
@@ -179,7 +179,7 @@ P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
 			db_append_string(&sql, buf);
 
 			if (db_execute_immediate(driver, &sql) != DB_OK)
-			    G_fatal_error(_("Unable to write to table: %s"),
+			    G_fatal_error(_("Unable to access table <%s>"),
 					  buf);
 		    }
 		}

+ 9 - 9
vector/lidar/v.lidar.correction/main.c

@@ -37,7 +37,7 @@ int main(int argc, char *argv[])
     int dim_vect, nparameters, BW, npoints, nrows, ncols;
     int nsply, nsplx, nsplx_adj, nsply_adj;
     int nsubregion_col, nsubregion_row;
-    int subzone = 0, nsubzones = 0;
+    int subregion = 0, nsubregions = 0;
     const char *dvr, *db, *mapset;
     char table_name[GNAME_MAX];
     char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
@@ -277,10 +277,10 @@ int main(int argc, char *argv[])
     P_get_orlo(P_BILINEAR, &dims, passoE, passoN);
     P_set_dim(&dims, passoE, passoN, &nsplx_adj, &nsply_adj);
 
-    G_verbose_message("adjusted EW splines %d", nsplx_adj);
-    G_verbose_message("adjusted NS splines %d", nsply_adj);
+    G_verbose_message(_("adjusted EW splines %d"), nsplx_adj);
+    G_verbose_message(_("adjusted NS splines %d"), nsply_adj);
 
-    /* calculate number of subzones */
+    /* calculate number of subregions */
     orloE = dims.latoE - dims.overlap - 2 * dims.orlo_v;
     orloN = dims.latoN - dims.overlap - 2 * dims.orlo_h;
 
@@ -295,7 +295,7 @@ int main(int argc, char *argv[])
     if (nsubregion_row < 0)
 	nsubregion_row = 0;
 
-    nsubzones = nsubregion_row * nsubregion_col;
+    nsubregions = nsubregion_row * nsubregion_col;
 
     elaboration_reg.south = original_reg.north;
     last_row = FALSE;
@@ -331,9 +331,9 @@ int main(int argc, char *argv[])
 
 	while (last_column == FALSE) {	/* For each column */
 
-	    subzone++;
-	    if (nsubzones > 1)
-		G_message(_("subzone %d of %d"), subzone, nsubzones);
+	    subregion++;
+	    if (nsubregions > 1)
+		G_message(_("subregion %d of %d"), subregion, nsubregions);
 
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 			  GENERAL_COLUMN);
@@ -428,7 +428,7 @@ int main(int argc, char *argv[])
 	    }
 	    else {
 		G_free(observ);
-		G_warning(_("No data within this subzone. "
+		G_warning(_("No data within this subregion. "
 			    "Consider changing the spline step."));
 	    }
 	    G_free(lcat);

+ 9 - 9
vector/lidar/v.lidar.edgedetection/main.c

@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
 {
     /* Variables' declarations */
     int nsplx_adj, nsply_adj;
-    int nsubregion_col, nsubregion_row, subzone = 0, nsubzones = 0;
+    int nsubregion_col, nsubregion_row, subregion = 0, nsubregions = 0;
     double N_extension, E_extension, orloE, orloN;
     int dim_vect, nparameters, BW, npoints;
     double lambda_B, lambda_F, grad_H, grad_L, alpha, mean;
@@ -297,10 +297,10 @@ int main(int argc, char *argv[])
     P_get_orlo(P_BICUBIC, &dims, passoE, passoN);
     P_set_dim(&dims, passoE, passoN, &nsplx_adj, &nsply_adj);
 
-    G_verbose_message("adjusted EW splines %d", nsplx_adj);
-    G_verbose_message("adjusted NS splines %d", nsply_adj);
+    G_verbose_message(_("adjusted EW splines %d"), nsplx_adj);
+    G_verbose_message(_("adjusted NS splines %d"), nsply_adj);
 
-    /* calculate number of subzones */
+    /* calculate number of subregions */
     orloE = dims.latoE - dims.overlap - 2 * dims.orlo_v;
     orloN = dims.latoN - dims.overlap - 2 * dims.orlo_h;
 
@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
     if (nsubregion_row < 0)
 	nsubregion_row = 0;
 
-    nsubzones = nsubregion_row * nsubregion_col;
+    nsubregions = nsubregion_row * nsubregion_col;
 
     elaboration_reg.south = original_reg.north;
     last_row = FALSE;
@@ -351,9 +351,9 @@ int main(int argc, char *argv[])
 
 	while (last_column == FALSE) {	/* For each column */
 
-	    subzone++;
-	    if (nsubzones > 1)
-		G_message(_("subzone %d of %d"), subzone, nsubzones);
+	    subregion++;
+	    if (nsubregions > 1)
+		G_message(_("subregion %d of %d"), subregion, nsubregions);
 
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 			  GENERAL_COLUMN);
@@ -459,7 +459,7 @@ int main(int argc, char *argv[])
 	    }			/* IF */
 	    else {
 		G_free(observ);
-		G_warning(_("No data within this subzone. "
+		G_warning(_("No data within this subregion. "
 			    "Consider changing the spline step."));
 	    }
 	}			/*! END WHILE; last_column = TRUE */

+ 6 - 6
vector/lidar/v.lidar.growing/main.c

@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
     /* Variables' declarations */
     int row, nrows, col, ncols, MaxPoints;
     int nsubregion_col, nsubregion_row;
-    int subzone = 0, nsubzones = 0;
+    int subregion = 0, nsubregions = 0;
     int last_row, last_column;
     int nlines, nlines_first, line_num;
     int more;
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
     ew_resol = original_reg.ew_res;
     ns_resol = original_reg.ns_res;
 
-    /* calculate number of subzones */
+    /* calculate number of subregions */
     nsubregion_col = ceil((original_reg.east - original_reg.west) / (LATO * ew_resol)) + 0.5;
     nsubregion_row = ceil((original_reg.north - original_reg.south) / (LATO * ns_resol)) + 0.5;
 
@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
     if (nsubregion_row < 0)
 	nsubregion_row = 0;
 
-    nsubzones = nsubregion_row * nsubregion_col;
+    nsubregions = nsubregion_row * nsubregion_col;
 
     /* Subdividing and working with tiles */
     elaboration_reg.south = original_reg.north;
@@ -246,9 +246,9 @@ int main(int argc, char *argv[])
 	while (last_column == FALSE) {	/* For each strip of LATO columns */
 	    struct bound_box elaboration_box;
 
-	    subzone++;
-	    if (nsubzones > 1)
-		G_message(_("subzone %d of %d"), subzone, nsubzones);
+	    subregion++;
+	    if (nsubregions > 1)
+		G_message(_("subregion %d of %d"), subregion, nsubregions);
 
 	    elaboration_reg.west = elaboration_reg.east;
 	    if (elaboration_reg.west < original_reg.west)	/* First column */

+ 9 - 9
vector/lidar/v.outlier/main.c

@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
     /* Variables' declarations */
     int nsplx_adj, nsply_adj;
     int nsubregion_col, nsubregion_row;
-    int subzone = 0, nsubzones = 0;
+    int subregion = 0, nsubregions = 0;
     double N_extension, E_extension, orloE, orloN;
     int dim_vect, nparameters, BW, npoints;
     double mean, lambda;
@@ -274,10 +274,10 @@ int main(int argc, char *argv[])
     P_get_orlo(P_BILINEAR, &dims, passoE, passoN);
     P_set_dim(&dims, passoE, passoN, &nsplx_adj, &nsply_adj);
 
-    G_verbose_message("adjusted EW splines %d", nsplx_adj);
-    G_verbose_message("adjusted NS splines %d", nsply_adj);
+    G_verbose_message(_("adjusted EW splines %d"), nsplx_adj);
+    G_verbose_message(_("adjusted NS splines %d"), nsply_adj);
 
-    /* calculate number of subzones */
+    /* calculate number of subregions */
     orloE = dims.latoE - dims.overlap - 2 * dims.orlo_v;
     orloN = dims.latoN - dims.overlap - 2 * dims.orlo_h;
 
@@ -292,7 +292,7 @@ int main(int argc, char *argv[])
     if (nsubregion_row < 0)
 	nsubregion_row = 0;
 
-    nsubzones = nsubregion_row * nsubregion_col;
+    nsubregions = nsubregion_row * nsubregion_col;
 
     elaboration_reg.south = original_reg.north;
     last_row = FALSE;
@@ -328,9 +328,9 @@ int main(int argc, char *argv[])
 
 	while (last_column == FALSE) {	/* For each column */
 
-	    subzone++;
-	    if (nsubzones > 1)
-		G_message(_("subzone %d of %d"), subzone, nsubzones);
+	    subregion++;
+	    if (nsubregions > 1)
+		G_message(_("subregion %d of %d"), subregion, nsubregions);
 
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 			  GENERAL_COLUMN);
@@ -421,7 +421,7 @@ int main(int argc, char *argv[])
 	    }			/*! END IF; npoints > 0 */
 	    else {
 		G_free(observ);
-		G_warning(_("No data within this subzone. "
+		G_warning(_("No data within this subregion. "
 			    "Consider changing the spline step."));
 	    }
 	}			/*! END WHILE; last_column = TRUE */

+ 9 - 9
vector/lidar/v.surf.bspline/main.c

@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
     /* Variable declarations */
     int nsply, nsplx, nrows, ncols, nsplx_adj, nsply_adj;
     int nsubregion_col, nsubregion_row, subregion_row, subregion_col;
-    int subzone = 0, nsubzones = 0;
+    int subregion = 0, nsubregions = 0;
     int last_row, last_column, grid, bilin, ext, flag_auxiliar, cross;	/* booleans */
     double passoN, passoE, lambda, mean;
     double N_extension, E_extension, orloE, orloN;
@@ -412,10 +412,10 @@ int main(int argc, char *argv[])
     P_get_orlo(bilin, &dims, passoE, passoN);
     P_set_dim(&dims, passoE, passoN, &nsplx_adj, &nsply_adj);
 
-    G_verbose_message("adjusted EW splines %d", nsplx_adj);
-    G_verbose_message("adjusted NS splines %d", nsply_adj);
+    G_verbose_message(_("adjusted EW splines %d"), nsplx_adj);
+    G_verbose_message(_("adjusted NS splines %d"), nsply_adj);
 
-    /* calculate number of subzones */
+    /* calculate number of subregions */
     orloE = dims.latoE - dims.overlap - 2 * dims.orlo_v;
     orloN = dims.latoN - dims.overlap - 2 * dims.orlo_h;
 
@@ -430,7 +430,7 @@ int main(int argc, char *argv[])
     if (nsubregion_row < 0)
 	nsubregion_row = 0;
 
-    nsubzones = nsubregion_row * nsubregion_col;
+    nsubregions = nsubregion_row * nsubregion_col;
 
     /* Creating line and categories structs */
     points = Vect_new_line_struct();
@@ -475,9 +475,9 @@ int main(int argc, char *argv[])
 	    int npoints = 0;
 
 	    subregion_col++;
-	    subzone++;
-	    if (nsubzones > 1)
-		G_message(_("subzone %d of %d"), subzone, nsubzones);
+	    subregion++;
+	    if (nsubregions > 1)
+		G_message(_("subregion %d of %d"), subregion, nsubregions);
 
 	    P_set_regions(&elaboration_reg, &general_box, &overlap_box, dims,
 			  GENERAL_COLUMN);
@@ -678,7 +678,7 @@ int main(int argc, char *argv[])
 	    }
 	    else {
 		G_free(observ);
-		G_warning(_("No data within this subzone. "
+		G_warning(_("No data within this subregion. "
 			    "Consider changing the spline step."));
 	    }
 	}			/*! END WHILE; last_column = TRUE */