forked from osmocom/wireshark
Add Some missing text to translate
svn path=/trunk/; revision=47182
This commit is contained in:
parent
31b969a4b5
commit
bba1a7a599
|
@ -667,10 +667,10 @@ QString PacketList::allPacketComments()
|
|||
for (framenum = 1; framenum <= cap_file_->count ; framenum++) {
|
||||
fdata = frame_data_sequence_find(cap_file_->frames, framenum);
|
||||
if (fdata->opt_comment) {
|
||||
buf_str.append(QString("Frame %1: %2 \n\n").arg(framenum).arg(fdata->opt_comment));
|
||||
buf_str.append(QString(tr("Frame %1: %2 \n\n")).arg(framenum).arg(fdata->opt_comment));
|
||||
}
|
||||
if (buf_str.length() > max_comments_to_fetch_) {
|
||||
buf_str.append(QString("[ Comment text exceeds %1. Stopping. ]")
|
||||
buf_str.append(QString(tr("[ Comment text exceeds %1. Stopping. ]"))
|
||||
.arg(format_size(max_comments_to_fetch_, format_size_unit_bytes|format_size_prefix_si)));
|
||||
return buf_str;
|
||||
}
|
||||
|
|
|
@ -91,11 +91,11 @@ fill_advanced_prefs(module_t *module, gpointer root_ptr)
|
|||
item->setData(0, Qt::UserRole, qVariantFromValue(pref));
|
||||
item->setText(0, full_name);
|
||||
item->setToolTip(0, QString("<span>%1</span>").arg(pref->description));
|
||||
item->setToolTip(1, "Has this preference been changed?");
|
||||
item->setToolTip(1, QObject::tr("Has this preference been changed?"));
|
||||
item->setText(2, type_name);
|
||||
item->setToolTip(2, QString("<span>%1</span>").arg(type_desc));
|
||||
item->setToolTip(3, QString("<span>%1</span>").arg(
|
||||
default_value.isEmpty() ? default_value : "Default value is empty"));
|
||||
default_value.isEmpty() ? default_value : QObject::tr("Default value is empty")));
|
||||
tl_children << item;
|
||||
|
||||
// .uat is a void * so it wins the "useful key value" prize.
|
||||
|
@ -340,11 +340,11 @@ void PreferencesDialog::updateItem(QTreeWidgetItem &item)
|
|||
QFont font = item.font(0);
|
||||
|
||||
if (pref->type == PREF_UAT || pref->type == PREF_CUSTOM) {
|
||||
item.setText(1, "Unknown");
|
||||
item.setText(1, tr("Unknown"));
|
||||
} else if (stashedPrefIsDefault(pref)) {
|
||||
item.setText(1, "Default");
|
||||
item.setText(1, tr("Default"));
|
||||
} else {
|
||||
item.setText(1, "Changed");
|
||||
item.setText(1, tr("Changed"));
|
||||
is_changed = true;
|
||||
}
|
||||
font.setBold(is_changed);
|
||||
|
|
|
@ -132,40 +132,40 @@ void SplashOverlay::splashUpdate(register_action_e action, const char *message)
|
|||
|
||||
switch(action) {
|
||||
case RA_DISSECTORS:
|
||||
action_msg = "Initializing dissectors";
|
||||
action_msg = tr("Initializing dissectors");
|
||||
break;
|
||||
case RA_LISTENERS:
|
||||
action_msg = "Initializing tap listeners";
|
||||
action_msg = tr("Initializing tap listeners");
|
||||
break;
|
||||
case RA_REGISTER:
|
||||
action_msg = "Registering dissector";
|
||||
action_msg = tr("Registering dissector");
|
||||
break;
|
||||
case RA_PLUGIN_REGISTER:
|
||||
action_msg = "Registering plugins";
|
||||
action_msg = tr("Registering plugins");
|
||||
break;
|
||||
case RA_PYTHON_REGISTER:
|
||||
action_msg = "Registering Python dissectors";
|
||||
action_msg = tr("Registering Python dissectors");
|
||||
break;
|
||||
case RA_HANDOFF:
|
||||
action_msg = "Handing off dissector";
|
||||
action_msg = tr("Handing off dissector");
|
||||
break;
|
||||
case RA_PLUGIN_HANDOFF:
|
||||
action_msg = "Handing off plugins";
|
||||
action_msg = tr("Handing off plugins");
|
||||
break;
|
||||
case RA_PYTHON_HANDOFF:
|
||||
action_msg = "Handing off Python dissectors";
|
||||
action_msg = tr("Handing off Python dissectors");
|
||||
break;
|
||||
case RA_LUA_PLUGINS:
|
||||
action_msg = "Loading Lua plugins";
|
||||
action_msg = tr("Loading Lua plugins");
|
||||
break;
|
||||
case RA_PREFERENCES:
|
||||
action_msg = "Loading module preferences";
|
||||
action_msg = tr("Loading module preferences");
|
||||
break;
|
||||
case RA_CONFIGURATION:
|
||||
action_msg = "Loading configuration files";
|
||||
action_msg = tr("Loading configuration files");
|
||||
break;
|
||||
default:
|
||||
action_msg = "(Unknown action)";
|
||||
action_msg = tr("(Unknown action)");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,7 @@ void TimeShiftDialog::checkFrameNumber(SyntaxLineEdit &frame_le)
|
|||
if (cap_file_) {
|
||||
syntax_err_ = QString(tr("Frame numbers must be between 1 and %1.").arg(cap_file_->count));
|
||||
} else {
|
||||
syntax_err_ = "Invalid frame number.";
|
||||
syntax_err_ = tr("Invalid frame number.");
|
||||
}
|
||||
} else {
|
||||
frame_le.setSyntaxState(SyntaxLineEdit::Valid);
|
||||
|
@ -251,7 +251,7 @@ void TimeShiftDialog::applyTimeShift()
|
|||
|
||||
syntax_err_.clear();
|
||||
if (cap_file_->state == FILE_READ_IN_PROGRESS) {
|
||||
syntax_err_ = "Time shifting is not available capturing packets.";
|
||||
syntax_err_ = tr("Time shifting is not available capturing packets.");
|
||||
} else if (ts_ui_->shiftAllButton->isChecked()) {
|
||||
err_str = time_shift_all(cap_file_,
|
||||
ts_ui_->shiftAllTimeLineEdit->text().toUtf8().constData());
|
||||
|
|
Loading…
Reference in New Issue