Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Ebsa 3 posts 73 karma points
    Oct 31, 2024 @ 09:15
    Simon Ebsa
    0

    OpenAI Api Translation connector - Validation error: segment is missing

    Hi, We are trying to translate a norwagian page to polish Using OpenAI Api Translation connector. but getting error (attached screenshot). we followed the documentation but we are stuck. any help would be appreciated.enter image description here

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Oct 31, 2024 @ 09:34
    Kevin Jump
    0

    Hi,

    Are you using our OpenApi connector, or are you some how passing the translated xliff files to OpenApi and then uploading them back (the screenshot is from our Xliff Connector, which handles the files).

    the error in the screenshot indicates that the file you have uploaded is missing at least one <target> tag.

    Xliff files contain a load of <source> tags that contain the text for translation. Translation software then puts the translated values in a matching <target> tag which is where the content is then taken from and put back into Umbraco.

    if one of those targets is missing , the default behavior is above, to tell you that the file you think has all the translations in, doesn't .

    there are settings to override this behavior (and for example use the values in the source as the translated values) but this isn't recommended as it can lead to things not really being ready or translated when you think they are.

    If you want to use OpenApi - you should try the openApi connector direclty - the APIs are ever updating but we can tweak the connector as needed if you find any issues with it.

  • Simon Ebsa 3 posts 73 karma points
    Oct 31, 2024 @ 13:37
    Simon Ebsa
    0

    Hi,

    Yes we are using OpenApi connector, and no while we are upploading the xliff file we got the error we sent you earlier.

    We have tried every step that is given in the documentation, but we are still getting target missing error.

    Can you please helps us find out what we are doing wrong?

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Oct 31, 2024 @ 16:20
    Kevin Jump
    0

    Hi Simon,

    I've double checked, but i don't think you are using our OpenAi translation connector correctly here.

    When you install it you should see the OpenAi connector appear on the list on the right in settings.

    enter image description here

    when you click on this you are prompted to enter the key, and all your openAI model settings etc.

    enter image description here

    then from content when "you send to translation" you will need to make sure you are using the OpenAi connector to send the content it will look something like this :(it might be this bit - you are missing?)

    enter image description here

    After that, Translation manager sends the content to OpenAi and bring all the translations back, when you view the job, you don't see the file dialog, and all the content is translated for you - you can approve it and put it back into the job.

  • Simon Ebsa 3 posts 73 karma points
    Nov 04, 2024 @ 08:39
    Simon Ebsa
    0

    Hei Kevin,

    Thanks for the detailed reply.

    We have now installed the open API connector, but do we have to purchase the license to test it local. we just want to test it with few languages first. is it possible to acquire a trial version? or can we use other connectors like "The Google Cloud Translation API" or "Microsoft Translator Text API" listed under connectors section.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 04, 2024 @ 09:32
    Kevin Jump
    0

    Hi,

    You can test any of the connectors with source and target language (for example English -> French).

    They will only appear in the list when they are configured (so you'll need an OpenAI api key in the config (our docs have a very brief guide on how to get to that on your openAI account)

    The google and Microsoft connectors are simiar in that they require API keys from the respective 'developer' and azure dashboard to work. although in both of these cases i think there is a reasonbly generous free teir you can use before you hit any costs.

Please Sign in or register to post replies

Write your reply to:

Draft