/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Jobs::Jobs()
{
setupUi(this);
- m_name = "Jobs";
+ m_name = tr("Jobs");
pgInitialize();
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/run.png")));
m_checkcurwidget = false;
mp_treeWidget->clear();
m_checkcurwidget = true;
- QStringList headerlist = (QStringList() << "Job Name" << "Pool" << "Messages"
- << "Client" << "Storage" << "Where" << "Level" << "Type" << "FileSet"
- << "Catalog" << "Enabled");
+ QStringList headerlist = (QStringList() << tr("Job Name") << tr("Pool") << tr("Messages")
+ << tr("Client") << tr("Storage") << tr("Where") << tr("Level") << tr("Type")
+ << tr("FileSet")
+ << tr("Catalog") << tr("Enabled"));
- m_typeIndex = headerlist.indexOf("Type");
+ m_typeIndex = headerlist.indexOf(tr("Type"));
topItem = new QTreeWidgetItem(mp_treeWidget);
- topItem->setText(0, "Jobs");
+ topItem->setText(0, tr("Jobs"));
topItem->setData(0, Qt::UserRole, 0);
topItem->setExpanded(true);
mp_treeWidget->addAction(actionConsoleDisableJob);
mp_treeWidget->addAction(actionConsoleCancel);
mp_treeWidget->addAction(actionJobListQuery);
- if (currentwidgetitem->text(m_typeIndex) == "Backup")
+ if (currentwidgetitem->text(m_typeIndex) == tr("Backup"))
mp_treeWidget->addAction(actionRunJob);
}
}
void Jobs::consoleListFiles()
{
QString cmd = "list files job=\"" + m_currentlyselected + "\"";
+ if (mainWin->m_longList) { cmd.prepend("l"); }
consoleCommand(cmd);
}
void Jobs::consoleListVolume()
{
QString cmd = "list volumes job=\"" + m_currentlyselected + "\"";
+ if (mainWin->m_longList) { cmd.prepend("l"); }
consoleCommand(cmd);
}
void Jobs::consoleListNextVolume()
{
QString cmd = "list nextvolume job=\"" + m_currentlyselected + "\"";
+ if (mainWin->m_longList) { cmd.prepend("l"); }
consoleCommand(cmd);
}