Disabling LP

The disable operation is used to enable LP on the server. This operation is available on Linux only.

Note: You cannot disable the default language pack.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet disabling LP's includes the disable operation node:

<packet version="1.5.0.0">
<locale>
   <disable>
   …
   </disable>
</locale>
</packet>

 

The disable node is presented by type LocaleDisableInput (locale.xsd), and its graphical representation is as follows:

 

Response Packet Structure

The disable node of the output XML packet is presented by type LocaleDisableOutput (locale.xsd) and structured as follows:

 

 

Samples

Disabling a single LP

The following request packet disables French LP:

<packet>
  <locale>
    <disable>
        <filter>
        <id>fr-FR</id>
        </filter>
    </disable>
  </locale>
</packet>

Response:

<packet>
  <locale>
    <disable>
      <result>
        <status>ok</status>
        <filter-id>fr-FR</filter-id>
        <id>fr-FR</id>
      </result>
    </disable>
  </locale>
</packet>

 

If the LP was not found, the response from the server looks as follows:

<packet>
  <locale>
    <disable>
      <result>
        <status>error</status>
        <errcode>1013</errcode>
        <errtext>Locale does not exist</errtext>
        <filter-id>fr-FR</filter-id>
        <id>fr-FR</id>
      </result>
    </disable>
  </locale>
</packet> 
Disabling multiple LP's

The following request packet disables French and Russian LP's:

<packet>
  <locale>
    <disable>
        <filter>
          <id>fr-FR</id>
          <id>ru-RU</id>
        </filter>
    </disable>
  </locale>
</packet>

Response:

<packet>
  <locale>
    <disable>
      <result>
        <status>error</status>
        <errcode>1013</errcode>
        <errtext>Locale does not exist</errtext>
        <filter-id>fr-FR</filter-id>
        <id>en-US</id>
      </result>
      <result>
        <status>ok</status>
        <filter-id>ru-RU</filter-id>
        <id>ru-RU</id>
      </result>
    </disable>
  </locale>
</packet>