Browse Source

More translation hooks

Neal Wilson 8 years ago
parent
commit
11cb384c7f
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      src/typica.w

+ 9
- 3
src/typica.w View File

@@ -5501,7 +5501,10 @@ void addZoomLogToSplitter(QDomElement element, QStack<QWidget *> *widgetStack,
5501 5501
                 currentElement = current.toElement();
5502 5502
                 if(currentElement.tagName() == "column")
5503 5503
                 {
5504
-                    QString text = currentElement.text();
5504
+                    QString text =
5505
+                        QCoreApplication::translate(
5506
+                            element.attribute("trcontext").toAscii().data(),
5507
+                            currentElement.text().toUtf8().data());
5505 5508
                     widget->setHeaderData(column, text);
5506 5509
                     column++;
5507 5510
                 }
@@ -5645,8 +5648,11 @@ void addSaltToLayout(QDomElement element, QStack<QWidget *> *,@|
5645 5648
                 {
5646 5649
                     if(currentElement.hasAttribute("name"))
5647 5650
                     {
5648
-                        model->setHeaderData(currentColumn, Qt::Horizontal,
5649
-                                             currentElement.attribute("name"));
5651
+                        model->setHeaderData(currentColumn,
5652
+                            Qt::Horizontal,
5653
+                            QCoreApplication::translate(
5654
+                                element.attribute("trcontext").toAscii().data(),
5655
+                                    currentElement.attribute("name").toUtf8().data()));
5650 5656
                     }
5651 5657
                     if(currentElement.hasAttribute("delegate"))
5652 5658
                     {

Loading…
Cancel
Save