Hi Rudi,
There are plenty of doc scattered on the internet. The secret is to use
QT_TR_NOOP in the ListElement because you are not allowed to script what's
inside a ListElement.
See for instance this bug report https://bugreports.qt.io/browse/QTBUG-11403.
Especially this example given in the reply.
ListModel {
ListElement {
greeting: QT_TR_NOOP("hello")
}
}
...
Text { text: qsTr(greeting) }
Regards,
Lucien
----- Mail original -----
> De: "Rudi Timmermans" <rudi.tim...@gmx.us>
> À: "Sailfish OS Developers" <devel@lists.sailfishos.org>
> Envoyé: Vendredi 26 Juin 2015 08:54:47
> Objet: Re: [SailfishDevel] compile error
> Hi,
> I like to use into ListElement the qsTr.
> This is my code:
> ListElement { page : "ManageWalletsPage.qml" title : "Manage wallets"
> subtitle : "Create a new wallet or modify your existing ones"
> section : "Management" }
> When is use title: qstr( "Manage wallets" ) this seems not to work
> anyone has a solution for this ?
> I like to translate this text string also, that's the resion of it.
> Thanks!
> ---
> Best regards!
> Rudi Timmermans.
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org