From: Kern Sibbald Date: Sat, 16 Feb 2008 20:53:00 +0000 (+0000) Subject: Add translation strings X-Git-Tag: Release-7.0.0~5007 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cc4753289a932ee4e0e9251db54f3be1842ca56;p=bacula%2Fbacula Add translation strings git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6434 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/clients/clients.cpp b/bacula/src/qt-console/clients/clients.cpp index b04f1af243..96f2d2eac0 100644 --- a/bacula/src/qt-console/clients/clients.cpp +++ b/bacula/src/qt-console/clients/clients.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -44,7 +44,7 @@ Clients::Clients() { setupUi(this); - m_name = "Clients"; + m_name = tr("Clients"); pgInitialize(); QTreeWidgetItem* thisitem = mainWin->getFromHash(this); thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/network-server.png"))); @@ -78,11 +78,11 @@ void Clients::populateTree() mp_treeWidget->clear(); m_checkcurwidget = true; - QStringList headerlist = (QStringList() << "Client Name" << "File Retention" - << "Job Retention" << "AutoPrune" << "ClientId" << "Uname" ); + QStringList headerlist = (QStringList() << tr("Client Name") << tr("File Retention") + << tr("Job Retention") << tr("AutoPrune") << tr("ClientId") << tr("Uname") ); topItem = new QTreeWidgetItem(mp_treeWidget); - topItem->setText(0, "Clients"); + topItem->setText(0, tr("Clients")); topItem->setData(0, Qt::UserRole, 0); topItem->setExpanded(true); @@ -244,7 +244,7 @@ void Clients::currentStackItem() */ void Clients::consolePurgeJobs() { - if (QMessageBox::warning(this, tr("Bat"), + if (QMessageBox::warning(this, "Bat", tr("Are you sure you want to purge ?? !!!.\n" "The Purge command will delete associated Catalog database records from Jobs and" " Volumes without considering the retention period. Purge works only on the" @@ -252,7 +252,7 @@ void Clients::consolePurgeJobs() " be dangerous because you can delete catalog records associated with current" " backups of files, and we recommend that you do not use it unless you know what" " you are doing.\n\n" -" Is there any way I can get you to Click cancel here. You really don't want to do" +" Is there any way I can get you to click Cancel here? You really don't want to do" " this\n\n" "Press OK to proceed with the purge operation?"), QMessageBox::Ok | QMessageBox::Cancel) diff --git a/bacula/src/qt-console/fileset/fileset.cpp b/bacula/src/qt-console/fileset/fileset.cpp index ad75dc20ac..ab4b818325 100644 --- a/bacula/src/qt-console/fileset/fileset.cpp +++ b/bacula/src/qt-console/fileset/fileset.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -43,7 +43,7 @@ FileSet::FileSet() { setupUi(this); - m_name = "FileSets"; + m_name = tr("FileSets"); pgInitialize(); QTreeWidgetItem* thisitem = mainWin->getFromHash(this); thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/system-file-manager.png"))); @@ -79,11 +79,11 @@ void FileSet::populateTree() mp_treeWidget->clear(); m_checkcurwidget = true; - QStringList headerlist = (QStringList() << " FileSet Name " << "FileSet Id" - << "Create Time"); + QStringList headerlist = (QStringList() << tr(" FileSet Name ") << tr("FileSet Id") + << tr("Create Time")); topItem = new QTreeWidgetItem(mp_treeWidget); - topItem->setText(0, "FileSet"); + topItem->setText(0, tr("FileSet")); topItem->setData(0, Qt::UserRole, 0); topItem->setExpanded(true); diff --git a/bacula/src/qt-console/joblist/joblist.cpp b/bacula/src/qt-console/joblist/joblist.cpp index 0bb7930d7b..491fbb5ad5 100644 --- a/bacula/src/qt-console/joblist/joblist.cpp +++ b/bacula/src/qt-console/joblist/joblist.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -113,7 +113,7 @@ void JobList::populateTable() /* Can't do this in constructor because not neccesarily conected in constructor */ if (!m_populated) { - clientComboBox->addItem("Any"); + clientComboBox->addItem(tr("Any")); clientComboBox->addItems(m_console->client_list); int clientIndex = clientComboBox->findText(m_clientName, Qt::MatchExactly); if (clientIndex != -1) @@ -121,23 +121,23 @@ void JobList::populateTable() QStringList volumeList; m_console->getVolumeList(volumeList); - volumeComboBox->addItem("Any"); + volumeComboBox->addItem(tr("Any")); volumeComboBox->addItems(volumeList); int volumeIndex = volumeComboBox->findText(m_mediaName, Qt::MatchExactly); if (volumeIndex != -1) { volumeComboBox->setCurrentIndex(volumeIndex); } - jobComboBox->addItem("Any"); + jobComboBox->addItem(tr("Any")); jobComboBox->addItems(m_console->job_list); int jobIndex = jobComboBox->findText(m_jobName, Qt::MatchExactly); if (jobIndex != -1) { jobComboBox->setCurrentIndex(jobIndex); } - levelComboBox->addItem("Any"); + levelComboBox->addItem(tr("Any")); levelComboBox->addItems( QStringList() << "F" << "D" << "I"); - purgedComboBox->addItem("Any"); + purgedComboBox->addItem(tr("Any")); purgedComboBox->addItems( QStringList() << "0" << "1"); - fileSetComboBox->addItem("Any"); + fileSetComboBox->addItem(tr("Any")); fileSetComboBox->addItems(m_console->fileset_list); int filesetIndex = fileSetComboBox->findText(m_filesetName, Qt::MatchExactly); if (filesetIndex != -1) { @@ -145,7 +145,7 @@ void JobList::populateTable() } QStringList statusLongList; m_console->getStatusList(statusLongList); - statusComboBox->addItem("Any"); + statusComboBox->addItem(tr("Any")); statusComboBox->addItems(statusLongList); } @@ -155,7 +155,7 @@ void JobList::populateTable() if (volumeIndex != -1) m_mediaName = volumeComboBox->itemText(volumeIndex); QString distinct = ""; - if (m_mediaName != "Any") { distinct = "DISTINCT "; } + if (m_mediaName != tr("Any")) { distinct = "DISTINCT "; } query += "SELECT " + distinct + "Job.Jobid AS Id, Job.Name AS JobName, " " Client.Name AS Client," " Job.Starttime AS JobStart, Job.Type AS JobType," @@ -168,7 +168,7 @@ void JobList::populateTable() " JOIN Status ON (Job.JobStatus=Status.JobStatus)" " LEFT OUTER JOIN FileSet ON (FileSet.FileSetId=Job.FileSetId) "; QStringList conditions; - if (m_mediaName != "Any") { + if (m_mediaName != tr("Any")) { query += " LEFT OUTER JOIN JobMedia ON (JobMedia.JobId=Job.JobId) " " LEFT OUTER JOIN Media ON (JobMedia.MediaId=Media.MediaId) "; conditions.append("Media.VolumeName='" + m_mediaName + "'"); @@ -176,31 +176,31 @@ void JobList::populateTable() int clientIndex = clientComboBox->currentIndex(); if (clientIndex != -1) m_clientName = clientComboBox->itemText(clientIndex); - if (m_clientName != "Any") { + if (m_clientName != tr("Any")) { conditions.append("Client.Name='" + m_clientName + "'"); } int jobIndex = jobComboBox->currentIndex(); if (jobIndex != -1) m_jobName = jobComboBox->itemText(jobIndex); - if ((jobIndex != -1) && (jobComboBox->itemText(jobIndex) != "Any")) { + if ((jobIndex != -1) && (jobComboBox->itemText(jobIndex) != tr("Any"))) { conditions.append("Job.Name='" + jobComboBox->itemText(jobIndex) + "'"); } int levelIndex = levelComboBox->currentIndex(); - if ((levelIndex != -1) && (levelComboBox->itemText(levelIndex) != "Any")) { + if ((levelIndex != -1) && (levelComboBox->itemText(levelIndex) != tr("Any"))) { conditions.append("Job.Level='" + levelComboBox->itemText(levelIndex) + "'"); } int statusIndex = statusComboBox->currentIndex(); - if ((statusIndex != -1) && (statusComboBox->itemText(statusIndex) != "Any")) { + if ((statusIndex != -1) && (statusComboBox->itemText(statusIndex) != tr("Any"))) { conditions.append("Status.JobStatusLong='" + statusComboBox->itemText(statusIndex) + "'"); } int purgedIndex = purgedComboBox->currentIndex(); - if ((purgedIndex != -1) && (purgedComboBox->itemText(purgedIndex) != "Any")) { + if ((purgedIndex != -1) && (purgedComboBox->itemText(purgedIndex) != tr("Any"))) { conditions.append("Job.PurgedFiles='" + purgedComboBox->itemText(purgedIndex) + "'"); } int fileSetIndex = fileSetComboBox->currentIndex(); if (fileSetIndex != -1) m_filesetName = fileSetComboBox->itemText(fileSetIndex); - if ((fileSetIndex != -1) && (fileSetComboBox->itemText(fileSetIndex) != "Any")) { + if ((fileSetIndex != -1) && (fileSetComboBox->itemText(fileSetIndex) != tr("Any"))) { conditions.append("FileSet.FileSet='" + fileSetComboBox->itemText(fileSetIndex) + "'"); } /* If Limit check box For limit by days is checked */ @@ -229,16 +229,17 @@ void JobList::populateTable() /* Set up the Header for the table */ QStringList headerlist = (QStringList() - << "Job Id" << "Job Name" << "Client" << "Job Starttime" << "Job Type" - << "Job Level" << "Job Files" << "Job Bytes" << "Job Status" << "Purged" << "File Set" ); - m_jobIdIndex = headerlist.indexOf("Job Id"); - m_purgedIndex = headerlist.indexOf("Purged"); - m_typeIndex = headerlist.indexOf("Job Type"); - m_statusIndex = headerlist.indexOf("Job Status"); - m_startIndex = headerlist.indexOf("Job Starttime"); - m_filesIndex = headerlist.indexOf("Job Files"); - m_bytesIndex = headerlist.indexOf("Job Bytes"); - int jobLevelIndex = headerlist.indexOf("Job Level"); + << tr("Job Id") << tr("Job Name") << tr("Client") << tr("Job Starttime") + << tr("Job Type") << tr("Job Level") << tr("Job Files") + << tr("Job Bytes") << tr("Job Status") << tr("Purged") << tr("File Set")); + m_jobIdIndex = headerlist.indexOf(tr("Job Id")); + m_purgedIndex = headerlist.indexOf(tr("Purged")); + m_typeIndex = headerlist.indexOf(tr("Job Type")); + m_statusIndex = headerlist.indexOf(tr("Job Status")); + m_startIndex = headerlist.indexOf(tr("Job Starttime")); + m_filesIndex = headerlist.indexOf(tr("Job Files")); + m_bytesIndex = headerlist.indexOf(tr("Job Bytes")); + int jobLevelIndex = headerlist.indexOf(tr("Job Level")); /* Initialize the QTableWidget */ m_checkCurrentWidget = false; @@ -291,12 +292,12 @@ void JobList::populateTable() bool okay; int isPurged = field.toInt(&okay); if (okay){ - if (isPurged) { p_tableitem->setText("IS"); - } else { p_tableitem->setText("NOT"); } + if (isPurged) { p_tableitem->setText(tr("IS")); + } else { p_tableitem->setText(tr("NOT")); } } } else if (column == m_typeIndex) { - if (field == "B") { p_tableitem->setText("Backup"); } - else if (field == "R") { p_tableitem->setText("Restore"); } + if (field == "B") { p_tableitem->setText(tr("Backup")); } + else if (field == "R") { p_tableitem->setText(tr("Restore")); } } else if (column == jobLevelIndex) { if (field == "F") { p_tableitem->setText("Full"); } else if (field == "D") { p_tableitem->setText("Diff"); } @@ -315,10 +316,10 @@ void JobList::populateTable() mp_tableWidget->resizeColumnsToContents(); mp_tableWidget->resizeRowsToContents(); mp_tableWidget->verticalHeader()->hide(); - if ((m_mediaName != "Any") && (m_resultCount == 0)){ + if ((m_mediaName != tr("Any")) && (m_resultCount == 0)){ /* for context sensitive searches, let the user know if there were no * results */ - QMessageBox::warning(this, tr("Bat"), + QMessageBox::warning(this, "Bat", tr("The Jobs query returned no results.\n" "Press OK to continue?"), QMessageBox::Ok ); } @@ -527,7 +528,7 @@ void JobList::consoleListJobTotals() } void JobList::consoleDeleteJob() { - if (QMessageBox::warning(this, tr("Bat"), + if (QMessageBox::warning(this, "Bat", tr("Are you sure you want to delete?? !!!.\n" "This delete command is used to delete a Job record and all associated catalog" " records that were created. This command operates only on the Catalog" @@ -545,7 +546,7 @@ void JobList::consoleDeleteJob() } void JobList::consolePurgeFiles() { - if (QMessageBox::warning(this, tr("Bat"), + if (QMessageBox::warning(this, "Bat", tr("Are you sure you want to purge ?? !!!.\n" "The Purge command will delete associated Catalog database records from Jobs and" " Volumes without considering the retention period. Purge works only on the" diff --git a/bacula/src/qt-console/jobs/jobs.cpp b/bacula/src/qt-console/jobs/jobs.cpp index c7dade59cf..579c5e3e26 100644 --- a/bacula/src/qt-console/jobs/jobs.cpp +++ b/bacula/src/qt-console/jobs/jobs.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -42,7 +42,7 @@ 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"))); @@ -75,13 +75,14 @@ void Jobs::populateTree() 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); @@ -161,7 +162,7 @@ void Jobs::treeItemChanged(QTreeWidgetItem *currentwidgetitem, QTreeWidgetItem * 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); } } diff --git a/bacula/src/qt-console/mediaedit/mediaedit.cpp b/bacula/src/qt-console/mediaedit/mediaedit.cpp index 7bd6107015..22aaf090be 100644 --- a/bacula/src/qt-console/mediaedit/mediaedit.cpp +++ b/bacula/src/qt-console/mediaedit/mediaedit.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -44,7 +44,7 @@ MediaEdit::MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId) { setupUi(this); - m_name = "Media Edit"; + m_name = tr("Media Edit"); pgInitialize(parentWidget); QTreeWidgetItem* thisitem = mainWin->getFromHash(this); thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/cartridge-edit.png"))); @@ -72,7 +72,8 @@ MediaEdit::MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId) poolCombo->addItems(m_console->pool_list); /* The media's Status */ - QStringList statusList = (QStringList() << "Full" << "Used" << "Append" << "Error" << "Purged" << "Recycle" << "Read-Only" << "Cleaning"); + QStringList statusList = (QStringList() << "Full" << "Used" << "Append" + << "Error" << "Purged" << "Recycle" << "Read-Only" << "Cleaning"); statusCombo->addItems(statusList); /* Set up the query for the default values */ @@ -192,7 +193,7 @@ MediaEdit::MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId) recyclePoolCombo->setCurrentIndex(index); } } else { - QMessageBox::warning(this, "No Volume name", "No Volume name given", + QMessageBox::warning(this, tr("No Volume name"), tr("No Volume name given"), QMessageBox::Ok, QMessageBox::Ok); return; } diff --git a/bacula/src/qt-console/medialist/medialist.cpp b/bacula/src/qt-console/medialist/medialist.cpp index 8a871dcf55..54bfc0a91f 100644 --- a/bacula/src/qt-console/medialist/medialist.cpp +++ b/bacula/src/qt-console/medialist/medialist.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -47,7 +47,7 @@ MediaList::MediaList() { setupUi(this); - m_name = "Media"; + m_name = tr("Media"); pgInitialize(); QTreeWidgetItem* thisitem = mainWin->getFromHash(this); thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/cartridge.png"))); @@ -80,10 +80,10 @@ void MediaList::populateTree() return; QStringList headerlist = (QStringList() - << "Volume Name" << "Id" << "Status" << "Enabled" << "Bytes" << "Files" - << "Jobs" << "Retention" << "Media Type" << "Slot" << "Use Duration" - << "Max Jobs" << "Max Files" << "Max Bytes" << "Recycle" << "Enabled" - << "RecyclePool" << "Last Written"); + << tr("Volume Name") << tr("Id") << tr("Status") << tr("Enabled") << tr("Bytes") << tr("Files") + << tr("Jobs") << tr("Retention") << tr("Media Type") << tr("Slot") << tr("Use Duration") + << tr("Max Jobs") << tr("Max Files") << tr("Max Bytes") << tr("Recycle") << tr("Enabled") + << tr("RecyclePool") << tr("Last Written")); int statusIndex = headerlist.indexOf("Status"); QStringList flaglist = (QStringList() << "L" << "R" << "L" << "R" << "BR" << "R" @@ -98,7 +98,7 @@ void MediaList::populateTree() m_checkcurwidget = true; mp_treeWidget->setColumnCount(headerlist.count()); m_topItem = new QTreeWidgetItem(mp_treeWidget); - m_topItem->setText(0, "Pools"); + m_topItem->setText(0, tr("Pools")); m_topItem->setData(0, Qt::UserRole, 0); m_topItem->setExpanded(true); @@ -312,7 +312,7 @@ void MediaList::currentStackItem() */ void MediaList::deleteVolume() { - if (QMessageBox::warning(this, tr("Bat"), + if (QMessageBox::warning(this, "Bat", tr("Are you sure you want to delete?? !!!.\n" "This delete command is used to delete a Volume record and all associated catalog" " records that were created. This command operates only on the Catalog" @@ -334,7 +334,7 @@ void MediaList::deleteVolume() */ void MediaList::purgeVolume() { - if (QMessageBox::warning(this, tr("Bat"), + if (QMessageBox::warning(this, "Bat", tr("Are you sure you want to purge ?? !!!.\n" "The Purge command will delete associated Catalog database records from Jobs and" " Volumes without considering the retention period. Purge works only on the" diff --git a/bacula/src/qt-console/restore/prerestore.cpp b/bacula/src/qt-console/restore/prerestore.cpp index 379bf483fb..32adc173d1 100644 --- a/bacula/src/qt-console/restore/prerestore.cpp +++ b/bacula/src/qt-console/restore/prerestore.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-2007 Free Software Foundation Europe e.V. + Copyright (C) 2007-20087 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. @@ -59,7 +59,7 @@ prerestorePage::prerestorePage() */ void prerestorePage::buildPage() { - m_name = "Restore"; + m_name = tr("Restore"); setupUi(this); pgInitialize(); m_console->notify(false); @@ -73,7 +73,7 @@ void prerestorePage::buildPage() jobCombo->addItems(m_console->job_list); filesetCombo->addItems(m_console->fileset_list); clientCombo->addItems(m_console->client_list); - poolCombo->addItem("Any"); + poolCombo->addItem(tr("Any")); poolCombo->addItems(m_console->pool_list); storageCombo->addItems(m_console->storage_list); /* current or before . . Start out with current checked */ @@ -85,7 +85,7 @@ void prerestorePage::buildPage() if (m_dataInType == R_NONE) { selectJobRadio->setChecked(true); selectJobIdsRadio->setChecked(false); - jobIdEdit->setText("Comma separted list of jobs id's"); + jobIdEdit->setText(tr("Comma separted list of Job Ids")); jobIdEdit->setEnabled(false); } else if (m_dataInType == R_JOBIDLIST) { selectJobIdsRadio->setChecked(true); @@ -101,7 +101,7 @@ void prerestorePage::buildPage() } else if (m_dataInType == R_JOBDATETIME) { selectJobRadio->setChecked(true); selectJobIdsRadio->setChecked(false); - jobIdEdit->setText("Comma separted list of jobs id's"); + jobIdEdit->setText(tr("Comma separted list of Job Ids")); jobIdEdit->setEnabled(false); recentCheckBox->setCheckState(Qt::Unchecked); jobRadioClicked(true); @@ -191,7 +191,7 @@ void prerestorePage::okButtonPushed() */ void prerestorePage::cancelButtonPushed() { - mainWin->set_status("Canceled"); + mainWin->set_status(tr("Canceled")); this->hide(); m_console->notify(true); closeStackPage(); @@ -269,7 +269,7 @@ bool prerestorePage::checkJobIdList() /* Need to check and make sure the text is a comma separated list of integers */ QString line = jobIdEdit->text(); if (line.contains(" ")) { - QMessageBox::warning(this, tr("Bat"), + QMessageBox::warning(this, "Bat", tr("There can be no spaces in the text for the joblist.\n" "Press OK to continue?"), QMessageBox::Ok ); return false; @@ -301,8 +301,8 @@ bool prerestorePage::checkJobIdList() } } if (!allintokay){ - QMessageBox::warning(this, tr("Bat"), - tr("The string is not a comma separated list if integers.\n" + QMessageBox::warning(this, "Bat", + tr("The string is not a comma separated list of integers.\n" "Press OK to continue?"), QMessageBox::Ok ); return false; } @@ -313,7 +313,7 @@ bool prerestorePage::checkJobIdList() return false; } if (!alljobok){ - QMessageBox::warning(this, tr("Bat"), + QMessageBox::warning(this, "Bat", tr("All jobs in the list must be of the same jobName and same client.\n" "Press OK to continue?"), QMessageBox::Ok ); return false; diff --git a/bacula/src/qt-console/restore/restoretree.cpp b/bacula/src/qt-console/restore/restoretree.cpp index d18b79bedb..ee9055109a 100644 --- a/bacula/src/qt-console/restore/restoretree.cpp +++ b/bacula/src/qt-console/restore/restoretree.cpp @@ -139,7 +139,7 @@ void restoreTree::updateRefresh() ); if (m_dropdownChanged) { if (mainWin->m_rtPopDirDebug) Pmsg0(000, "In restoreTree::updateRefresh Is CHANGED\n"); - refreshLabel->setText("Refresh From Re-Select"); + refreshLabel->setText(tr("Refresh From Re-Select")); } else { if (mainWin->m_rtPopDirDebug) Pmsg0(000, "In restoreTree::updateRefresh Is not Changed\n"); refreshLabel->setText(tr("Refresh From JobChecks")); diff --git a/bacula/src/qt-console/run/estimate.cpp b/bacula/src/qt-console/run/estimate.cpp index 9ce3ced578..f3193a4679 100644 --- a/bacula/src/qt-console/run/estimate.cpp +++ b/bacula/src/qt-console/run/estimate.cpp @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2007-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. @@ -44,7 +44,7 @@ estimatePage::estimatePage() { QDateTime dt; - m_name = "Estimate"; + m_name = tr("Estimate"); pgInitialize(); setupUi(this); m_console->notify(false); diff --git a/bacula/src/qt-console/translations/bat_fr.ts b/bacula/src/qt-console/translations/bat_fr.ts index 4b8293ae90..4d6dd5f46f 100644 --- a/bacula/src/qt-console/translations/bat_fr.ts +++ b/bacula/src/qt-console/translations/bat_fr.ts @@ -1,47 +1,59 @@ - + + ClientForm + Client Tree + Refresh Client List + Requery the director for the list of clients. + List Jobs of Client + Open a joblist page selecting this client. + Status Client In Console + Execute status client in console. + Purge Jobs + Purge jobs peformed from this client. + Prune Jobs + Open the diaolog to prune for this client. @@ -49,14 +61,46 @@ Clients - Bat + + Clients + + + + + Client Name + + + + + File Retention + + + + + Job Retention + + + + + AutoPrune + + + + + ClientId + + + + + Uname + Are you sure you want to purge ?? !!!. The Purge command will delete associated Catalog database records from Jobs and Volumes without considering the retention period. Purge works only on the Catalog database and does not affect data written to Volumes. This command can be dangerous because you can delete catalog records associated with current backups of files, and we recommend that you do not use it unless you know what you are doing. - Is there any way I can get you to Click cancel here. You really don't want to do this + Is there any way I can get you to click Cancel here? You really don't want to do this Press OK to proceed with the purge operation? @@ -65,22 +109,27 @@ Press OK to proceed with the purge operation? ConsoleForm + Console + StatusDir + Console Help + Request Messages + Reload bacula-dir.conf @@ -88,6 +137,7 @@ Press OK to proceed with the purge operation? DirComm + Bat @@ -95,50 +145,62 @@ Press OK to proceed with the purge operation? DirStat + Job Id + Job Level + Job Files + Job Bytes + Job Status + Job Time + Job Name + Job Type + Priority + Volume + Job Data + Job Info @@ -146,10 +208,12 @@ Press OK to proceed with the purge operation? DirStatForm + Form + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -157,6 +221,7 @@ p, li { white-space: pre-wrap; } + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -164,6 +229,7 @@ p, li { white-space: pre-wrap; } + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -171,25 +237,58 @@ p, li { white-space: pre-wrap; } + + FileSet + + + FileSets + + + + + FileSet Name + + + + + FileSet Id + + + + + Create Time + + + + + FileSet + + + FileSetForm + FileSet Tree + Refresh FileSet List + Requery the director for the list of storage objects. + Status FileSet In Console + ShowJobs @@ -197,6 +296,7 @@ p, li { white-space: pre-wrap; } Help + Help: %1 @@ -204,125 +304,229 @@ p, li { white-space: pre-wrap; } JobList - Bat - - - + The Jobs query returned no results. Press OK to continue? + Are you sure you want to delete?? !!!. This delete command is used to delete a Job record and all associated catalog records that were created. This command operates only on the Catalog database and has no effect on the actual data written to a Volume. This command can be dangerous and we strongly recommend that you do not use it unless you know what you are doing. The Job and all its associated records (File and JobMedia) will be deleted from the catalog.Press OK to proceed with delete operation.? + Are you sure you want to purge ?? !!!. The Purge command will delete associated Catalog database records from Jobs and Volumes without considering the retention period. Purge works only on the Catalog database and does not affect data written to Volumes. This command can be dangerous because you can delete catalog records associated with current backups of files, and we recommend that you do not use it unless you know what you are doing. Press OK to proceed with the purge operation? + + + Any + + + + + Job Id + + + + + Job Name + + + + + Client + + + + + Job Starttime + + + + + Job Type + + + + + Job Level + + + + + Job Files + + + + + Job Bytes + + + + + Job Status + + + + + Purged + + + + + File Set + + + + + IS + + + + + NOT + + + + + Backup + + + + + Restore + + JobListForm + Form + Refresh + Graph + FileSet + Status + Purged + Record Limit + Days Limit + Clients + Volume + Job + Level + Refresh Job List + Requery the director for the list of jobs. + ListJobid + List Files On Job + ListJobMedia + ListVolumes + DeleteJob + PurgeFiles + Restore From Job + Restore From Time + Show Log for Job + Cancel Currently Running Job + List Job Totals in Console @@ -330,10 +534,12 @@ Press OK to proceed with the purge operation? JobLog + Bat + There were no results ?? !!!. It is possible you may need to add "catalog = all" to the Messages stanza for this job. @@ -343,6 +549,7 @@ It is possible you may need to add "catalog = all" to the Messages sta JobLogForm + Job Log @@ -350,10 +557,12 @@ It is possible you may need to add "catalog = all" to the Messages sta JobPlot + Bat + The Jobs query returned no results. Press OK to continue? @@ -362,314 +571,459 @@ Press OK to continue? JobPlotControlsForm + Form + File Data + Byte Data + Refresh + Status + Level + Purged + FileSet + Volume + Client + Job + Days Limit + Record Limit + Byte Symbol Type + File Symbol Type + Graph Type + + Jobs + + + Jobs + + + + + Job Name + + + + + Pool + + + + + Messages + + + + + Client + + + + + Storage + + + + + Where + + + + + Level + + + + + Type + + + + + FileSet + + + + + Catalog + + + + + Enabled + + + + + Backup + + + MainForm + bat - Bacula Admin Tool + Bacula Administration Tool + It's a Dock widget to allow page selection + &Edit + Settings + &Help + &File + Current Status + Tool Bar + Page Selector Choisir Page + Selects panel window + Use items in this tree to select what window is in panel + Console Entry + Enter a bacula command Entrer une commande Bacula + Console Command entry Dock Widget + Console Command Line Entry + Command: Commande: + Click here to enter command + &Quit + Ctrl+Q + &About bat + &Copy + Cu&t + new + open + &Paste + &Print + Print + &Save + Save (not implemented) + Connect + Connect/disconnect + Label + Label a Volume + Restore + Restore Files + Run Job + Run a Job + Estimate Job + Estimate a Job + Status Dir Query status of director + Status Dir + Query status of director in console + &Select Font ... + Undock Window + Undock Current Window + ToggleDock + Toggle Dock Status + Close Page Fermer la Page + Close The Current Page + Messages + Display any messages queued at the director + &Preferences ... + Set Preferences + bat &Help + Browse + Browse Cataloged Files + JobPlot + Plot Job Files and Bytes + Status Dir Page + Director Status Page @@ -677,87 +1031,214 @@ Press OK to continue? MainWin + Director not connected. Click on connect button. + About bat A propos bat + <br><h2>bat 1.0, by Dirk H Bartley and Kern Sibbald</h2><p>Copyright &copy; 2007- <br><h2>bat 1.0, par Dirk H Bartley et Kern Sibbald</h2><p>Copyright &copy; 2007- + Ready Prêt - MediaList + MediaEdit - Bat + + Media Edit + + + + + No Volume name + + No Volume name given + + + + + MediaList + + Are you sure you want to delete?? !!!. This delete command is used to delete a Volume record and all associated catalog records that were created. This command operates only on the Catalog database and has no effect on the actual data written to a Volume. This command can be dangerous and we strongly recommend that you do not use it unless you know what you are doing. All Jobs and all associated records (File and JobMedia) will be deleted from the catalog.Press OK to proceed with delete operation.? + Are you sure you want to purge ?? !!!. The Purge command will delete associated Catalog database records from Jobs and Volumes without considering the retention period. Purge works only on the Catalog database and does not affect data written to Volumes. This command can be dangerous because you can delete catalog records associated with current backups of files, and we recommend that you do not use it unless you know what you are doing. Press OK to proceed with the purge operation? + + + Media + + + + + Volume Name + + + + + Id + + + + + Status + + + + + Enabled + + + + + Bytes + + + + + Files + + + + + Jobs + + + + + Retention + + + + + Media Type + + + + + Slot + + + + + Use Duration + + + + + Max Jobs + + + + + Max Files + + + + + Max Bytes + + + + + Recycle + + + + + RecyclePool + + + + + Last Written + + + + + Pools + + MediaListForm + Media Tree + Refresh Media List + Requery the director for the list of media. + Edit Volume + List Jobs On Volume + Delete Volume + Prune Volume + Purge Volume + Relabel Volume + Update all Volumes From Pool + Update all Volumes from all Pools + Volume From Pool @@ -765,18 +1246,22 @@ Press OK to proceed with the purge operation? Pages + of Director + UnDock + ReDock + Window @@ -784,166 +1269,207 @@ Press OK to proceed with the purge operation? PrefsForm + Preferences + Messages + Messages Options + Message check interval in seconds + Check Messages + Joblist + Jolist Limit Options + Days Limit + Record Limit + Misc + Convert + Convert Off + Convert Bytes with IEC 1000B = KB + Convert Bytes with 1024B = KB + Context Sensitive List Commands + Execute Long List + GroupBox + Open Plot page on startup + Open Browser page on startup + Open Director Status page on startup + Debug + Debugging Options + Debug comm + Display all messages in console + Debug Commands + Debug Sql queries + Debug Miscelaneous Items + RestoreTree + Restore Debug 2 + Directory Item Changed + Restore Debug 1 + Directory Current Item Changed Debug + Update File Table Debug + Version Table Item Changed Debug + File Table Item Changed Debug + Icon State Debug + Update Checks Debug + Restore Debug 3 + Update Version Table Debug + Populate Directory Debug + <h2>Preferences</h2> @@ -951,42 +1477,52 @@ Press OK to proceed with the purge operation? StorageForm + Storage Tree + Refresh Storage List + Requery the director for the list of storage objects. + Status Storage In Console + Label Storage + MountStorage + UnMount Storage + Update Slots + Update Slots Scan + Release @@ -994,50 +1530,62 @@ Press OK to proceed with the purge operation? bRestoreForm + brestore + File list + Type + File Name + Size + Date + File revisions + InChanger + Volume + JobId + Chksum + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -1045,30 +1593,37 @@ p, li { white-space: pre-wrap; } + Clear + Estimate + Restore + FileName + FileIndex + Nb Files + Location @@ -1076,57 +1631,78 @@ p, li { white-space: pre-wrap; } estimateForm + Form + List Files + Level: + Client: + Job: + FileSet: + <h3>Estimate a backup Job</h3> + OK + Cancel + + estimatePage + + + Estimate + + + helpForm + Form + &Home + &Back + Close @@ -1134,46 +1710,57 @@ p, li { white-space: pre-wrap; } jobsForm + Client Tree + Refresh Jobs List + Requery the director for the list of clients. + List Files Command + List Volumes Command + List Next Volume Command + Enable Job Command + Disable Job Command + Open JobList on Job + Cancel Job Command + RunJob @@ -1181,46 +1768,57 @@ p, li { white-space: pre-wrap; } labelForm + Form + OK + Cancel + Volume Name: + Storage: + Slot: + Execute Automount + On + Off + Pool: + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -1231,98 +1829,122 @@ p, li { white-space: pre-wrap; } mediaEditForm + Form + Pool: + Volume Status: + Max Volume Bytes: + Slot: + Max Volume Jobs: + Use Duration: + OK + Cancel + Retension: + Recycle Pool: + Enabled + Max Volume Files: + Years + Seconds + Use Duration + Days + Hours + Months + Retention + Minutes + Volume : + Recycle + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -1333,18 +1955,22 @@ p, li { white-space: pre-wrap; } mountForm + Label + TextLabel + Slot: + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -1355,6 +1981,7 @@ p, li { white-space: pre-wrap; } prefsDialog + Canceled @@ -1362,62 +1989,77 @@ p, li { white-space: pre-wrap; } prerestoreForm + Form + All Files + Select Files + Job + JobIds + yyyy-mm-dd h:mm:ss + Use Most Recent + File Set: + Client: + Storage: + Before: + Pool: + OK + Cancel + <h3>Select Jobs</h3> @@ -1425,26 +2067,51 @@ p, li { white-space: pre-wrap; } prerestorePage + Bat + There can be no spaces in the text for the joblist. Press OK to continue? - The string is not a comma separated list if integers. + + At least one of the jobs is not a valid job of type "Backup". Press OK to continue? - At least one of the jobs is not a valid job of type "Backup". + + All jobs in the list must be of the same jobName and same client. Press OK to continue? - All jobs in the list must be of the same jobName and same client. + + Restore + + + + + Any + + + + + Comma separted list of Job Ids + + + + + Canceled + + + + + The string is not a comma separated list of integers. Press OK to continue? @@ -1452,38 +2119,47 @@ Press OK to continue? pruneForm + Form + Prune Files + Volume: + <h3>Prune Files/Jobs/Volumes</h3> + Prune Jobs + OK + Cancel + Client: + Prune Volumes @@ -1491,30 +2167,37 @@ Press OK to continue? relabelForm + Label + From Volume : + Pool: + Storage: + New Volume Name: + Slot: + <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> @@ -1525,74 +2208,92 @@ p, li { white-space: pre-wrap; } restoreForm + Form + 1 + 2 + 3 + 4 + 5 + 6 + <h2>Directories</h2> + <h3>Restore Select</h3> + Up + Mark + Unmark + <h2>Files</h2> + Status: + Current Dir: + OK + Cancel + UnMark @@ -1600,48 +2301,59 @@ p, li { white-space: pre-wrap; } restorePage + Restore Select + Mark + File + Mode + User + Group + Size + Date + In addDirectory cwd "%1" newdir "%2" + In else of if parent cwd "%1" newdir "%2" + Canceled @@ -1649,188 +2361,238 @@ p, li { white-space: pre-wrap; } restoreTree + Version Browser + Directories + Any + Refresh From JobChecks + Task + Querying Database + Querying Jobs + Querying for Directories + Processing Directories + No jobs were selected in the job query !!!. Press OK to continue? + In addDirectory cwd "%1" newdir "%2" + In else of if parent cwd "%1" newdir "%2" + File Name + Filename Id + Present Working Directory : + Job Id + Type + End Time + Hash + FileId + RestoreTreePage + Level + Name + Purged + TU + TD + + + Refresh From Re-Select + + restoreTreeForm + Form + Jobs + TextLabel + Files + Versions of File + FileName + Refresh + Restore + Job + Job List Job Criterion Selector + Client + Job List Client Criterion Selector + FileSet + Job List Fileset Criterion Selector + Record Limit + Days Limit + Directory + Select Directory + UnselectDirectory @@ -1838,62 +2600,77 @@ Press OK to continue? runCmdForm + Form + Priority: + yyyy-mm-dd hh:mm:ss + When: + Where: + Bootstrap: + Job: + Storage: + FileSet: + Replace: + To client: + Catalog: + OK + Cancel + <h3>Run Restore Job</h3> @@ -1901,70 +2678,87 @@ Press OK to continue? runForm + Form + Level: + Bootstrap: + yyyy-mm-dd hh:mm:ss + Job: + Pool: + Type: + <h3>Backup<h3/> + FileSet: + Messages: + <h3>Run a Job</h3> + Priority: + Client: + OK + Cancel + Storage: + When: @@ -1972,6 +2766,7 @@ Press OK to continue? selectForm + Selection dialog