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/qt/module_preferences_scroll_area.cpp | |
parent | 91c482d3d62086e490dced562e5b30c3cfa7f987 (diff) |
Add Some missing text to translate
svn path=/trunk/; revision=49271
Diffstat (limited to 'ui/qt/module_preferences_scroll_area.cpp')
-rw-r--r-- | ui/qt/module_preferences_scroll_area.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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()) { |