Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › error creating TS files for multilanguage

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23781

    jrrobles79

    Im following all the steps on the document https://felgo.com/doc/howto-multi-language/. but the file generated by ‘Tools/External/Linguistic/’ is generating only the translation of just one cpp  file, not all the classes or qml files on the project, I really don’t know what I’m missing. Also the cpp that is being translated is a library that I found on internet and the function for translate it is using is only ‘tr()’ instead of the ‘qsTr()’  example:

     

     QString description = "";
        if (declineCode == declineCodeApproveWithId()) {
            description = tr("The payment cannot be authorized.");
        }

     

    ts file:

     

       <name>QStripe::Error</name>
        <message>
            <location filename="../../qstripe/Error.cpp" line="74"/>
            <source>The payment cannot be authorized.</source>
            <translation type="unfinished"></translation>
        </message>

     

    All of the other files are being ignored, What im missing to generate the full project translation? also if my default is in english, do I need to create the english translation file?

     

    pro file:

    #TRANSLATIONS
    TRANSLATIONS = qml/translations/es_ES.ts \
                   qml/translations/en_EN.ts

     

     

     

     

     

     

     

    #23782

    jrrobles79

    ok, my error I had the project as ‘publish’

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.