Discussion:
[SailfishDevel] compile error
Rudi Timmermans
2015-06-16 08:54:37 UTC
Permalink
Hi All,

I have to reinstall the sdk and develop tools on my Mac for Jolla.

Now after installing and try compile i got this error:

I have been look and search google about this error but i can not found
any solution any idea's ?

Thanks!

rote:
/home/mersdk/share/SailfishOS/projects/budgetmanager/RPMS/budgetmanager-1.0-1.armv7hl.rpm

Wrote:
/home/mersdk/share/SailfishOS/projects/budgetmanager/RPMS/budgetmanager-debugsource-1.0-1.armv7hl.rpm

Wrote:
/home/mersdk/share/SailfishOS/projects/budgetmanager/RPMS/budgetmanager-debuginfo-1.0-1.armv7hl.rpm

sending incremental file list

budgetmanager-1.0-1.armv7hl.rpm

sent 37,490 bytes received 35 bytes 25,016.67 bytes/sec

total size is 37,365 speedup is 1.00

Error: /home/nemo/RPMS/budgetmanager-1.0-1.armv7hl.rpm has wrong
architecture: armv7hl

Finished transaction (status=2, runtime=162ms)

Deploy failed

10:51:51: The process
"/Users/ruditimmermans/.config/SailfishBeta3/mer-sdk-tools/MerSDK/SailfishOS-armv7hl/deploy"
exited with code 1.

Error while building/deploying project budgetmanager (kit:
MerSDK-SailfishOS-armv7hl)

--
---
Best regards!

Rudi Timmermans.
Jussi Pakkanen
2015-06-17 10:12:45 UTC
Permalink
On 16.06.2015 11:54, Rudi Timmermans wrote:

> I have been look and search google about this error but i can not found
> any solution any idea's ?

Could you provide a few more details about your issue:

- did this happen during deployment to device or to the emulator
- have you tried both emulator and device deployment, does one of them work
- if you create a new sample project, does it build and deploy properly

Thanks,
Rudi Timmermans
2015-06-17 14:05:49 UTC
Permalink
Hi Jussi,

This happens all the time when i try to deploy. even when i use the
emulator or not.

When i add my real device to QT Creator then my
MerSDK-SailfishOS-armv7hl kit is removed automatic and i need to add it
again manualy.

Second i see into the kits setting a ! here is a screenshot. I hope you
will get this screenshot.

Also i'm using a Mac OS X.


---
Best regards!

Rudi Timmermans.

Op 17/06/15 om 12:12 schreef Jussi Pakkanen:
> On 16.06.2015 11:54, Rudi Timmermans wrote:
>
>> I have been look and search google about this error but i can not found
>> any solution any idea's ?
>
> Could you provide a few more details about your issue:
>
> - did this happen during deployment to device or to the emulator
> - have you tried both emulator and device deployment, does one of them
> work
> - if you create a new sample project, does it build and deploy properly
>
> Thanks,
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-***@lists.sailfishos.org
>
Rudi Timmermans
2015-06-26 06:54:47 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Rudi Timmermans
2015-06-17 14:08:28 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Chris Walker
2015-06-17 15:05:42 UTC
Permalink
On Wed, 17 Jun 2015 16:08:28 +0200
Rudi Timmermans <***@gmx.us> wrote:

> Hi Jussi,
>
> I try to send screenshot again. But i have attach it now.

Rudi,

Can I suggest you take a look at the screenshot you sent. Look at the
error message at the top. You're trying to send the wrong architecture
to the device. Could it be that your settings are screwed for *both*
architectures?
Rudi Timmermans
2015-06-17 15:32:34 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Jarkko Lehtoranta
2015-06-17 15:15:25 UTC
Permalink
On 17/06/15 17:08, Rudi Timmermans wrote:
> Hi Jussi,
>
> I try to send screenshot again. But i have attach it now.
> ---
> Best regards!
>
> Rudi Timmermans.
> Op 17/06/15 om 12:12 schreef Jussi Pakkanen:
>> On 16.06.2015 11:54, Rudi Timmermans wrote:
>>
>>> I have been look and search google about this error but i can not found
>>> any solution any idea's ?
>>
>> Could you provide a few more details about your issue:
>>
>> - did this happen during deployment to device or to the emulator
>> - have you tried both emulator and device deployment, does one of
>> them work
>> - if you create a new sample project, does it build and deploy properly
>>
>> Thanks,
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-***@lists.sailfishos.org
>>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-***@lists.sailfishos.org

