OSSP CVS Repository

ossp - Difference in ossp-pkg/as/as-gui/as_reportpanel.cpp versions 1.7 and 1.8
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/as/as-gui/as_reportpanel.cpp 1.7 -> 1.8

--- as_reportpanel.cpp   2003/02/20 21:09:58     1.7
+++ as_reportpanel.cpp   2003/02/20 21:28:57     1.8
@@ -128,11 +128,11 @@
     m_pWeekpop = new QPopupMenu(this);
     if (m_pWeekpop == NULL) // Sanity check
         throw Genexcept("Weekly toolbutton popup creation failed.");
-    m_pWeekpop->insertItem(tr("One week"), this, SLOT(reportWeeks(int)));
-    m_pWeekpop->insertItem(tr("Two weeks"), this, SLOT(reportWeeks(int)));
-    m_pWeekpop->insertItem(tr("Three weeks"), this, SLOT(reportWeeks(int)));
-    m_pWeekpop->insertItem(tr("Four weeks"), this, SLOT(reportWeeks(int)));
-    m_pWeekpop->insertItem(tr("N... weeks"), this, SLOT(reportWeeks(int)));
+    m_pWeekpop->insertItem(trUtf8("One week"), this, SLOT(reportWeeks(int)));
+    m_pWeekpop->insertItem(trUtf8("Two weeks"), this, SLOT(reportWeeks(int)));
+    m_pWeekpop->insertItem(trUtf8("Three weeks"), this, SLOT(reportWeeks(int)));
+    m_pWeekpop->insertItem(trUtf8("Four weeks"), this, SLOT(reportWeeks(int)));
+    m_pWeekpop->insertItem(trUtf8("N... weeks"), this, SLOT(reportWeeks(int)));
     m_pWeekpop->setCheckable(true);
     m_pWeekpop->setItemChecked(m_pWeekpop->idAt(m_nWeeks - 1), true);
     m_pWeeklybutt->setPopup(m_pWeekpop);
@@ -142,11 +142,11 @@
     m_pMonthpop = new QPopupMenu(this);
     if (m_pMonthpop == NULL) // Sanity check
         throw Genexcept("Monthly toolbutton popup creation failed.");
-    m_pMonthpop->insertItem(tr("One month"), this, SLOT(reportMonths(int)));
-    m_pMonthpop->insertItem(tr("Two months"), this, SLOT(reportMonths(int)));
-    m_pMonthpop->insertItem(tr("Three months"), this, SLOT(reportMonths(int)));
-    m_pMonthpop->insertItem(tr("Four months"), this, SLOT(reportMonths(int)));
-    m_pMonthpop->insertItem(tr("N... months"), this, SLOT(reportMonths(int)));
+    m_pMonthpop->insertItem(trUtf8("One month"), this, SLOT(reportMonths(int)));
+    m_pMonthpop->insertItem(trUtf8("Two months"), this, SLOT(reportMonths(int)));
+    m_pMonthpop->insertItem(trUtf8("Three months"), this, SLOT(reportMonths(int)));
+    m_pMonthpop->insertItem(trUtf8("Four months"), this, SLOT(reportMonths(int)));
+    m_pMonthpop->insertItem(trUtf8("N... months"), this, SLOT(reportMonths(int)));
     m_pMonthpop->setCheckable(true);
     m_pMonthpop->setItemChecked(m_pMonthpop->idAt(m_nMonths - 1), true);
     m_pMonthlybutt->setPopup(m_pMonthpop);
@@ -329,7 +329,7 @@
     // Clear data window and write header out
     m_pBrowser->setUpdatesEnabled(false);
     m_pBrowser->clear();
-    m_pBrowser->append(tr("The 'both' feature is not working yet."));
+    m_pBrowser->append(trUtf8("The 'both' feature is not working yet."));
     this->writeFooter();
     m_pBrowser->setCursorPosition(0, 0);
     m_pBrowser->ensureCursorVisible();
