Help with what should i include for translation at my app.
-
- try this. it works for me.
EDIT :
QString www("website");QString str = QString("
<
a
href"http://www.google.com/"><span>%1</span></a>").arg(www);
EDIT : now you can use it like this
ui->label_5->setText(str);Hint : mention the " to get it as one string including " characters
PS : i've put the solution one character per line to avoid the editor hiding the details. So just put them on one line and go!
-
- @QString site = QString("Bla %1 bla").arg(tr("Website"))@
P.S. All it contains in the documentation.
-
I added an orange color too.
@QString str = QString("<a ><span font-family:'Sans'; font-size:10pt; text-decoration: underline; color:#ff5500;"<span>%1</span></a>").arg(tr("Website"));
ui->label_5->setText(str);@The editor hides some things as Eddy said..
EDIT:
Another Question:
What about "this":http://img38.imageshack.us/img38/3739/screenshot1lh.png?
I don't think i should do it the same way, :/ -
Hi Leon,
I don't understand your question you added by EDIT.
What do you want exactly?
Maybe it's better to ask in another topic if it's another specific question?
-
Ok i will..
-
I found solution for 1.
<attribute name="buttonGroup">
<string>mybuttongroup</string>
</attribute>This string needs the notr="true" flag so it doesn't appear in Linguist :)
-
Good for you!
Thanks for sharing, but could you use several lines like i did. I think some of the code has dissapeared because the editor interprets it.
-
No i just checked it and nothing has disappeared :)
-
Ok thanks,
I asked because i didn't see a not true flag.
-
Using the arg function with tr() i see that at qt linquist i see the %1%2 part...
Is it a problem?
Is there a way not be able to see %1%2?EDIT: What about dots and "!"?
EDIT2: What about unicode text? How can this be translatable? I mean something like this:
@QString::fromUtf8("and it will change every ½ hour")@