Fix typo loop, fix missing i18n strings

svn path=/branches/KDE4/; revision=2435
parent 32f1b86d
......@@ -2,8 +2,10 @@
EXTRACTRC=`which extractrc`
XGETTEXT="`which xgettext` --kde -ki18n --no-location -s "
podir=`pwd`/po
kdenlive_subdirs="src src/widgets `pwd`"
kdenlive_subdirs="src src/widgets renderer `pwd`"
$EXTRACTRC --tag=name --tag=description --tag=label effects/*.xml >> rc.cpp || exit 11
$EXTRACTRC `find $kdenlive_subdirs -name \*.ui` >> rc.cpp || exit 11
$EXTRACTRC `find $kdenlive_subdirs -name \*.rc` >> rc.cpp || exit 11
$XGETTEXT `find $kdenlive_subdirs -name \*.cpp -o -name \*.h` *.cpp -o $podir/kdenlive.pot
......
This diff is collapsed.
......@@ -959,7 +959,7 @@ QVariant ClipItem::itemChange(GraphicsItemChange change, const QVariant &value)
sceneShape.translate(newPos);
QList<QGraphicsItem*> subitems = scene()->items(sceneShape, Qt::IntersectsItemShape);
items.removeAll(this);
for (int j = 0; j < subitems.count(); i++) {
for (int j = 0; j < subitems.count(); j++) {
if (subitems.at(j)->type() == type()) return pos();
}
} else {
......@@ -971,7 +971,7 @@ QVariant ClipItem::itemChange(GraphicsItemChange change, const QVariant &value)
sceneShape.translate(newPos);
QList<QGraphicsItem*> subitems = scene()->items(sceneShape, Qt::IntersectsItemShape);
items.removeAll(this);
for (int j = 0; j < subitems.count(); i++) {
for (int j = 0; j < subitems.count(); j++) {
if (subitems.at(j)->type() == type()) return pos();
}
}
......
......@@ -94,7 +94,7 @@ DocClipBase *ClipManager::getClipById(const QString &clipId) {
void ClipManager::slotAddClipList(const KUrl::List urls, const QString group, const QString &groupId) {
QUndoCommand *addClips = new QUndoCommand();
addClips->setText("Add clips");
addClips->setText(i18n("Add clips"));
foreach(const KUrl file, urls) {
if (KIO::NetAccess::exists(file, KIO::NetAccess::SourceSide, NULL)) {
......
......@@ -1399,7 +1399,7 @@ void CustomTrackView::deleteSelectedClips() {
return;
}
QUndoCommand *deleteSelected = new QUndoCommand();
deleteSelected->setText("Delete selected items");
deleteSelected->setText(i18n("Delete selected items"));
for (int i = 0; i < itemList.count(); i++) {
if (itemList.at(i)->type() == AVWIDGET) {
ClipItem *item = static_cast <ClipItem *>(itemList.at(i));
......
......@@ -119,7 +119,7 @@ MainWindow::MainWindow(QWidget *parent)
m_findTimer.setSingleShot(true);
initEffects::parseEffectFiles();
initEffects::parseCustomEffectsFile();
//initEffects::parseCustomEffectsFile();
m_monitorManager = new MonitorManager();
......@@ -223,11 +223,9 @@ MainWindow::MainWindow(QWidget *parent)
}
m_customEffectsMenu = static_cast<QMenu*>(factory()->container("custom_effects_menu", this));
effects = customEffects.effectNames();
if (effects.isEmpty()) {
action = new QAction(i18n("No Custom Effects"), this);
action->setEnabled(false);
m_customEffectsMenu->addAction(action);
}
if (effects.isEmpty()) m_customEffectsMenu->setEnabled(false);
else m_customEffectsMenu->setEnabled(true);
foreach(const QString &name, effects) {
action = new QAction(name, this);
action->setData(name);
......@@ -345,11 +343,9 @@ void MainWindow::slotReloadEffects() {
m_customEffectsMenu->clear();
const QStringList effects = customEffects.effectNames();
QAction *action;
if (effects.isEmpty()) {
action = new QAction(i18n("No Custom Effects"), this);
action->setEnabled(false);
m_customEffectsMenu->addAction(action);
}
if (effects.isEmpty()) m_customEffectsMenu->setEnabled(false);
else m_customEffectsMenu->setEnabled(true);
foreach(const QString &name, effects) {
action = new QAction(name, this);
action->setData(name);
......
Markdown is supported
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