[SailfishDevel] Translation

Rudi Timmermans rudi.timmer at gmx.us
Sun Jun 28 05:49:52 UTC 2015


It's already fixed thanks!

just use text: qsTr(section) and it works ;)

---
Best regards!

Rudi Timmermans.

Op 28/06/15 om 07:44 schreef Asser Lähdemäki:
> Use the same QT_TR_NOOP("Debug") as for title?
>
> coderusinbox kirjoitti su kesäkuuta 28 08:05:22 2015 GMT+0300:
>> Hi,
>>
>> I like to translate a the word debug from a section how can i do that ?
>> When i use QsTR this dont work
>>
>> Code:
>>
>>           }
>>           ListElement {
>>               page: "ToolsPage.qml"
>>               title: QT_TR_NOOP("Tools")
>>               subtitle: "Misc. tools for testing the application"
>>               section: "Debug"
>>           }
>>       }
>>
>>       SilicaListView {
>>           id: listView
>>           anchors.fill: parent
>>           model: pagesModel
>>           header: PageHeader { title: root.title }
>>           section {
>>           property: 'section'
>>               delegate: SectionHeader {
>>               text: section
>>               }
>>           }
>>
>>
>> ---
>> Best regards!
>>
>> Rudi Timmermans.
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
>


More information about the Devel mailing list