Help with what should i include for translation at my app.
-
-
I don't want to ignore it.. Can't i somehow disable it to be translatable?
-
What exactly do you mean?
@<a href="http://www.wallch.t35.com/"><span>.<arg>WebSite</arg></span></a>@
? -
Ok thanks
-
Should i translate this when showing a dialog? @tr("%1 Files (.%2);;All Files ()")@
-
-
- You don't want to translate, don't want to ignore. What do you want? :)
- QString::arg()
- Why not?
-
1 Eddy said to me not to translate it. So basically ignore it. I don't want to ignore it.. I just don't want to be translatable.
2.Something like this?
@ui->label_5->setText(QString::arg("<a href="http://www.wallch.t35.com/"><span>WebSite</span></a>"));
@
Which of course doesn't work..
4.Ok -
- 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, :/ -
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")@