@@ -554,25 +554,25 @@
 //
 void Reportpanel::textChange(void)
 {
-    this->setCaption(tr("AS local report", "Local report using weekly data or monthly data or both."));
+    this->setCaption(trUtf8("AS local report", "Local report using weekly data or monthly data or both."));
 
     // Top level push buttons associated with accept and save slots
-    m_pDismissbutt->setText(tr("Dismiss", "Comment for Dismissbutton"));
-    QToolTip::add(m_pDismissbutt, tr("Closes the report panel", "Comment for tooltip Dismissbutton"));
-    QWhatsThis::add(m_pDismissbutt, tr("The dismiss button dismisses the report panel", "Comment for whatsThis Dsimissbutton"));
-    m_pSavebutt->setText(tr("Save", "Comment for Savebutton"));
-    QToolTip::add(m_pSavebutt, tr("Saves the report panel text", "Comment for tooltip Savebutton"));
-    QWhatsThis::add(m_pSavebutt, tr("The save button saves the report panel text to a file", "Comment for whatsThis Savebutton"));
+    m_pDismissbutt->setText(trUtf8("Dismiss", "Comment for Dismissbutton"));
+    QToolTip::add(m_pDismissbutt, trUtf8("Closes the report panel", "Comment for tooltip Dismissbutton"));
+    QWhatsThis::add(m_pDismissbutt, trUtf8("The dismiss button dismisses the report panel", "Comment for whatsThis Dsimissbutton"));
+    m_pSavebutt->setText(trUtf8("Save", "Comment for Savebutton"));
+    QToolTip::add(m_pSavebutt, trUtf8("Saves the report panel text", "Comment for tooltip Savebutton"));
+    QWhatsThis::add(m_pSavebutt, trUtf8("The save button saves the report panel text to a file", "Comment for whatsThis Savebutton"));
 
     // Inner tool buttons for new local report generation
-    m_pWeeklybutt->setText(tr("Weekly", "Comment for Weeklybutt"));
-    QToolTip::add(m_pWeeklybutt, tr("Hold down for options", "Comment for tooltip Weeklybutt"));
-    QWhatsThis::add(m_pWeeklybutt, tr("The weekly button generates a new weekly report.\nHold this button down to specify many weeks.", "Comment for whatsThis Weeklybutt"));
-    m_pMonthlybutt->setText(tr("Monthly", "Comment for Monthlybutt"));
-    QToolTip::add(m_pMonthlybutt, tr("Hold down for options", "Comment for tooltip Monthlybutt"));
-    QWhatsThis::add(m_pMonthlybutt, tr("The monthly button makes a new monthly report.\nHold this button down to specify how many months.", "Comment for whatsThis Monthlybutt"));
-    m_pBothbutt->setText(tr("Both", "Comment for Bothbutt"));
-    QToolTip::add(m_pBothbutt, tr("Report with both week data and month data", "Comment for tooltip Bothbutt"));
-    QWhatsThis::add(m_pBothbutt, tr("The both button makes a new report with both weekly and monthly items mixed in. Hold this button down to specify how many weeks mixed of data.", "Comment for whatsThis Bothbutt"));
+    m_pWeeklybutt->setText(trUtf8("Weekly", "Comment for Weeklybutt"));
+    QToolTip::add(m_pWeeklybutt, trUtf8("Hold down for options", "Comment for tooltip Weeklybutt"));
+    QWhatsThis::add(m_pWeeklybutt, trUtf8("The weekly button generates a new weekly report.\nHold this button down to specify many weeks.", "Comment for whatsThis Weeklybutt"));
+    m_pMonthlybutt->setText(trUtf8("Monthly", "Comment for Monthlybutt"));
+    QToolTip::add(m_pMonthlybutt, trUtf8("Hold down for options", "Comment for tooltip Monthlybutt"));
+    QWhatsThis::add(m_pMonthlybutt, trUtf8("The monthly button makes a new monthly report.\nHold this button down to specify how many months.", "Comment for whatsThis Monthlybutt"));
+    m_pBothbutt->setText(trUtf8("Both", "Comment for Bothbutt"));
+    QToolTip::add(m_pBothbutt, trUtf8("Report with both week data and month data", "Comment for tooltip Bothbutt"));
+    QWhatsThis::add(m_pBothbutt, trUtf8("The both button makes a new report with both weekly and monthly items mixed in. Hold this button down to specify how many weeks mixed of data.", "Comment for whatsThis Bothbutt"));
 }
 } // namespace AS

CVSTrac 2.0.1