Forum rules - please read before posting.

No lines with translations not working,

edited October 2023 in Technical Q&A

I am using Adventure Creator version 1.8.4. I am trying to export text for translation. I choose the setting no lines with translation. But it doesn't work. The file still contains all the text from the game.

Comments

  • What types have you excluded from the Speech Manager's Translatable text types field? If you select a typical line of one such type further down, does it correctly omit translation fields?

    As a test, try opening up AC's ExportWizardWindow script, and replace the line (Around 425):

    if (!anyNotEmpty && exportedTranslations.Count > 0 && line.translationText.Count > 0)
    

    with:

    if (!anyNotEmpty && exportedTranslations.Count > 0)
    

    Does that resolve it?

  • Choosing "no a line with translation" works exactly the opposite, it completely removes all empty lines. Your edit of the script does not help.

  • edited October 2023

    Initially, I wanted to export text without filters. Then I tried it on one scene. The result is the same. With the choice "no line with translation" all text except empty lines.

  • edited October 2023

    Here are my export settings.
    https://imgur.com/a/frXXzyD

  • The "No lines with translations?" option should remove any line that has any translation text associated with it - so that only lines that have no translation are present.

    What is the behaviour you're getting, vs the behaviour you're expecting? Share a screenshot of a line within the Speech Manager that you're testing with.

  • Here I have a line with a dialog.
    https://imgur.com/a/deVxxON
    And this is the result of exporting from the scene in which this dialogue took place, with the choice "no lines with translation."
    https://imgur.com/CfrphNL
    As you can see, there are lines with translation, but there are no lines without translation. And I need the opposite.

  • Thanks for the details.

    Replace the above line instead with:

    if (anyNotEmpty && exportedTranslations.Count > 0 && line.translationText.Count > 0)
    
  • edited October 2023

    Yes! It works! Thank you very much!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.