[GRASS-SVN] r46188 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 4 15:37:49 EDT 2011
Author: martinl
Date: 2011-05-04 12:37:49 -0700 (Wed, 04 May 2011)
New Revision: 46188
Modified:
grass/trunk/ps/ps.map/do_scalebar.c
Log:
ps.map: localize unit label in scalebar
Modified: grass/trunk/ps/ps.map/do_scalebar.c
===================================================================
--- grass/trunk/ps/ps.map/do_scalebar.c 2011-05-04 19:36:56 UTC (rev 46187)
+++ grass/trunk/ps/ps.map/do_scalebar.c 2011-05-04 19:37:49 UTC (rev 46188)
@@ -4,6 +4,7 @@
#include <string.h>
#include <math.h>
+#include <grass/glocale.h>
#include "local_proto.h"
#include "distance.h"
@@ -192,15 +193,15 @@
if (sb.units == SB_UNITS_AUTO)
strcpy(num, G_database_unit_name(TRUE));
else if(sb.units == SB_UNITS_METERS)
- strcpy(num, "meters");
+ strcpy(num, _("meters"));
else if(sb.units == SB_UNITS_KM)
- strcpy(num, "kilometers");
+ strcpy(num, _("kilometers"));
else if(sb.units == SB_UNITS_FEET)
- strcpy(num, "feet");
+ strcpy(num, _("feet"));
else if(sb.units == SB_UNITS_MILES)
- strcpy(num, "miles");
+ strcpy(num, _("miles"));
else if(sb.units == SB_UNITS_NMILES)
- strcpy(num, "nautical miles");
+ strcpy(num, _("nautical miles"));
text_box_path(72.0 * (x + length/2), 72.0 * (PS.page_height - (sb.y + 0.075)),
CENTER, UPPER, num, sb.fontsize, 0);
More information about the grass-commit
mailing list