diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-05-13 20:23:46 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-05-13 20:23:46 +0000 |
commit | a80ad2f9f27eb50cd7147dfca5bd23de53d1ee1c (patch) | |
tree | 828ed4afaa8a7112ca6c4a7fecafe94953ef98bb /ui | |
parent | 91c482d3d62086e490dced562e5b30c3cfa7f987 (diff) |
Add Some missing text to translate
svn path=/trunk/; revision=49271
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/column_preferences_frame.cpp | 2 | ||||
-rw-r--r-- | ui/qt/filter_expressions_preferences_frame.cpp | 2 | ||||
-rw-r--r-- | ui/qt/main_window.cpp | 8 | ||||
-rw-r--r-- | ui/qt/main_window_slots.cpp | 2 | ||||
-rw-r--r-- | ui/qt/module_preferences_scroll_area.cpp | 8 | ||||
-rw-r--r-- | ui/qt/preferences_dialog.cpp | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/ui/qt/column_preferences_frame.cpp b/ui/qt/column_preferences_frame.cpp index 097d2c71b0..963c2002fa 100644 --- a/ui/qt/column_preferences_frame.cpp +++ b/ui/qt/column_preferences_frame.cpp @@ -408,7 +408,7 @@ void ColumnPreferencesFrame::customOccurrenceEditingFinished() void ColumnPreferencesFrame::on_newToolButton_clicked() { - addColumn(true, "New Column", COL_NUMBER, NULL, 0); + addColumn(true, "New Column", COL_NUMBER, NULL, 0); //TODO : Fix Translate } void ColumnPreferencesFrame::on_deleteToolButton_clicked() diff --git a/ui/qt/filter_expressions_preferences_frame.cpp b/ui/qt/filter_expressions_preferences_frame.cpp index f1e7fec9cc..2ea39a04e5 100644 --- a/ui/qt/filter_expressions_preferences_frame.cpp +++ b/ui/qt/filter_expressions_preferences_frame.cpp @@ -288,7 +288,7 @@ void FilterExpressionsPreferencesFrame::expressionEditingFinished() void FilterExpressionsPreferencesFrame::on_newToolButton_clicked() { - addExpression(true, "My Filter", NULL); + addExpression(true, "My Filter", NULL); //TODO : Fix Translate } void FilterExpressionsPreferencesFrame::on_deleteToolButton_clicked() diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 72c89e06ad..9222e789ab 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1168,7 +1168,7 @@ void MainWindow::setTitlebarForCaptureFile() NULL); if (utf8_filename == NULL) { // So what the heck else can we do here? - setWindowTitle("(File name can't be mapped to UTF-8)"); + setWindowTitle(tr("(File name can't be mapped to UTF-8)")); } else { setWindowTitle(NULL); setWindowFilePath(NULL); @@ -1179,7 +1179,7 @@ void MainWindow::setTitlebarForCaptureFile() } else { /* We have no capture file. */ setWindowFilePath(NULL); - setWindowTitle("The Wireshark Network Analyzer"); + setWindowTitle(tr("The Wireshark Network Analyzer")); } } @@ -1189,12 +1189,12 @@ void MainWindow::setTitlebarForCaptureInProgress() setWindowFilePath(NULL); if (cap_file_) { - window_name = g_strdup_printf("Capturing from %s ", cf_get_tempfile_source(cap_file_)); + window_name = g_strdup_printf("Capturing from %s ", cf_get_tempfile_source(cap_file_)); //TODO : Fix Translate setWindowTitle(window_name); g_free(window_name); } else { /* We have no capture in progress. */ - setWindowTitle("The Wireshark Network Analyzer"); + setWindowTitle(tr("The Wireshark Network Analyzer")); } } diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 63e829ac43..c207757717 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -85,7 +85,7 @@ // Public slots // -const char *dfe_property_ = "display filter expression"; +const char *dfe_property_ = "display filter expression"; //TODO : Fix Translate void MainWindow::openCaptureFile(QString &cf_path, QString &display_filter) { diff --git a/ui/qt/module_preferences_scroll_area.cpp b/ui/qt/module_preferences_scroll_area.cpp index e30dbdbada..e1fdef1f3c 100644 --- a/ui/qt/module_preferences_scroll_area.cpp +++ b/ui/qt/module_preferences_scroll_area.cpp @@ -146,7 +146,7 @@ pref_show(pref_t *pref, gpointer layout_ptr) { QHBoxLayout *hb = new QHBoxLayout(); hb->addWidget(new QLabel(pref->title)); - QPushButton *uat_pb = new QPushButton("Edit..."); + QPushButton *uat_pb = new QPushButton(QObject::tr("Edit...")); uat_pb->setProperty(pref_prop_, qVariantFromValue(pref)); hb->addWidget(uat_pb); hb->addSpacerItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum)); @@ -169,7 +169,7 @@ pref_show(pref_t *pref, gpointer layout_ptr) ) .arg(path_le->style()->subElementRect(QStyle::SE_CheckBoxContents, &style_opt).left())); hb->addWidget(path_le); - QPushButton *path_pb = new QPushButton("Browse..."); + QPushButton *path_pb = new QPushButton(QObject::tr("Browse...")); path_pb->setProperty(pref_prop_, qVariantFromValue(pref)); hb->addWidget(path_pb); hb->addSpacerItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum)); @@ -445,7 +445,7 @@ void ModulePreferencesScrollArea::filenamePushButtonPressed() if (!pref) return; QString filename = QFileDialog::getSaveFileName(this, - QString("Wireshark: ") + pref->description, + QString(tr("Wireshark: ")) + pref->description, pref->stashed_val.string); if (!filename.isEmpty()) { @@ -464,7 +464,7 @@ void ModulePreferencesScrollArea::dirnamePushButtonPressed() if (!pref) return; QString dirname = QFileDialog::getExistingDirectory(this, - QString("Wireshark: ") + pref->description, + QString(tr("Wireshark: ")) + pref->description, pref->stashed_val.string); if (!dirname.isEmpty()) { diff --git a/ui/qt/preferences_dialog.cpp b/ui/qt/preferences_dialog.cpp index c8cb6dbffe..7f0b058af3 100644 --- a/ui/qt/preferences_dialog.cpp +++ b/ui/qt/preferences_dialog.cpp @@ -603,11 +603,11 @@ void PreferencesDialog::on_advancedTree_itemActivated(QTreeWidgetItem *item, int if (pref->type == PREF_FILENAME) { filename = QFileDialog::getSaveFileName(this, - QString("Wireshark: ") + pref->description, + QString(tr("Wireshark: ")) + pref->description, pref->stashed_val.string); } else { filename = QFileDialog::getExistingDirectory(this, - QString("Wireshark: ") + pref->description, + QString(tr("Wireshark: ")) + pref->description, pref->stashed_val.string); } if (!filename.isEmpty()) { |