Changeset 34 for trunk/zoo-services
- Timestamp:
- Oct 1, 2010, 1:41:53 AM (14 years ago)
- Location:
- trunk/zoo-services
- Files:
-
- 10 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-services/ogr/base-vect-ops/service.c
r32 r34 23 23 */ 24 24 25 #include <libintl.h> 26 #include <locale.h> 27 #define _(String) dgettext ("zoo-services",String) 28 25 29 #include "cpl_conv.h" 26 30 #include "ogr_api.h" … … 28 32 #include "geos_c.h" 29 33 #include "service.h" 34 30 35 31 36 extern "C" { … … 479 484 } 480 485 if(geometry2==NULL){ 481 setMapInMaps(conf,"lenv","message", "Unable to parse input geometry for InputEntity2.");486 setMapInMaps(conf,"lenv","message",_("Unable to parse input geometry for InputEntity2.")); 482 487 fprintf(stderr,"SERVICE FAILED !\n"); 483 488 return SERVICE_FAILED; -
trunk/zoo-services/utils/status/service.c
r32 r34 22 22 * THE SOFTWARE. 23 23 */ 24 24 25 #include "service.h" 25 26 … … 75 76 }else{ 76 77 char tmp[1024]; 77 snprintf(tmp,1024, "GetStatus was unable to use the tmpPath value set in main.cfg file as directory %s.",tmpTmap->value);78 snprintf(tmp,1024,_ss("GetStatus was unable to use the tmpPath value set in main.cfg file as directory %s."),tmpTmap->value); 78 79 setMapInMaps(conf,"lenv","message",tmp); 79 80 return SERVICE_FAILED; … … 81 82 if(hasFile<0){ 82 83 char tmp[1024]; 83 snprintf(tmp,1024, "GetStatus was unable to find any cache file for Service ID %s.",tmpMap->value);84 snprintf(tmp,1024,_ss("GetStatus was unable to find any cache file for Service ID %s."),tmpMap->value); 84 85 setMapInMaps(conf,"lenv","message",tmp); 85 86 return SERVICE_FAILED; … … 107 108 else{ 108 109 char tmp[1024]; 109 sprintf(tmp, "ZOO GetStatus Service was unable to parse the cache xml file available for the Service ID %s.",tmpMap->value);110 sprintf(tmp,_ss("ZOO GetStatus Service was unable to parse the cache xml file available for the Service ID %s."),tmpMap->value); 110 111 setMapInMaps(conf,"lenv","message",tmp); 111 112 return SERVICE_FAILED;
Note: See TracChangeset
for help on using the changeset viewer.