Add Some missing text to translate

svn path=/trunk/; revision=49271
This commit is contained in:
Alexis La Goutte 2013-05-13 20:23:46 +00:00
parent 91c482d3d6
commit a80ad2f9f2
6 changed files with 13 additions and 13 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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"));
}
}

View File

@ -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)
{

View File

@ -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()) {

View File

@ -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()) {