There's a red exclamation mark, because the device type for the
MerSDK-SailfishOS-armv7hl kit should be Mer ARM Device and not Mer
Emulator Device. With your current settings, when using the armv7hl kit,
the SDK tries to deploy an arm package to the Emulator, which obviously
fails. So, please try again after choosing the Emulator device for the
i486 kit and the ARM device for the armv7hl kit.

If that doesn't solve your issue, close the QtCreator and remove the
SailfishBetaX user config folders from ~/.config/. Now, when you launch
Qt Creator again, it will copy a clean config template to the user
config directory.
Rudi Timmermans
2015-06-17 15:31:56 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Jarkko Lehtoranta
2015-06-17 15:36:49 UTC
Permalink
On 17/06/15 18:31, Rudi Timmermans wrote:
> Hi Jarkko,
>
> Ok thanks i have change this but now i have again a marker into orange
> is that normoly?
>
> I have attach again a screenshot.
> ---
> Best regards!
>
> Rudi Timmermans.
> Op 17/06/15 om 17:15 schreef Jarkko Lehtoranta:
>> On 17/06/15 17:08, Rudi Timmermans wrote:
>>> Hi Jussi,
>>>
>>> I try to send screenshot again. But i have attach it now.
>>> ---
>>> Best regards!
>>>
>>> Rudi Timmermans.
>>> Op 17/06/15 om 12:12 schreef Jussi Pakkanen:
>>>> On 16.06.2015 11:54, Rudi Timmermans wrote:
>>>>
>>>>> I have been look and search google about this error but i can not
>>>>> found
>>>>> any solution any idea's ?
>>>>
>>>> Could you provide a few more details about your issue:
>>>>
>>>> - did this happen during deployment to device or to the emulator
>>>> - have you tried both emulator and device deployment, does one of
>>>> them work
>>>> - if you create a new sample project, does it build and deploy
>>>> properly
>>>>
>>>> Thanks,
>>>> _______________________________________________
>>>> SailfishOS.org Devel mailing list
>>>> To unsubscribe, please send a mail to
>>>> devel-***@lists.sailfishos.org
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to
>>> devel-***@lists.sailfishos.org
>>
>> There's a red exclamation mark, because the device type for the
>> MerSDK-SailfishOS-armv7hl kit should be Mer ARM Device and not Mer
>> Emulator Device. With your current settings, when using the armv7hl
>> kit, the SDK tries to deploy an arm package to the Emulator, which
>> obviously fails. So, please try again after choosing the Emulator
>> device for the i486 kit and the ARM device for the armv7hl kit.
>>
>> If that doesn't solve your issue, close the QtCreator and remove the
>> SailfishBetaX user config folders from ~/.config/. Now, when you
>> launch Qt Creator again, it will copy a clean config template to the
>> user config directory.
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to
>> devel-***@lists.sailfishos.org
>>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-***@lists.sailfishos.org

