mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Use "(qtundo-format)" instead of "@action:undo" in context strings
Fixes commit db51e00325
.
See http://lists.kde.org/?l=kde-i18n-doc&m=130520794123988&w=2
This commit is contained in:
parent
db51e00325
commit
907ca6c2cb
3 changed files with 18 additions and 18 deletions
|
@ -339,7 +339,7 @@ void KEBApp::setCancelTestsEnabled(bool enabled) {
|
|||
void ActionsImpl::slotCut() {
|
||||
KEBApp::self()->bkInfo()->commitChanges();
|
||||
slotCopy();
|
||||
DeleteManyCommand *mcmd = new DeleteManyCommand(m_model, i18nc("@action:undo", "Cut Items"), KEBApp::self()->selectedBookmarks() );
|
||||
DeleteManyCommand *mcmd = new DeleteManyCommand(m_model, i18nc("(qtundo-format)", "Cut Items"), KEBApp::self()->selectedBookmarks() );
|
||||
commandHistory()->addCommand(mcmd);
|
||||
|
||||
}
|
||||
|
@ -364,7 +364,7 @@ void ActionsImpl::slotPaste() {
|
|||
else
|
||||
addr = bk.address();
|
||||
|
||||
QUndoCommand *mcmd = CmdGen::insertMimeSource( m_model, i18nc("@action:undo", "Paste"), QApplication::clipboard()->mimeData(), addr);
|
||||
QUndoCommand *mcmd = CmdGen::insertMimeSource( m_model, i18nc("(qtundo-format)", "Paste"), QApplication::clipboard()->mimeData(), addr);
|
||||
commandHistory()->addCommand(mcmd);
|
||||
}
|
||||
|
||||
|
@ -501,7 +501,7 @@ void ActionsImpl::slotRecursiveSort() {
|
|||
KEBApp::self()->bkInfo()->commitChanges();
|
||||
KBookmark bk = KEBApp::self()->firstSelected();
|
||||
Q_ASSERT(bk.isGroup());
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(i18nc("@action:undo", "Recursive Sort"));
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(i18nc("(qtundo-format)", "Recursive Sort"));
|
||||
KBookmarkGroupList lister(GlobalBookmarkManager::self()->mgr());
|
||||
QList<KBookmark> bookmarks = lister.getList(bk.toGroup());
|
||||
bookmarks << bk.toGroup();
|
||||
|
@ -515,7 +515,7 @@ void ActionsImpl::slotSort() {
|
|||
KEBApp::self()->bkInfo()->commitChanges();
|
||||
KBookmark bk = KEBApp::self()->firstSelected();
|
||||
Q_ASSERT(bk.isGroup());
|
||||
SortCommand *cmd = new SortCommand(m_model, i18nc("@action:undo", "Sort Alphabetically"), bk.address());
|
||||
SortCommand *cmd = new SortCommand(m_model, i18nc("(qtundo-format)", "Sort Alphabetically"), bk.address());
|
||||
commandHistory()->addCommand(cmd);
|
||||
}
|
||||
|
||||
|
@ -523,7 +523,7 @@ void ActionsImpl::slotSort() {
|
|||
|
||||
void ActionsImpl::slotDelete() {
|
||||
KEBApp::self()->bkInfo()->commitChanges();
|
||||
DeleteManyCommand *mcmd = new DeleteManyCommand(m_model, i18nc("@action:undo", "Delete Items"), KEBApp::self()->selectedBookmarks());
|
||||
DeleteManyCommand *mcmd = new DeleteManyCommand(m_model, i18nc("(qtundo-format)", "Delete Items"), KEBApp::self()->selectedBookmarks());
|
||||
commandHistory()->addCommand(mcmd);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ ImportCommand::ImportCommand(KBookmarkModel* model)
|
|||
void ImportCommand::setVisibleName(const QString& visibleName)
|
||||
{
|
||||
m_visibleName = visibleName;
|
||||
setText(i18nc("@action:undo", "Import %1 Bookmarks", visibleName));
|
||||
setText(i18nc("(qtundo-format)", "Import %1 Bookmarks", visibleName));
|
||||
}
|
||||
|
||||
QString ImportCommand::folder() const {
|
||||
|
|
|
@ -65,7 +65,7 @@ CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address, QUnd
|
|||
: QUndoCommand(parent), m_model(model), m_to(address),
|
||||
m_group(false), m_separator(true), m_originalBookmark(QDomElement())
|
||||
{
|
||||
setText(i18nc("@action:undo", "Insert Separator"));
|
||||
setText(i18nc("(qtundo-format)", "Insert Separator"));
|
||||
}
|
||||
|
||||
CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
||||
|
@ -74,7 +74,7 @@ CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
|||
: QUndoCommand(parent), m_model(model), m_to(address), m_text(text), m_iconPath(iconPath), m_url(url),
|
||||
m_group(false), m_separator(false), m_originalBookmark(QDomElement())
|
||||
{
|
||||
setText(i18nc("@action:undo", "Create Bookmark"));
|
||||
setText(i18nc("(qtundo-format)", "Create Bookmark"));
|
||||
}
|
||||
|
||||
CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
||||
|
@ -83,7 +83,7 @@ CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
|||
: QUndoCommand(parent), m_model(model), m_to(address), m_text(text), m_iconPath(iconPath),
|
||||
m_group(true), m_separator(false), m_open(open), m_originalBookmark(QDomElement())
|
||||
{
|
||||
setText(i18nc("@action:undo", "Create Folder"));
|
||||
setText(i18nc("(qtundo-format)", "Create Folder"));
|
||||
}
|
||||
|
||||
CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
||||
|
@ -92,7 +92,7 @@ CreateCommand::CreateCommand(KBookmarkModel* model, const QString &address,
|
|||
m_open(false), m_originalBookmark(original),
|
||||
m_originalBookmarkDocRef(m_originalBookmark.internalElement().ownerDocument())
|
||||
{
|
||||
setText(i18nc("@action:undo", "Copy %1", name));
|
||||
setText(i18nc("(qtundo-format)", "Copy %1", name));
|
||||
}
|
||||
|
||||
void CreateCommand::redo()
|
||||
|
@ -180,13 +180,13 @@ EditCommand::EditCommand(KBookmarkModel* model, const QString & address, int col
|
|||
|
||||
// -2 is "toolbar" attribute change, but that's only used internally.
|
||||
if (mCol == -1)
|
||||
setText(i18nc("@action:undo", "Icon Change"));
|
||||
setText(i18nc("(qtundo-format)", "Icon Change"));
|
||||
else if (mCol == 0)
|
||||
setText(i18nc("@action:undo", "Title Change"));
|
||||
setText(i18nc("(qtundo-format)", "Title Change"));
|
||||
else if (mCol == 1)
|
||||
setText(i18nc("@action:undo", "URL Change"));
|
||||
setText(i18nc("(qtundo-format)", "URL Change"));
|
||||
else if (mCol == 2)
|
||||
setText(i18nc("@action:undo", "Comment Change"));
|
||||
setText(i18nc("(qtundo-format)", "Comment Change"));
|
||||
}
|
||||
|
||||
void EditCommand::redo()
|
||||
|
@ -361,7 +361,7 @@ KEBMacroCommand* DeleteCommand::deleteAll(KBookmarkModel* model, const KBookmark
|
|||
MoveCommand::MoveCommand(KBookmarkModel* model, const QString &from, const QString &to, const QString &name, QUndoCommand* parent)
|
||||
: QUndoCommand(parent), m_model(model), m_from(from), m_to(to), m_cc(0), m_dc(0)
|
||||
{
|
||||
setText(i18nc("@action:undo", "Move %1", name));
|
||||
setText(i18nc("(qtundo-format)", "Move %1", name));
|
||||
}
|
||||
|
||||
void MoveCommand::redo()
|
||||
|
@ -478,7 +478,7 @@ QString SortCommand::affectedBookmarks() const
|
|||
|
||||
KEBMacroCommand* CmdGen::setAsToolbar(KBookmarkModel* model, const KBookmark &bk)
|
||||
{
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(i18nc("@action:undo", "Set as Bookmark Toolbar"));
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(i18nc("(qtundo-format)", "Set as Bookmark Toolbar"));
|
||||
|
||||
KBookmarkGroup oldToolbar = model->bookmarkManager()->toolbar();
|
||||
if (!oldToolbar.isNull())
|
||||
|
@ -514,8 +514,8 @@ KEBMacroCommand* CmdGen::insertMimeSource(KBookmarkModel* model, const QString &
|
|||
//FIXME copy=true needed? what is the difference with insertMimeSource
|
||||
KEBMacroCommand* CmdGen::itemsMoved(KBookmarkModel* model, const QList<KBookmark> & items,
|
||||
const QString &newAddress, bool copy) {
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(copy ? i18nc("@action:undo", "Copy Items")
|
||||
: i18nc("@action:undo", "Move Items"));
|
||||
KEBMacroCommand *mcmd = new KEBMacroCommand(copy ? i18nc("(qtundo-format)", "Copy Items")
|
||||
: i18nc("(qtundo-format)", "Move Items"));
|
||||
|
||||
QList<KBookmark>::const_iterator it, end;
|
||||
it = items.constBegin();
|
||||
|
|
Loading…
Reference in a new issue