Child pages
  • Connect your application with oTranCe

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I tried to make this as easy as possible - there is no REST(-full), no SOAP, no AuthTokens ... just a simple form submitted via POST.

You In your application you only need to build a form containing the keys and their translations in input fields that are named oTranceKeys[keyId] and place the translation in the value attribute.

...

Code Block
<form accept-charset="UTF-8" action="http://{BaseUrlOfYourOTranCeInstallation}/connector/index" target="_blank" method="post">
  <input type="hidden" value="Translation of key 1" name="oTranceKeys[key1]">
  <input type="hidden" value="Translation of key 2" name="oTranceKeys[key2]">
  ...
</form>

 

Of course your translators need a way to trigger the submit of this form. The way how you implement this is up to you.

The following requirements/facts can be of interest:

  • The encoding of the strings must be UTF-8.
  • The keys (key1, key2, ..) must of course be the same as the ones created in oTranCe.
  • Keys that are submitted but do not exist in oTranCe are silently ignored.
  • in In oTranCe the uniqueness is defined by the combination of the key and the file template where it is used. If the key is not unique and is present in two different file templates oTranCe lists both entries.
  • the The oTranCe user needs the User can see and use menu item "Connector" permission in oTranCe. Otherwise he we will see a "no permission" message.

...