Commit 58594509 authored by Julius Künzel's avatar Julius Künzel
Browse files

l10n improvements by @bellaperez: Misc

Related to !262

Co-authored-by: Antoni Bella Pérez's avatarAntoni Bella Pérez <antonibella5@yahoo.com>
parent f2ffb17e
Pipeline #132755 passed with stage
in 8 minutes and 35 seconds
......@@ -44,11 +44,11 @@ QUrl SamplePlugin::generatedClip(const QString &renderer, const QString &generat
Ui::CountDown_UI view;
view.setupUi(d);
if (generator == i18n("Noise")) {
d->setWindowTitle(i18n("Create Noise Clip"));
d->setWindowTitle(i18nc("@title:window", "Create Noise Clip"));
view.font_label->setHidden(true);
view.font->setHidden(true);
} else {
d->setWindowTitle(i18n("Create Countdown Clip"));
d->setWindowTitle(i18nc("@title:window", "Create Countdown Clip"));
view.font->setValue(height);
}
......
......@@ -83,7 +83,7 @@ AssetPanel::AssetPanel(QWidget *parent)
m_saveEffectStack = new QToolButton(this);
m_saveEffectStack->setIcon(QIcon::fromTheme(QStringLiteral("document-save-all")));
m_saveEffectStack->setToolTip(i18n("Save Effect Stack"));
m_saveEffectStack->setToolTip(i18n("Save Effect Stack"));
// Would be better to have something like `setVisible(false)` here, but this apparently removes the button.
// See https://stackoverflow.com/a/17645563/5172513
m_saveEffectStack->setEnabled(false);
......
......@@ -49,7 +49,7 @@ void AssetParameterView::setModel(const std::shared_ptr<AssetParameterModel> &mo
m_presetGroup->setExclusive(true);
m_presetMenu->addAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Reset Effect"), this, &AssetParameterView::resetValues);
// Save preset
m_presetMenu->addAction(QIcon::fromTheme(QStringLiteral("document-save-as-template")), i18n("Save preset"), this, [&](){ slotSavePreset(); });
m_presetMenu->addAction(QIcon::fromTheme(QStringLiteral("document-save-as-template")), i18n("Save preset"), this, [&](){ slotSavePreset(); });
QAction *updatePreset = m_presetMenu->addAction(QIcon::fromTheme(QStringLiteral("document-save-as-template")), i18n("Update current preset"), this, &AssetParameterView::slotUpdatePreset);
QAction *deletePreset = m_presetMenu->addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), i18n("Delete preset"), this, &AssetParameterView::slotDeleteCurrentPreset);
m_presetMenu->addSeparator();
......@@ -329,7 +329,7 @@ void AssetParameterView::slotSavePreset(QString presetName)
{
if (presetName.isEmpty()) {
bool ok;
presetName = QInputDialog::getText(this, i18n("Enter preset name"), i18n("Enter the name of this preset"), QLineEdit::Normal, QString(), &ok);
presetName = QInputDialog::getText(this, i18nc("@title:window", "Enter Preset Name"), i18n("Enter the name of this preset:"), QLineEdit::Normal, QString(), &ok);
if (!ok) return;
}
QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QStringLiteral("/effects/presets/"));
......
......@@ -146,7 +146,7 @@ KeyframeImport::KeyframeImport(const QString &animData, std::shared_ptr<AssetPar
// Output offset
int clipIn = parentIn;
m_offsetPoint = new PositionWidget(i18n("Time offset"), clipIn, 0, clipIn + parentDuration, pCore->currentDoc()->timecode(), "", this);
m_offsetPoint = new PositionWidget(i18n("Time offset:"), clipIn, 0, clipIn + parentDuration, pCore->currentDoc()->timecode(), "", this);
lay->addWidget(m_offsetPoint);
int count = 0;
......@@ -258,7 +258,7 @@ KeyframeImport::KeyframeImport(const QString &animData, std::shared_ptr<AssetPar
// Destination range
l1 = new QHBoxLayout;
lab = new QLabel(i18n("Position offset"), this);
lab = new QLabel(i18n("Position offset:"), this);
l1->addWidget(lab);
l1->addWidget(&m_offsetX);
l1->addWidget(&m_offsetY);
......@@ -275,7 +275,7 @@ KeyframeImport::KeyframeImport(const QString &animData, std::shared_ptr<AssetPar
// Destination range
l1 = new QHBoxLayout;
lab = new QLabel(i18n("Destination range"), this);
lab = new QLabel(i18n("Destination range:"), this);
l1->addWidget(lab);
l1->addWidget(&m_destMin);
......
......@@ -139,18 +139,18 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
m_toolbar->addWidget(m_buttonApply);
m_toolbar->addAction(m_selectType);
QAction *seekKeyframe = new QAction(i18n("Seek to keyframe on select"), this);
QAction *seekKeyframe = new QAction(i18n("Seek to Keyframe on Select"), this);
seekKeyframe->setCheckable(true);
seekKeyframe->setChecked(KdenliveSettings::keyframeseek());
connect(seekKeyframe, &QAction::triggered, [&](bool selected) {
KdenliveSettings::setKeyframeseek(selected);
});
// copy/paste keyframes from clipboard
QAction *copy = new QAction(i18n("Copy keyframes to clipboard"), this);
QAction *copy = new QAction(i18n("Copy Keyframes to Clipboard"), this);
connect(copy, &QAction::triggered, this, &KeyframeWidget::slotCopyKeyframes);
QAction *copyValue = new QAction(i18n("Copy value at cursor position to clipboard"), this);
QAction *copyValue = new QAction(i18n("Copy Value at Cursor Position to Clipboard"), this);
connect(copyValue, &QAction::triggered, this, &KeyframeWidget::slotCopyValueAtCursorPos);
QAction *paste = new QAction(i18n("Import keyframes from clipboard"), this);
QAction *paste = new QAction(i18n("Import Keyframes from Clipboard"), this);
connect(paste, &QAction::triggered, this, &KeyframeWidget::slotImportKeyframes);
if (m_model->data(index, AssetParameterModel::TypeRole).value<ParamType>() == ParamType::ColorWheel) {
// TODO color wheel doesn't support keyframe import/export yet
......@@ -159,11 +159,11 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
paste->setVisible(false);
}
// Remove keyframes
QAction *removeNext = new QAction(i18n("Remove all keyframes after cursor"), this);
QAction *removeNext = new QAction(i18n("Remove all Keyframes After Cursor"), this);
connect(removeNext, &QAction::triggered, this, &KeyframeWidget::slotRemoveNextKeyframes);
// Default kf interpolation
KSelectAction *kfType = new KSelectAction(i18n("Default keyframe type"), this);
KSelectAction *kfType = new KSelectAction(i18n("Default Keyframe Type"), this);
QAction *discrete2 = new QAction(QIcon::fromTheme(QStringLiteral("discrete")), i18n("Discrete"), this);
discrete2->setData(int(mlt_keyframe_discrete));
discrete2->setCheckable(true);
......
......@@ -29,7 +29,7 @@ KeywordParamWidget::KeywordParamWidget(std::shared_ptr<AssetParameterModel> mode
comboboxwidget->setItemData(i, keywordVal);
i++;
}
comboboxwidget->insertItem(0, i18n("<select a keyword>"));
comboboxwidget->insertItem(0, i18n("<Select a Keyword>"));
comboboxwidget->setCurrentIndex(0);
// set check state
slotRefresh();
......
......@@ -296,7 +296,7 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackName)
} else {
m_collapse = new QToolButton(this);
m_collapse->setIcon(KdenliveSettings::mixerCollapse() ? QIcon::fromTheme("arrow-left") : QIcon::fromTheme("arrow-right"));
m_collapse->setToolTip(i18n("Show Channels"));
m_collapse->setToolTip(i18n("Show channels"));
m_collapse->setCheckable(true);
m_collapse->setAutoRaise(true);
m_collapse->setChecked(KdenliveSettings::mixerCollapse() );
......
......@@ -1016,7 +1016,7 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
m_searchLine->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
m_searchLine->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
// m_searchLine->setClearButtonEnabled(true);
m_searchLine->setPlaceholderText(i18n("Search..."));
m_searchLine->setPlaceholderText(i18n("Search"));
m_searchLine->setFocusPolicy(Qt::ClickFocus);
connect(m_searchLine, &QLineEdit::textChanged, this, [this] (const QString &str) {
m_proxyModel->slotSetSearchString(str);
......@@ -1157,7 +1157,7 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
connect(disableEffects, &QAction::triggered, this, [this](bool disable) { this->setBinEffectsEnabled(!disable); });
pCore->window()->actionCollection()->addAction(QStringLiteral("disable_bin_effects"), disableEffects);
QAction *hoverPreview = new QAction(i18n("Show video preview in thumbnails"), this);
QAction *hoverPreview = new QAction(i18n("Show Video Preview in Thumbnails"), this);
hoverPreview->setCheckable(true);
hoverPreview->setChecked(KdenliveSettings::hoverPreview());
connect(hoverPreview, &QAction::triggered, [] (bool checked) {
......@@ -1177,15 +1177,15 @@ Bin::Bin(std::shared_ptr<ProjectItemModel> model, QWidget *parent, bool isMainBi
settingsMenu->addMenu(sort);
// Column show / hide actions
m_showDate = new QAction(i18n("Show date"), this);
m_showDate = new QAction(i18n("Show Date"), this);
m_showDate->setCheckable(true);
m_showDate->setData(1);
connect(m_showDate, &QAction::triggered, this, &Bin::slotShowColumn);
m_showDesc = new QAction(i18n("Show description"), this);
m_showDesc = new QAction(i18n("Show Description"), this);
m_showDesc->setCheckable(true);
m_showDesc->setData(2);
connect(m_showDesc, &QAction::triggered, this, &Bin::slotShowColumn);
m_showRating = new QAction(i18n("Show rating"), this);
m_showRating = new QAction(i18n("Show Rating"), this);
m_showRating->setCheckable(true);
m_showRating->setData(7);
connect(m_showRating, &QAction::triggered, this, &Bin::slotShowColumn);
......@@ -1728,7 +1728,7 @@ void Bin::slotReplaceClip()
}
if (currentItem) {
emit openClip(std::shared_ptr<ProjectClip>());
QString fileName = QFileDialog::getOpenFileName(this, i18n("Open replacement file"),
QString fileName = QFileDialog::getOpenFileName(this, i18nc("@title:window", "Open Replacement File"),
QFileInfo(currentItem->url()).absolutePath(),
ClipCreationDialog::getExtensionsFilter());
if (!fileName.isEmpty()) {
......@@ -1930,7 +1930,7 @@ void Bin::rebuildFilters(const QMap <QString, QString> &tags)
{
m_filterMenu->clear();
// Add tag filters
QAction *clearFilter = new QAction(QIcon::fromTheme(QStringLiteral("edit-clear")), i18n("Clear filters"), this);
QAction *clearFilter = new QAction(QIcon::fromTheme(QStringLiteral("edit-clear")), i18n("Clear Filters"), this);
m_filterMenu->addAction(clearFilter);
int tagsCount = tags.size();
for (int i = 1; i <= tagsCount; i++) {
......@@ -1945,21 +1945,21 @@ void Bin::rebuildFilters(const QMap <QString, QString> &tags)
// Add rating filters
m_filterMenu->addSeparator();
for (int i = 1; i < 6; ++i) {
auto *rateFilter = new QAction(QIcon::fromTheme(QStringLiteral("favorite")), i18np("%1 star", "%1 stars", i), &m_filterRateGroup);
auto *rateFilter = new QAction(QIcon::fromTheme(QStringLiteral("favorite")), i18np("%1 Star", "%1 Stars", i), &m_filterRateGroup);
rateFilter->setData(QString(".%1").arg(2 * i));
rateFilter->setCheckable(true);
m_filterMenu->addAction(rateFilter);
}
// Add unused filter
m_filterMenu->addSeparator();
auto *unusedFilter = new QAction(i18n("Unused clips"), this);
auto *unusedFilter = new QAction(i18n("Unused Clips"), this);
unusedFilter->setData(QStringLiteral("unused"));
unusedFilter->setCheckable(true);
m_filterMenu->addAction(unusedFilter);
// Add type filters
m_filterMenu->addSeparator();
auto *typeMenu = new QMenu(i18n("Filter by type"), m_filterMenu);
auto *typeMenu = new QMenu(i18n("Filter by Type"), m_filterMenu);
m_filterMenu->addMenu(typeMenu);
m_filterMenu->addSeparator();
auto *typeFilter = new QAction(QIcon::fromTheme(QStringLiteral("video-x-generic")), i18n("AV Clip"), &m_filterTypeGroup);
......@@ -3070,14 +3070,14 @@ void Bin::setupMenu()
auto *addClipMenu = new QMenu(this);
m_addClip =
addAction(QStringLiteral("add_clip"), i18n("Add Clip or Folder"), QIcon::fromTheme(QStringLiteral("kdenlive-add-clip")), QStringLiteral("addclip"));
addAction(QStringLiteral("add_clip"), i18n("Add Clip or Folder"), QIcon::fromTheme(QStringLiteral("kdenlive-add-clip")), QStringLiteral("addclip"));
addClipMenu->addAction(m_addClip);
connect(m_addClip, &QAction::triggered, this, &Bin::slotAddClip);
setupAddClipAction(addClipMenu, ClipType::Color, QStringLiteral("add_color_clip"), i18n("Add Color Clip"), QIcon::fromTheme(QStringLiteral("kdenlive-add-color-clip")));
setupAddClipAction(addClipMenu, ClipType::SlideShow, QStringLiteral("add_slide_clip"), i18n("Add Image Sequence"), QIcon::fromTheme(QStringLiteral("kdenlive-add-slide-clip")));
setupAddClipAction(addClipMenu, ClipType::Text, QStringLiteral("add_text_clip"), i18n("Add Title Clip"), QIcon::fromTheme(QStringLiteral("kdenlive-add-text-clip")));
setupAddClipAction(addClipMenu, ClipType::TextTemplate, QStringLiteral("add_text_template_clip"), i18n("Add Template Title"), QIcon::fromTheme(QStringLiteral("kdenlive-add-text-clip")));
setupAddClipAction(addClipMenu, ClipType::Color, QStringLiteral("add_color_clip"), i18n("Add Color Clip"), QIcon::fromTheme(QStringLiteral("kdenlive-add-color-clip")));
setupAddClipAction(addClipMenu, ClipType::SlideShow, QStringLiteral("add_slide_clip"), i18n("Add Image Sequence"), QIcon::fromTheme(QStringLiteral("kdenlive-add-slide-clip")));
setupAddClipAction(addClipMenu, ClipType::Text, QStringLiteral("add_text_clip"), i18n("Add Title Clip"), QIcon::fromTheme(QStringLiteral("kdenlive-add-text-clip")));
setupAddClipAction(addClipMenu, ClipType::TextTemplate, QStringLiteral("add_text_template_clip"), i18n("Add Template Title"), QIcon::fromTheme(QStringLiteral("kdenlive-add-text-clip")));
QAction *downloadResourceAction =
addAction(QStringLiteral("download_resource"), i18n("Online Resources"), QIcon::fromTheme(QStringLiteral("edit-download")));
......@@ -3085,7 +3085,7 @@ void Bin::setupMenu()
connect(downloadResourceAction, &QAction::triggered, pCore->window(), &MainWindow::slotDownloadResources);
m_locateAction =
addAction(QStringLiteral("locate_clip"), i18n("Locate Clip..."), QIcon::fromTheme(QStringLiteral("find-location")));
addAction(QStringLiteral("locate_clip"), i18n("Locate Clip"), QIcon::fromTheme(QStringLiteral("find-location")));
m_locateAction->setData("locate_clip");
m_locateAction->setEnabled(false);
connect(m_locateAction, &QAction::triggered, this, &Bin::slotLocateClip);
......@@ -3097,7 +3097,7 @@ void Bin::setupMenu()
connect(m_reloadAction, &QAction::triggered, this, &Bin::slotReloadClip);
m_replaceAction =
addAction(QStringLiteral("replace_clip"), i18n("Replace Clip"), QIcon::fromTheme(QStringLiteral("edit-find-replace")));
addAction(QStringLiteral("replace_clip"), i18n("Replace Clip"), QIcon::fromTheme(QStringLiteral("edit-find-replace")));
m_replaceAction->setData("replace_clip");
m_replaceAction->setEnabled(false);
connect(m_replaceAction, &QAction::triggered, this, &Bin::slotReplaceClip);
......@@ -4648,7 +4648,7 @@ void Bin::slotBack()
} else {
m_itemView->setRootIndex(QModelIndex());
m_upAction->setEnabled(false);
parentWidget()->setWindowTitle(i18n("Project Bin"));
parentWidget()->setWindowTitle(i18nc("@title:window", "Project Bin"));
}
}
......
......@@ -53,7 +53,7 @@ Generators::Generators(const QString &path, QWidget *parent)
m_pixmap = QPixmap::fromImage(KThumb::getFrame(m_producer, 0, pCore->getCurrentProfile()->width(), pCore->getCurrentProfile()->height()));
m_preview->setPixmap(m_pixmap.scaledToWidth(m_preview->width()));
auto *hlay = new QHBoxLayout;
hlay->addWidget(new QLabel(i18n("Duration")));
hlay->addWidget(new QLabel(i18n("Duration:")));
m_timePos = new TimecodeDisplay(pCore->timecode(), this);
if (base.hasAttribute(QStringLiteral("updateonduration"))) {
connect(m_timePos, &TimecodeDisplay::timeCodeEditingFinished, this, &Generators::updateDuration);
......@@ -160,7 +160,7 @@ QUrl Generators::getSavedClip(QString clipFolder)
}
QFileDialog fd(this);
fd.setDirectory(clipFolder);
fd.setNameFilter(i18n("MLT playlist (*.mlt)"));
fd.setNameFilter(i18n("MLT Playlist (*.mlt)"));
fd.setAcceptMode(QFileDialog::AcceptSave);
fd.setFileMode(QFileDialog::AnyFile);
fd.setDefaultSuffix(QStringLiteral("mlt"));
......
......@@ -638,7 +638,7 @@ bool MarkerListModel::editMarkerGui(const GenTime &pos, QWidget *parent, bool cr
}
QScopedPointer<MarkerDialog> dialog(
new MarkerDialog(clip, marker, pCore->bin()->projectTimecode(), m_guide ? i18n("Edit guide") : i18n("Edit marker"), parent));
new MarkerDialog(clip, marker, pCore->bin()->projectTimecode(), m_guide ? i18n("Edit Guide") : i18n("Edit Marker"), parent));
if (dialog->exec() == QDialog::Accepted) {
marker = dialog->newMarker();
......
......@@ -1014,7 +1014,7 @@ void ProjectItemModel::loadBinPlaylist(Mlt::Tractor *documentTractor, Mlt::Tract
if (playlist.is_valid() && playlist.type() == mlt_service_playlist_type) {
if (progressDialog == nullptr && playlist.count() > 0) {
// Display message on splash screen
emit pCore->loadingMessageUpdated(i18n("Loading project clips..."));
emit pCore->loadingMessageUpdated(i18n("Loading project clips"));
}
// Load folders
Mlt::Properties folderProperties;
......
......@@ -201,7 +201,7 @@ void Core::initGUI(bool inSandbox, const QString &MltPath, const QUrl &Url, cons
// ask the user
bool ok;
QString item = QInputDialog::getItem(m_mainWindow, i18n("Select Default Profile"), i18n("Profile:"), all_descriptions, 0, false, &ok);
QString item = QInputDialog::getItem(m_mainWindow, i18nc("@title:window", "Select Default Profile"), i18n("Profile:"), all_descriptions, 0, false, &ok);
if (ok) {
ok = false;
for (const auto &profile : qAsConst(all_profiles)) {
......@@ -226,7 +226,7 @@ void Core::initGUI(bool inSandbox, const QString &MltPath, const QUrl &Url, cons
ClipController::mediaUnavailable->set("length", 99999999);
if (!Url.isEmpty()) {
emit loadingMessageUpdated(i18n("Loading project..."));
emit loadingMessageUpdated(i18n("Loading project"));
}
projectManager()->init(Url, clipsToLoad);
if (qApp->isSessionRestored()) {
......
......@@ -118,7 +118,7 @@ void ClipCreationDialog::createColorClip(KdenliveDoc *doc, const QString &parent
QScopedPointer<QDialog> dia(new QDialog(qApp->activeWindow()));
Ui::ColorClip_UI dia_ui;
dia_ui.setupUi(dia.data());
dia->setWindowTitle(i18n("Color Clip"));
dia->setWindowTitle(i18nc("@title:window", "Color Clip"));
dia_ui.clip_name->setText(i18n("Color Clip"));
QScopedPointer<TimecodeDisplay> t(new TimecodeDisplay(doc->timecode(), dia.get()));
......@@ -144,7 +144,7 @@ void ClipCreationDialog::createQTextClip(KdenliveDoc *doc, const QString &parent
QScopedPointer<QDialog> dia(new QDialog(bin));
Ui::QTextClip_UI dia_ui;
dia_ui.setupUi(dia.data());
dia->setWindowTitle(i18n("Text Clip"));
dia->setWindowTitle(i18nc("@title:window", "Text Clip"));
dia_ui.fgColor->setAlphaChannelEnabled(true);
dia_ui.lineColor->setAlphaChannelEnabled(true);
dia_ui.bgColor->setAlphaChannelEnabled(true);
......
......@@ -43,12 +43,12 @@ EncodingProfilesDialog::EncodingProfilesDialog(EncodingProfilesManager::ProfileT
, m_configGroup(nullptr)
{
setupUi(this);
setWindowTitle(i18n("Manage Encoding Profiles"));
profile_type->addItem(i18n("Proxy clips"), EncodingProfilesManager::ProxyClips);
profile_type->addItem(i18n("Timeline preview"), EncodingProfilesManager::TimelinePreview);
profile_type->addItem(i18n("Video4Linux capture"), EncodingProfilesManager::V4LCapture);
profile_type->addItem(i18n("Screen capture"), EncodingProfilesManager::ScreenCapture);
profile_type->addItem(i18n("Decklink capture"), EncodingProfilesManager::DecklinkCapture);
setWindowTitle(i18nc("@title:window", "Manage Encoding Profiles"));
profile_type->addItem(i18n("Proxy Clips"), EncodingProfilesManager::ProxyClips);
profile_type->addItem(i18n("Timeline Preview"), EncodingProfilesManager::TimelinePreview);
profile_type->addItem(i18n("Video4Linux Capture"), EncodingProfilesManager::V4LCapture);
profile_type->addItem(i18n("Screen Capture"), EncodingProfilesManager::ScreenCapture);
profile_type->addItem(i18n("Decklink Capture"), EncodingProfilesManager::DecklinkCapture);
button_add->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
button_edit->setIcon(QIcon::fromTheme(QStringLiteral("document-edit")));
......
......@@ -263,7 +263,7 @@ void KdenliveSettingsDialog::initProjectPage()
m_pw = new ProfileWidget(this);
vbox->addWidget(m_pw);
m_configProject.profile_box->setLayout(vbox);
m_configProject.profile_box->setTitle(i18n("Select the default profile (preset)"));
m_configProject.profile_box->setTitle(i18n("Select the Default Profile (preset)"));
// Select profile
m_pw->loadProfile(KdenliveSettings::default_profile().isEmpty() ? pCore->getCurrentProfile()->path() : KdenliveSettings::default_profile());
connect(m_pw, &ProfileWidget::profileChanged, this, &KdenliveSettingsDialog::slotDialogModified);
......@@ -664,8 +664,8 @@ void KdenliveSettingsDialog::initDevices()
m_configSdl.kcfg_audio_driver->addItem(i18n("PulseAudio"), "pulseaudio");
m_configSdl.kcfg_audio_driver->addItem(i18n("OSS"), "dsp");
//m_configSdl.kcfg_audio_driver->addItem(i18n("OSS with DMA access"), "dma");
m_configSdl.kcfg_audio_driver->addItem(i18n("Esound daemon"), "esd");
m_configSdl.kcfg_audio_driver->addItem(i18n("ARTS daemon"), "artsc");
m_configSdl.kcfg_audio_driver->addItem(i18n("Esound Daemon"), "esd");
m_configSdl.kcfg_audio_driver->addItem(i18n("ARTS Daemon"), "artsc");
#endif
if (!KdenliveSettings::audiodrivername().isEmpty())
......@@ -1273,7 +1273,7 @@ void KdenliveSettingsDialog::saveTranscodeProfiles()
void KdenliveSettingsDialog::slotAddTranscode()
{
bool ok;
QString presetName = QInputDialog::getText(this, i18n("Enter preset name"), i18n("Enter the name of this preset"), QLineEdit::Normal, QString(), &ok);
QString presetName = QInputDialog::getText(this, i18nc("@title:window", "Enter Preset Name"), i18n("Enter the name of this preset:"), QLineEdit::Normal, QString(), &ok);
if (!ok) return;
if (!m_configTranscode.profiles_list->findItems(presetName, Qt::MatchExactly).isEmpty()) {
KMessageBox::sorry(this, i18n("A profile with that name already exists"));
......@@ -1683,7 +1683,7 @@ void KdenliveSettingsDialog::getDictionary(const QUrl &sourceUrl)
}
if (!url.isLocalFile()) {
KIO::FileCopyJob *copyjob = KIO::file_copy(url, QUrl::fromLocalFile(QDir::temp().absoluteFilePath(url.fileName())));
doShowSpeechMessage(i18n("Downloading model..."), KMessageWidget::Information);
doShowSpeechMessage(i18n("Downloading model"), KMessageWidget::Information);
connect(copyjob, &KIO::FileCopyJob::result, this, &KdenliveSettingsDialog::downloadModelFinished);
} else {
processArchive(url.toLocalFile());
......@@ -1765,7 +1765,7 @@ void KdenliveSettingsDialog::processArchive(const QString &archiveFile)
dir = QDir(modelDirectory);
}
if (archive->open(QIODevice::ReadOnly)) {
doShowSpeechMessage(i18n("Extracting archive..."), KMessageWidget::Information);
doShowSpeechMessage(i18n("Extracting archive"), KMessageWidget::Information);
const KArchiveDirectory *archiveDir = archive->directory();
if (!archiveDir->copyTo(dir.absolutePath())) {
qDebug()<<"=== Error extracting archive!!";
......
......@@ -28,8 +28,8 @@ ProxyTest::ProxyTest(QWidget *parent)
{
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
setupUi(this);
setWindowTitle(i18n("Compare proxy profile"));
buttonBox->button(QDialogButtonBox::Apply)->setText(i18n("Test Proxy profiles"));
setWindowTitle(i18nc("@title:window", "Compare Proxy Profile"));
buttonBox->button(QDialogButtonBox::Apply)->setText(i18n("Test Proxy Profiles"));
infoWidget->hide();
paramBox->setVisible(false);
m_failedProfiles = new MyTreeWidgetItem (resultList, {i18n("Failing profiles")});
......
......@@ -106,7 +106,7 @@ void RenderJobItem::setStatus(int status)
switch (status) {
case WAITINGJOB:
setIcon(0, QIcon::fromTheme(QStringLiteral("media-playback-pause")));
setData(1, Qt::UserRole, i18n("Waiting..."));
setData(1, Qt::UserRole, i18n("Waiting"));
break;
case FINISHEDJOB:
setData(1, Qt::UserRole, i18n("Rendering finished"));
......@@ -151,7 +151,7 @@ RenderWidget::RenderWidget(bool enableProxy, QWidget *parent)
int size = style()->pixelMetric(QStyle::PM_SmallIconSize);
QSize iconSize(size, size);
setWindowTitle(i18n("Rendering"));
setWindowTitle(i18nc("@title:window", "Rendering"));
m_view.buttonDelete->setIconSize(iconSize);
m_view.buttonEdit->setIconSize(iconSize);
m_view.buttonSave->setIconSize(iconSize);
......@@ -163,7 +163,7 @@ RenderWidget::RenderWidget(bool enableProxy, QWidget *parent)
m_view.buttonDelete->setEnabled(false);
m_view.buttonEdit->setIcon(QIcon::fromTheme(QStringLiteral("document-edit")));
m_view.buttonEdit->setToolTip(i18n("Edit profile"));
m_view.buttonEdit->setToolTip(i18n("Edit profile"));
m_view.buttonEdit->setEnabled(false);
m_view.buttonSave->setIcon(QIcon::fromTheme(QStringLiteral("document-new")));
......@@ -175,7 +175,7 @@ RenderWidget::RenderWidget(bool enableProxy, QWidget *parent)
m_view.buttonFavorite->setToolTip(i18n("Copy profile to favorites"));
m_view.buttonDownload->setIcon(QIcon::fromTheme(QStringLiteral("edit-download")));
m_view.buttonDownload->setToolTip(i18n("Download New Render Profiles..."));
m_view.buttonDownload->setToolTip(i18n("Download New Render Profiles"));
m_view.out_file->button()->setToolTip(i18n("Select output destination"));
m_view.advanced_params->setMaximumHeight(QFontMetrics(font()).lineSpacing() * 5);
......@@ -203,8 +203,8 @@ RenderWidget::RenderWidget(bool enableProxy, QWidget *parent)
m_view.error_box->setVisible(false);
m_view.tc_type->setEnabled(false);
m_view.tc_type->addItem(i18n("Timecode"), QStringLiteral("#timecode#"));
m_view.tc_type->addItem(i18n("Timecode non drop frame"), QStringLiteral("#smtpe_ndf#"));
m_view.tc_type->addItem(i18n("Frame number"), QStringLiteral("#frame#"));
m_view.tc_type->addItem(i18n("Timecode Non Drop Frame"), QStringLiteral("#smtpe_ndf#"));
m_view.tc_type->addItem(i18n("Frame Number"), QStringLiteral("#frame#"));
m_view.checkTwoPass->setEnabled(false);
m_view.proxy_render->setHidden(!enableProxy);
connect(m_view.proxy_render, &QCheckBox::toggled, this, &RenderWidget::slotProxyWarn);
......@@ -693,7 +693,7 @@ bool RenderWidget::saveProfile(QDomElement newprofile)
// Check if a profile with that same name already exists
bool ok;
while (existingProfileNames.contains(newProfileName)) {
QString updatedProfileName = QInputDialog::getText(this, i18n("Profile already exists"),
QString updatedProfileName = QInputDialog::getText(this, i18nc("@title:window", "Profile Already Exists"),
i18n("This profile name already exists. Change the name if you do not want to overwrite it."),
QLineEdit::Normal, newProfileName, &ok);
if (!ok) {
......@@ -845,7 +845,7 @@ void RenderWidget::slotEditProfile()
ui.speeds_list->setText(speeds.join('\n'));
}
d->setWindowTitle(i18n("Edit Profile"));
d->setWindowTitle(i18nc("@title:window", "Edit Profile"));
if (d->exec() == QDialog::Accepted) {
slotDeleteProfile(true);
......@@ -886,7 +886,7 @@ void RenderWidget::slotEditProfile()
if (profileName == newProfileName) {
// a profile with that same name already exists
bool ok;
newProfileName = QInputDialog::getText(this, i18n("Profile already exists"),
newProfileName = QInputDialog::getText(this, i18nc("@title:window", "Profile Already Exists"),
i18n("This profile name already exists. Change the name if you do not want to overwrite it."),
QLineEdit::Normal, newProfileName, &ok);
if (!ok) {
......@@ -1164,7 +1164,7 @@ void RenderWidget::prepareRendering(bool delayedRendering, const QString &chapte
}
}
renderName = renderName.section(QLatin1Char('.'), 0, -2);
renderName = QInputDialog::getText(this, i18n("Delayed rendering"), i18n("Select a name for this rendering."), QLineEdit::Normal, renderName, &ok);
renderName = QInputDialog::getText(this, i18nc("@title:window", "Delayed Rendering"), i18n("Select a name for this rendering."), QLineEdit::Normal, renderName, &ok);
if (!ok) {
return;
}
......@@ -1612,7 +1612,7 @@ void RenderWidget::generateRenderFiles(QDomDocument doc, const QString &playlist
renderItem = static_cast<RenderJobItem *>(existing.at(0));
if (renderItem->status() == RUNNINGJOB || renderItem->status() == WAITINGJOB || renderItem->status() == STARTINGJOB) {
KMessageBox::information(
this, i18n("There is already a job writing file:<br /><b>%1</b><br />Abort the job if you want to overwrite it...", renderedFile),
this, i18n("There is already a job writing file:<br /><b>%1</b><br />Abort the job if you want to overwrite it", renderedFile),
i18n("Already running"));
return;
}
......@@ -1623,7 +1623,7 @@ void RenderWidget::generateRenderFiles(QDomDocument doc, const QString &playlist
renderItem->setData(1, ProgressRole, 0);
renderItem->setStatus(WAITINGJOB);
renderItem->setIcon(0, QIcon::fromTheme(QStringLiteral("media-playback-pause")));
renderItem->setData(1, Qt::UserRole, i18n("Waiting..."));
renderItem->setData(1, Qt::UserRole, i18n("Waiting"));
QStringList argsJob = {KdenliveSettings::rendererpath(), playlistPath, renderedFile,
QStringLiteral("-pid:%1").arg(QCoreApplication::applicationPid()),QStringLiteral("-out"),QString::number(out)};
renderItem->setData(1, ParametersRole, argsJob);
......@@ -2743,7 +2743,7 @@ void RenderWidget::slotStartScript()
renderItem = static_cast<RenderJobItem *>(existing.at(0));
if (renderItem->status() == RUNNINGJOB || renderItem->status() == WAITINGJOB || renderItem->status() == STARTINGJOB) {
KMessageBox::information(
this, i18n("There is already a job writing file:<br /><b>%1</b><br />Abort the job if you want to overwrite it...", destination),
this, i18n("There is already a job writing file:<br /><b>%1</b><br />Abort the job if you want to overwrite it", destination),
i18n("Already running"));
return;
}
......@@ -2756,7 +2756,7 @@ void RenderWidget::slotStartScript()
renderItem->setData(1, ProgressRole, 0);
renderItem->setStatus(WAITINGJOB);
renderItem->setIcon(0, QIcon::fromTheme(QStringLiteral("media-playback-pause")));
renderItem->setData(1, Qt::UserRole, i18n("Waiting..."));
renderItem->setData(1, Qt::UserRole, i18n("Waiting"));
QDateTime t = QDateTime::currentDateTime();
renderItem->setData(1, StartTimeRole, t);
renderItem->setData(1, LastTimeRole, t);
......
......@@ -67,7 +67,7 @@ Wizard::Wizard(bool autoClose, QWidget *parent)
, m_systemCheckIsOk(false)
, m_brokenModule(false)
{
setWindowTitle(i18n("Welcome to Kdenlive"));
setWindowTitle(i18nc("@title:window", "Welcome to Kdenlive"));
int logoHeight = int(fontMetrics().height() * 2.5);
setWizardStyle(QWizard::ModernStyle);
setOption(QWizard::NoBackButtonOnLastPage, true);
......@@ -889,7 +889,7 @@ void Wizard::slotSaveCaptureFormat()
return;
}
std::unique_ptr<ProfileParam> profile(new ProfileParam(pCore->getCurrentProfile().get()));
profile->m_description = QStringLiteral("Video4Linux capture");
profile->m_description = QStringLiteral("Video4Linux Capture");
profile->m_colorspace = 601;
profile->m_width = format.at(1).toInt();
profile->m_height = format.at(2).toInt();
......
......@@ -859,7 +859,7 @@ void DocumentChecker::slotCheckClips()
m_abortSearch = false;
m_checkRunning = true;
QString clipFolder = m_url.adjusted(QUrl::RemoveFilename).toLocalFile();
const QString newpath = QFileDialog::getExistingDirectory(qApp->activeWindow(), i18n("Clips folder"), clipFolder);
const QString newpath = QFileDialog::getExistingDirectory(qApp->activeWindow(), i18nc("@title:window", "Clips Folder"), clipFolder);
if (newpath.isEmpty()) {
m_checkRunning = false;
return;
......
......@@ -842,7 +842,7 @@ void KdenliveDoc::slotCreateTextTemplateClip(const QString &group, const QString
// TODO refac: this seem to be a duplicate of ClipCreationDialog::createTitleTemplateClip. See if we can merge
QString titlesFolder = QDir::cleanPath(m_projectFolder + QStringLiteral("/titles/"));
if (path.isEmpty()) {
QPointer<QFileDialog> d = new QFileDialog(QApplication::activeWindow(), i18n("Enter Template Path"), titlesFolder);
QPointer<QFileDialog> d = new QFileDialog(QApplication::activeWindow(), i18nc("@title:window", "Enter Template Path"), titlesFolder);
d->setMimeTypeFilters(QStringList() << QStringLiteral("application/x-kdenlivetitle"));
d->setFileMode(QFileDialog::ExistingFile);
if (d->exec() == QDialog::Accepted && !d->selectedUrls().isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment