Re: [SailfishDevel] Translate

2015-06-30 Thread Oleksii Serdiuk
Slightly off-topic, but... On 28/06/15 22:02, Rudi Timmermans wrote: lbWalletDetails.text = qsTr("you have") + " " + wallet.currency + " " + wallet.budget + " " + qsTr("per") + " " + Util.budgetTypeNoun(wallet.budget_type) Please, don't mark for translation this way. Firstly, this won't work

Re: [SailfishDevel] Translate

2015-06-29 Thread coderusinbox
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"

[SailfishDevel] Translate

2015-06-28 Thread Rudi Timmermans
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";