[SailfishDevel] compile error
Lucien Xu
sfietkonstantin at free.fr
Fri Jun 26 07:06:13 UTC 2015
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.timmer at gmx.us>
> À: "Sailfish OS Developers" <devel at 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-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150626/d18707f3/attachment-0001.html>
More information about the Devel
mailing list