Yes, that's normal and it will go away, when you add an ARM device (the
Jolla phone) in the Devices section.
Rudi Timmermans
2015-06-17 15:38:35 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Jarkko Lehtoranta
2015-06-17 15:45:23 UTC
Permalink
On 17/06/15 18:38, Rudi Timmermans wrote:
> Ok thanks!
>
> Can you explane me what the settings are when i add a Jolla Phone
> please ? Thanks!
> ---
> Best regards!
>
> Rudi Timmermans.
> Op 17/06/15 om 17:36 schreef Jarkko Lehtoranta:
>> On 17/06/15 18:31, Rudi Timmermans wrote:
>>> Hi Jarkko,
>>>
>>> Ok thanks i have change this but now i have again a marker into
>>> orange is that normoly?
>>>
>>> I have attach again a screenshot.
>>> ---
>>> Best regards!
>>>
>>> Rudi Timmermans.
>>> Op 17/06/15 om 17:15 schreef Jarkko Lehtoranta:
>>>> On 17/06/15 17:08, Rudi Timmermans wrote:
>>>>> Hi Jussi,
>>>>>
>>>>> I try to send screenshot again. But i have attach it now.
>>>>> ---
>>>>> Best regards!
>>>>>
>>>>> Rudi Timmermans.
>>>>> Op 17/06/15 om 12:12 schreef Jussi Pakkanen:
>>>>>> On 16.06.2015 11:54, Rudi Timmermans wrote:
>>>>>>
>>>>>>> I have been look and search google about this error but i can
>>>>>>> not found
>>>>>>> any solution any idea's ?
>>>>>>
>>>>>> Could you provide a few more details about your issue:
>>>>>>
>>>>>> - did this happen during deployment to device or to the emulator
>>>>>> - have you tried both emulator and device deployment, does one of
>>>>>> them work
>>>>>> - if you create a new sample project, does it build and deploy
>>>>>> properly
>>>>>>
>>>>>> Thanks,
>>>>>> _______________________________________________
>>>>>> SailfishOS.org Devel mailing list
>>>>>> To unsubscribe, please send a mail to
>>>>>> devel-***@lists.sailfishos.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> SailfishOS.org Devel mailing list
>>>>> To unsubscribe, please send a mail to
>>>>> devel-***@lists.sailfishos.org
>>>>
>>>> There's a red exclamation mark, because the device type for the
>>>> MerSDK-SailfishOS-armv7hl kit should be Mer ARM Device and not Mer
>>>> Emulator Device. With your current settings, when using the armv7hl
>>>> kit, the SDK tries to deploy an arm package to the Emulator, which
>>>> obviously fails. So, please try again after choosing the Emulator
>>>> device for the i486 kit and the ARM device for the armv7hl kit.
>>>>
>>>> If that doesn't solve your issue, close the QtCreator and remove
>>>> the SailfishBetaX user config folders from ~/.config/. Now, when
>>>> you launch Qt Creator again, it will copy a clean config template
>>>> to the user config directory.
>>>>
>>>> _______________________________________________
>>>> SailfishOS.org Devel mailing list
>>>> To unsubscribe, please send a mail to
>>>> devel-***@lists.sailfishos.org
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail todevel-***@lists.sailfishos.org
>>
>> Yes, that's normal and it will go away, when you add an ARM device
>> (the Jolla phone) in the Devices section.
>>
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail todevel-***@lists.sailfishos.org
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-***@lists.sailfishos.org

Adding an ARM device to the SDK is explained here:
https://sailfishos.org/develop/sdk-overview/develop-firstapp-article/.
The default settings will work, if you connect the phone via usb in
developer mode.
Rudi Timmermans
2015-06-17 16:02:08 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Chris Walker
2015-06-17 16:03:42 UTC
Permalink
On Wed, 17 Jun 2015 17:38:35 +0200
Rudi Timmermans <***@gmx.us> wrote:

> Ok thanks!
>
> Can you explane me what the settings are when i add a Jolla Phone
> please ? Thanks! ---

Enable Developer mode on the phone and nake a note of the IP address if
you want to use wifi.

Go to Qt Creator and under Devices, Add one. I called mine 'Jolla
Phone'.

Enter the device IP and with a user of nemo, try connecting using the
Developer Password you set earlier when you enabled Developer Mode on
the phone.
Rudi Timmermans
2015-06-17 17:21:27 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Rudi Timmermans
2015-06-17 18:05:35 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Lucien Xu
2015-06-26 07:06:13 UTC
Permalink
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" <***@gmx.us>
> À: "Sailfish OS Developers" <***@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-***@lists.sailfishos.org
Rudi Timmermans
2015-06-26 08:16:28 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Rudi Timmermans
2015-06-28 20:02:13 UTC
Permalink
Hi,

Do anyone know how i can translate a JS string ?

I hope there is a easy way ;)


This is the code

