svn path=/trunk/kdenlive/; revision=4980
for (int i = 0; i < topLevelItemCount(); i++) {
topLevelItem(i)->takeChildren();
QString currentName = topLevelItem(i)->text(0);
for (int i = 0; i < topLevelItemCount(); i++) {
topLevelItem(i)->takeChildren();
QString currentName = topLevelItem(i)->text(0);
- if (currentName != i18n("Misc") && currentName != i18n("Audio") && currentName != i18n("Custom") && !folderNames.contains(currentName)) {
+ if (currentName != i18n("Misc") && currentName != i18n("Audio") && currentName != i18nc("Folder Name", "Custom") && !folderNames.contains(currentName)) {
takeTopLevelItem(i);
i--;
}
takeTopLevelItem(i);
i--;
}
insertTopLevelItem(0, audio);
}
insertTopLevelItem(0, audio);
}
- QTreeWidgetItem *custom = findFolder(i18n("Custom"));
+ QTreeWidgetItem *custom = findFolder(i18nc("Folder Name", "Custom"));
- custom = new QTreeWidgetItem((QTreeWidget*)0, QStringList(i18n("Custom")));
+ custom = new QTreeWidgetItem((QTreeWidget*)0, QStringList(i18nc("Folder Name", "Custom")));
custom->setIcon(0, folderIcon);
custom->setData(0, TypeRole, QString::number((int) EFFECT_FOLDER));
custom->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
custom->setIcon(0, folderIcon);
custom->setData(0, TypeRole, QString::number((int) EFFECT_FOLDER));
custom->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
desc.appendChild(ret.createTextNode(i18n("Applies a stationary transition between the current and next frames.")));
paramList.append(quickParameterFill(ret, i18n("Softness"), "softness", "double", "0", "0", "100", "", "", "100"));
desc.appendChild(ret.createTextNode(i18n("Applies a stationary transition between the current and next frames.")));
paramList.append(quickParameterFill(ret, i18n("Softness"), "softness", "double", "0", "0", "100", "", "", "100"));
- paramList.append(quickParameterFill(ret, i18n("Invert"), "invert", "bool", "0", "0", "1"));
+ paramList.append(quickParameterFill(ret, i18nc("@property: means that the image is inverted", "Invert"), "invert", "bool", "0", "0", "1"));
paramList.append(quickParameterFill(ret, i18n("Image File"), "resource", "list", "", "", "", imagefiles.join(","), imagenamelist.join(",")));
paramList.append(quickParameterFill(ret, i18n("Reverse Transition"), "reverse", "bool", "0", "0", "1"));
//thumbnailer.prepareThumbnailsCall(imagelist);
paramList.append(quickParameterFill(ret, i18n("Image File"), "resource", "list", "", "", "", imagefiles.join(","), imagenamelist.join(",")));
paramList.append(quickParameterFill(ret, i18n("Reverse Transition"), "reverse", "bool", "0", "0", "1"));
//thumbnailer.prepareThumbnailsCall(imagelist);
}
// Add some virtual transitions.
}
// Add some virtual transitions.
- QString slidetrans = "<ktransition tag=\"composite\" id=\"slide\"><name>" + i18n("Slide") + "</name><description>" + i18n("Slide image from one side to another.") + "</description><parameter tag=\"geometry\" type=\"wipe\" default=\"-100%,0%:100%x100%;-1=0%,0%:100%x100%\" name=\"geometry\"><name>" + i18n("Direction") + "</name> </parameter><parameter tag=\"aligned\" default=\"0\" type=\"bool\" name=\"aligned\" ><name>" + i18n("Align") + "</name></parameter><parameter tag=\"progressive\" default=\"1\" type=\"bool\" name=\"progressive\" ><name>" + i18n("Force Progressive Rendering") + "</name></parameter><parameter tag=\"deinterlace\" default=\"0\" type=\"bool\" name=\"deinterlace\" ><name>" + i18n("Force Deinterlace Overlay") + "</name></parameter><parameter tag=\"invert\" default=\"0\" type=\"bool\" name=\"invert\" ><name>" + i18n("Invert") + "</name></parameter></ktransition>";
+ QString slidetrans = "<ktransition tag=\"composite\" id=\"slide\"><name>" + i18n("Slide") + "</name><description>" + i18n("Slide image from one side to another.") + "</description><parameter tag=\"geometry\" type=\"wipe\" default=\"-100%,0%:100%x100%;-1=0%,0%:100%x100%\" name=\"geometry\"><name>" + i18n("Direction") + "</name> </parameter><parameter tag=\"aligned\" default=\"0\" type=\"bool\" name=\"aligned\" ><name>" + i18n("Align") + "</name></parameter><parameter tag=\"progressive\" default=\"1\" type=\"bool\" name=\"progressive\" ><name>" + i18n("Force Progressive Rendering") + "</name></parameter><parameter tag=\"deinterlace\" default=\"0\" type=\"bool\" name=\"deinterlace\" ><name>" + i18n("Force Deinterlace Overlay") + "</name></parameter><parameter tag=\"invert\" default=\"0\" type=\"bool\" name=\"invert\" ><name>" + i18nc("@property: means that the image is inverted", "Invert") + "</name></parameter></ktransition>";
QDomDocument ret;
ret.setContent(slidetrans);
transitions->append(ret.documentElement());
QDomDocument ret;
ret.setContent(slidetrans);
transitions->append(ret.documentElement());
QString dest = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QString customGroup = m_view.format_list->currentItem()->text();
QString dest = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QString customGroup = m_view.format_list->currentItem()->text();
- if (customGroup.isEmpty()) customGroup = i18n("Custom");
+ if (customGroup.isEmpty()) customGroup = i18nc("Group Name", "Custom");
ui.group_name->setText(customGroup);
ui.parameters->setText(m_view.advanced_params->toPlainText());
ui.group_name->setText(customGroup);
ui.parameters->setText(m_view.advanced_params->toPlainText());
if (d->exec() == QDialog::Accepted && !ui.profile_name->text().simplified().isEmpty()) {
QString newProfileName = ui.profile_name->text().simplified();
QString newGroupName = ui.group_name->text().simplified();
if (d->exec() == QDialog::Accepted && !ui.profile_name->text().simplified().isEmpty()) {
QString newProfileName = ui.profile_name->text().simplified();
QString newGroupName = ui.group_name->text().simplified();
- if (newGroupName.isEmpty()) newGroupName = i18n("Custom");
+ if (newGroupName.isEmpty()) newGroupName = i18nc("Group Name", "Custom");
QString newMetaGroupId = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QDomDocument doc;
QString newMetaGroupId = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QDomDocument doc;
QDomDocument doc;
QDomElement profileElement = doc.createElement("profile");
profileElement.setAttribute("name", currentProfile);
QDomDocument doc;
QDomElement profileElement = doc.createElement("profile");
profileElement.setAttribute("name", currentProfile);
- profileElement.setAttribute("category", i18n("Custom"));
+ profileElement.setAttribute("category", i18nc("Category Name", "Custom"));
profileElement.setAttribute("destinationid", "favorites");
profileElement.setAttribute("extension", extension);
profileElement.setAttribute("args", params);
profileElement.setAttribute("destinationid", "favorites");
profileElement.setAttribute("extension", extension);
profileElement.setAttribute("args", params);
QString dest = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QString customGroup = m_view.format_list->currentItem()->text();
QString dest = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QString customGroup = m_view.format_list->currentItem()->text();
- if (customGroup.isEmpty()) customGroup = i18n("Custom");
+ if (customGroup.isEmpty()) customGroup = i18nc("Group Name", "Custom");
ui.group_name->setText(customGroup);
ui.profile_name->setText(currentProfile);
ui.group_name->setText(customGroup);
ui.profile_name->setText(currentProfile);
QString newProfileName = ui.profile_name->text().simplified();
QString newGroupName = ui.group_name->text().simplified();
QString newProfileName = ui.profile_name->text().simplified();
QString newGroupName = ui.group_name->text().simplified();
- if (newGroupName.isEmpty()) newGroupName = i18n("Custom");
+ if (newGroupName.isEmpty()) newGroupName = i18nc("Group Name", "Custom");
QString newMetaGroupId = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QDomNodeList profilelist = doc.elementsByTagName("profile");
int i = 0;
QString newMetaGroupId = ui.destination_list->itemData(ui.destination_list->currentIndex(), Qt::UserRole).toString();
QDomNodeList profilelist = doc.elementsByTagName("profile");
int i = 0;
newdoc.appendChild(newprofiles);
QDomNodeList profilelist = doc.elementsByTagName("profile");
for (int i = 0; i < profilelist.count(); i++) {
newdoc.appendChild(newprofiles);
QDomNodeList profilelist = doc.elementsByTagName("profile");
for (int i = 0; i < profilelist.count(); i++) {
- QString category = i18n("Custom");
+ QString category = i18nc("Category Name", "Custom");
QString extension;
QDomNode parent = profilelist.at(i).parentNode();
if (!parent.isNull()) {
QString extension;
QDomNode parent = profilelist.at(i).parentNode();
if (!parent.isNull()) {
params = params.replace("aac", "libfaac");
}
params = params.replace("aac", "libfaac");
}
- QString category = profile.attribute("category", i18n("Custom"));
+ QString category = profile.attribute("category", i18nc("Category Name", "Custom"));
QString dest = profile.attribute("destinationid");
QString prof_extension = profile.attribute("extension");
if (!prof_extension.isEmpty()) extension = prof_extension;
QString dest = profile.attribute("destinationid");
QString prof_extension = profile.attribute("extension");
if (!prof_extension.isEmpty()) extension = prof_extension;
m_view.destination_list->addItem(icon, i18n(metagroupName.toUtf8().data()), metagroupId);
}
}
m_view.destination_list->addItem(icon, i18n(metagroupName.toUtf8().data()), metagroupId);
}
}
- groupName = documentElement.attribute("name", i18n("Custom"));
+ groupName = documentElement.attribute("name", i18nc("Attribute Name", "Custom"));
extension = documentElement.attribute("extension", QString());
renderer = documentElement.attribute("renderer", QString());
bool exists = false;
extension = documentElement.attribute("extension", QString());
renderer = documentElement.attribute("renderer", QString());
bool exists = false;