[PATCH] Re: two questions regarding QML
Thiago Macieira
thiago at macieira.org
Mon Mar 14 11:19:29 PDT 2016
On segunda-feira, 14 de março de 2016 17:42:18 PDT Robert Helling wrote:
> - text: "A mobile version of the free
> Subsurface divelog software.\n" +
> - "View your dive logs while on the
> go." + text: qsTr("A mobile version of the
> free Subsurface divelog software.\n") +
> + qsTr("View your dive logs while on
> the go.")
This should be:
qsTr("A mobile version of the free Subsurface divelog software.\n" +
"View your dive logs while on the go.")
If you split the string like you did, you'll have two strings to translate
instead of one.
I'm not sure this will extract correctly. Please test.
And there needs to be a way to do this properly:
> + text: qsTr("Version: ") +
> manager.getVersion() + qsTr("\n\n© Subsurface developer team\n2011-2016")
How do you interpolate fields in JS/QML?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
More information about the subsurface
mailing list