function budgetTypeToString(type) {
var str;

switch (type) {
case BUDGET_TYPE_DAILY:
str = "daily";
break;
case BUDGET_TYPE_WEEKLY:
str = "weekly";
break;
case BUDGET_TYPE_MONTHLY:
str = "monthly";
break;
case BUDGET_TYPE_YEARLY:
str = "yearly";
break;
default:
str = "unknown";
break;
}

return str;
}

/* budgetTypeNoun
*
* Returns the correct noun for the given budget type.
*
*/
function budgetTypeNoun(type) {
var str;

switch (type) {
case BUDGET_TYPE_DAILY:
str = "day";
break;
case BUDGET_TYPE_WEEKLY:
str = "week";
break;
case BUDGET_TYPE_MONTHLY:
str = "month";
break;
case BUDGET_TYPE_YEARLY:
str = "year";
break;
default:
str = "unknown";
break;
}

return str;
}


function budgetTypeValue(type) {
var retval;

switch(type) {
case "daily":
retval = BUDGET_TYPE_DAILY;
break;
case "weekly":
retval = BUDGET_TYPE_WEEKLY;
break;
case "monthly":
retval = BUDGET_TYPE_MONTHLY;
break;
case "yearly":
retval = BUDGET_TYPE_YEARLY;
break;
default:
retval = BUDGET_TYPE_DAILY;
break;
}

return retval;
}

then i read the string as into main main.qml page

lbWalletDetails.text = qsTr("you have") + "<b> " + wallet.currency + " "
+ wallet.budget + "</b> " + qsTr("per") + " " +
Util.budgetTypeNoun(wallet.budget_type) + "

---
Best regards!

Rudi Timmermans.

Op 26/06/15 om 10:16 schreef Rudi Timmermans:
> Hi Lucien,
>
> Ok thanks this works perfect ;)
>
> ---
> Best regards!
>
> Rudi Timmermans.
>
> Op 26/06/15 om 09:06 schreef Lucien Xu:
>> 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
>>
>> ------------------------------------------------------------------------
>>
>> *De: *"Rudi Timmermans" <***@gmx.us>
>> *À: *"Sailfish OS Developers" <***@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:"Managewallets"
>>
>> subtitle:"Createanewwalletormodifyyourexistingones"
>>
>> section:"Management"
>>
>> }
>>
>> When is use title: qstr("Managewallets") 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-***@lists.sailfishos.org
>>
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail todevel-***@lists.sailfishos.org
>
c***@gmail.com
2015-06-29 07:25:37 UTC
Permalink
Hi,

Do anyone know how i can translate a JS string ?

I hope there is a easy way ;)


This is the code

function budgetTypeToString(type) {
var str;

switch (type) {
case BUDGET_TYPE_DAILY:
str = "daily";
break;
case BUDGET_TYPE_WEEKLY:
str = "weekly";
break;
case BUDGET_TYPE_MONTHLY:
str = "monthly";
break;
case BUDGET_TYPE_YEARLY:
str = "yearly";
break;
default:
str = "unknown";
break;
}

return str;
}

/* budgetTypeNoun
*
* Returns the correct noun for the given budget type.
*
*/
function budgetTypeNoun(type) {
var str;

switch (type) {
case BUDGET_TYPE_DAILY:
str = "day";
break;
case BUDGET_TYPE_WEEKLY:
str = "week";
break;
case BUDGET_TYPE_MONTHLY:
str = "month";
break;
case BUDGET_TYPE_YEARLY:
str = "year";
break;
default:
str = "unknown";
break;
}

return str;
}


function budgetTypeValue(type) {
var retval;

switch(type) {
case "daily":
retval = BUDGET_TYPE_DAILY;
break;
case "weekly":
retval = BUDGET_TYPE_WEEKLY;
break;
case "monthly":
retval = BUDGET_TYPE_MONTHLY;
break;
case "yearly":
retval = BUDGET_TYPE_YEARLY;
break;
default:
retval = BUDGET_TYPE_DAILY;
break;
}

return retval;
}

then i read the string as into main main.qml page

