LOCALE

Used in

CONFIG  RESPONSE  Application Server RESPONSE  

Parent elements

ENVIRONMENT 

Syntax

<LOCALEAttribute Description Table
     (r)language="string"
     country="string"
     variant="string"
>

     No Child Elements
</LOCALE >
(r): Attribute or child element is required.

Description

Determines the country and language locale information for an ArcIMS site.

Notes


Attribute Descriptions for LOCALE

AttributeUsage
countryThe country code identifies differences in conventions, such as currency symbols, between countries that use the same language. Locales for a country are specified by two-letter, uppercase codes based on the ISO-3166 standard. For example, "DE" represents Germany, and "US" represents the United States.
languageThe language for a locale is specified using a two-letter lowercase code based on the ISO-639 standard. For example, Spanish is "es", English is "en", and French is "fr".
variantThe variant handles variations in conventions within a language used in one country and consists of one or more underscored keywords. For example, a European country that wants to use the Euro currency symbol can use the variant "_EURO". If a hardware platform needs to be specified such as for Windows, the variant might be "_EURO_WIN".
Back to top 

Examples for LOCALE

Example 1: When in CONFIG.
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
  <CONFIG>
    <ENVIRONMENT>
      <LOCALE country="DE" language="de" variant="" />
      <UIFONT color="0,0,0" name="Arial" size="12" style="regular" />
      <SCREEN dpi="96" />
    </ENVIRONMENT>
    <MAP>
      <PROPERTIES>
        <ENVELOPE minx="-180,0" miny="-90,0" maxx="180,0" maxy="90,0" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-18" directory="<path to WORLD ESRIDATA>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="CNTRY94" visible="true" id="0">
        <DATASET name="CNTRY94" type="polygon" workspace="shp_ws-18" />
        <SIMPLERENDERER>
          <SIMPLEPOLYGONSYMBOL fillcolor="127,227,127" filltype="solid" />
        </SIMPLERENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When in an application server RESPONSE to GETCLIENTSERVICES.
<?xml version="1.0"?>
<ARCXML version="1.1">
  <RESPONSE>
    <SERVICES>
      <SERVICE name="europe" servicegroup="ImageServer1" access="PUBLIC" type="ImageServer" version=""  status="ENABLED" >
        <IMAGE type="JPG" />
        <ENVIRONMENT>
          <LOCALE country="US" language="en" variant="" />
          <UIFONT name="Arial" />
        </ENVIRONMENT>
        <CLEANUP interval="10" />
      </SERVICE>
    </SERVICES>
  </RESPONSE>
</ARCXML>

Back to top