Changeset 34 for trunk/zoo-services


Ignore:
Timestamp:
Oct 1, 2010, 1:41:53 AM (14 years ago)
Author:
djay
Message:

Make ZOO Kernel able to speak the natural language you teach him by using gettext tools for creating translation files. Add basic french translation .po files as current messages.po. Gettext Domains used are zoo-kernel and zoo-services.

Location:
trunk/zoo-services
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-services/ogr/base-vect-ops/service.c

    r32 r34  
    2323 */
    2424
     25#include <libintl.h>
     26#include <locale.h>
     27#define _(String) dgettext ("zoo-services",String)
     28
    2529#include "cpl_conv.h"
    2630#include "ogr_api.h"
     
    2832#include "geos_c.h"
    2933#include "service.h"
     34
    3035
    3136extern "C" {
     
    479484    }
    480485    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."));
    482487      fprintf(stderr,"SERVICE FAILED !\n");
    483488      return SERVICE_FAILED;
  • trunk/zoo-services/utils/status/service.c

    r32 r34  
    2222 * THE SOFTWARE.
    2323 */
     24
    2425#include "service.h"
    2526
     
    7576    }else{
    7677      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);
    7879      setMapInMaps(conf,"lenv","message",tmp);
    7980      return SERVICE_FAILED;
     
    8182    if(hasFile<0){
    8283      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);
    8485      setMapInMaps(conf,"lenv","message",tmp);
    8586      return SERVICE_FAILED;
     
    107108    else{
    108109      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);
    110111      setMapInMaps(conf,"lenv","message",tmp);
    111112      return SERVICE_FAILED;
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png