lbWalletDetails.text = qsTr("you have") + "<b> " + wallet.currency + " "
+ wallet.budget + "</b> " + qsTr("per") + " " +
Util.budgetTypeNoun(wallet.budget_type) + "

---
Best regards!

Rudi Timmermans.

Op 26/06/15 om 10:16 schreef Rudi Timmermans:
> Hi Lucien,
>
> Ok thanks this works perfect ;)
>
> ---
> Best regards!
>
> Rudi Timmermans.
>
> Op 26/06/15 om 09:06 schreef Lucien Xu:
>> 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
>>
>> ------------------------------------------------------------------------
>>
>> *De: *"Rudi Timmermans" <***@gmx.us>
>> *À: *"Sailfish OS Developers" <***@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:"Managewallets"
>>
>> subtitle:"Createanewwalletormodifyyourexistingones"
>>
>> section:"Management"
>>
>> }
>>
>> When is use title: qstr("Managewallets") 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-***@lists.sailfishos.org
>>
>>
>>
>>
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail todevel-***@lists.sailfishos.org
>
Oleksii Serdiuk
2015-06-30 14:22:56 UTC
Permalink
Slightly off-topic, but...

On 28/06/15 22:02, Rudi Timmermans wrote:
> lbWalletDetails.text = qsTr("you have") + "<b> " + wallet.currency + " "
> + wallet.budget + "</b> " + qsTr("per") + " " +
> Util.budgetTypeNoun(wallet.budget_type)

Please, don't mark for translation this way. Firstly, this won't work
with RTL languages. Secondly, some languages might have different order
of words (e.g., position of nouns, verbs, etc.).

Use placeholders instead:

> //: %1 - currency, %2 - amount / value, %3 - budget type
> lbWalletDetails.text = qsTr("you have <b>%1 %2</b> per %3").arg(wallet.currency).arg(wallet.budget).arg(Util.budgetTypeNoun(wallet.budget_type))

"//:" marks a comment that will be displayed to translator in Qt
Linguist. If it's not obvious from the text, it's good to explain here
what each placeholder means.

Also, there is a nice page on QML/JS translation in Qt documentation:
http://doc.qt.io/qt-5/qtquick-internationalization.html

But I recommend reading all "Internationalization with Qt" section:
http://doc.qt.io/qt-5/internationalization.html

--
With best regards,
Oleksii Serdiuk
Rudi Timmermans
2015-06-26 10:59:22 UTC
Permalink
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
Rudi Timmermans
2015-06-28 04:43:20 UTC
Permalink
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.
c***@gmail.com
2015-06-28 05:04:14 UTC
Permalink
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.
Asser LÀhdemÀki
2015-06-28 05:44:51 UTC
Permalink
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-***@lists.sailfishos.org
>
Rudi Timmermans
2015-06-28 05:49:52 UTC
Permalink
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-***@lists.sailfishos.org
>>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-***@lists.sailfishos.org
>
Lucien Xu
2015-06-29 10:38:43 UTC
Permalink
Hello,

You should not use wildcards when writing your spec (and spectacle yaml) files.
List all the files you want to put in your RPM in the %files category of the spec / yaml file and it should work.

Regards,
Lucien

----- Mail original -----

> De: "Rudi Timmermans" <***@gmx.us>
> À: "Sailfish OS Developers" <***@lists.sailfishos.org>
> Envoyé: Vendredi 26 Juin 2015 12:59:22
> Objet: Re: [SailfishDevel] compile error

> Hi Guys,

> Do you know a way to ignore the .DS_Store files when compile a RPM ?

> I have remove them manual but after a reboot of my system the are
> back. So i hope to found some why that the are not packed into the
> RPM file.
> ---
> Best regards!

> Rudi Timmermans.
> Op 26/06/15 om 09:06 schreef Lucien Xu:

> > 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" <***@gmx.us>
> >
>
> > > À: "Sailfish OS Developers" <***@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-***@lists.sailfishos.org
> >
>
> > _______________________________________________
>
> > SailfishOS.org Devel mailing list
>
> > To unsubscribe, please send a mail to
> > devel-***@lists.sailfishos.org
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-***@lists.sailfishos.org
Loading...