API - Planyo Web Services - set_translation

Sie sind hier: Planyo » Hilfe » API » set_translation

set_translation (version 1)

Description:

Use this function to add text translations for your site or metasite. This is equivant to going to Settings / Customized translations. There you'll also find the existing text identifiers you can set with this function (S_xxx). Please note that you should always set the target language for the translation using the language parameter.

Input:

text_id string required
Text identifier to be translated. This always starts with the S_ prefix. If you want to add your custom text (by default not used elsewhere by the system), use the S_CUS_ prefix, e.g. S_CUS_ABC.
value string required
Translation value.
version float optional
you can optionally specify the version of the API that you're using. Use the value of latest or simply skip this parameter to use the latest API version. The latest version is: 1
language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key - Click here to get your key. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp.

Output:

none

API playground:

Click here to test this function in the API playground.