Hi,
thank you, but i have a problem.
I do this e.g.:
void MyMainWindow::createActions()
{
actionOpen
= new QAction(QIcon(":/myPic.png"), tr
("&Open File"),
this);
}
void MyMainWindow::createActions()
{
actionOpen = new QAction(QIcon(":/myPic.png"), tr("&Open File"), this);
}
To copy to clipboard, switch view to plain text mode
and i must do this:
void MyMainWindow::retranslate()
{
actionOpen->setText(tr("&Datei öffnen"));
}
void MyMainWindow::retranslate()
{
actionOpen->setText(tr("&Datei öffnen"));
}
To copy to clipboard, switch view to plain text mode
I think that’s dirty and a lot to do, but it’s OK.
What can i do in a function like that:
void AnyWidget::anyFunction(){
html.append("<table border=\"0\" width=\"100%\">");
html.append("<tr><td>" + tr("Text to Translate") + "</td>");
html.append("<td>" + tr("Text to Translate") + "</td></tr>");
html.append("</table>");
myTextEdit->document()->setHtml(html);
}
void AnyWidget::anyFunction(){
QString html;
html.append("<table border=\"0\" width=\"100%\">");
html.append("<tr><td>" + tr("Text to Translate") + "</td>");
html.append("<td>" + tr("Text to Translate") + "</td></tr>");
html.append("</table>");
myTextEdit->document()->setHtml(html);
}
To copy to clipboard, switch view to plain text mode
I can’t translate in retranslate()
Thanks in advance,
Whitefurrows
Bookmarks