CResourceTableContextMenu: Mark strings as translatable where applicable
This commit is contained in:
parent
298e9b501c
commit
f386b22e07
|
@ -25,51 +25,51 @@ void CResourceTableContextMenu::InitMenu()
|
||||||
if (mpClickedEntry)
|
if (mpClickedEntry)
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
const QString kOpenInExplorerString = "Show in Explorer";
|
const QString kOpenInExplorerString = tr("Show in Explorer");
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
const QString kOpenInExplorerString = "Show in Finder";
|
const QString kOpenInExplorerString = tr("Show in Finder");
|
||||||
#else
|
#else
|
||||||
const QString kOpenInExplorerString = "Show in file manager";
|
const QString kOpenInExplorerString = tr("Show in file manager");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
addAction("Open", this, SLOT(Open()));
|
addAction(tr("Open"), this, SLOT(Open()));
|
||||||
addAction("Open in External Application", this, SLOT(OpenInExternalApp()));
|
addAction(tr("Open in External Application"), this, SLOT(OpenInExternalApp()));
|
||||||
addAction(kOpenInExplorerString, this, SLOT(OpenInExplorer()));
|
addAction(kOpenInExplorerString, this, SLOT(OpenInExplorer()));
|
||||||
addSeparator();
|
addSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mpClickedEntry || mpClickedDirectory)
|
if (mpClickedEntry || mpClickedDirectory)
|
||||||
{
|
{
|
||||||
addAction("Rename", this, SLOT(Rename()));
|
addAction(tr("Rename"), this, SLOT(Rename()));
|
||||||
|
|
||||||
if (mpModel->IsDisplayingAssetList())
|
if (mpModel->IsDisplayingAssetList())
|
||||||
{
|
{
|
||||||
addAction("Select Folder", this, SLOT(SelectFolder()));
|
addAction(tr("Select Folder"), this, SLOT(SelectFolder()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mpClickedEntry)
|
if (mpClickedEntry)
|
||||||
{
|
{
|
||||||
addAction("Show Referencers", this, SLOT(ShowReferencers()));
|
addAction(tr("Show Referencers"), this, SLOT(ShowReferencers()));
|
||||||
addAction("Show Dependencies", this, SLOT(ShowDependencies()));
|
addAction(tr("Show Dependencies"), this, SLOT(ShowDependencies()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mpClickedEntry || mpClickedDirectory || !mSelectedIndexes.isEmpty())
|
if (mpClickedEntry || mpClickedDirectory || !mSelectedIndexes.isEmpty())
|
||||||
{
|
{
|
||||||
addAction("Delete", this, SLOT(Delete()));
|
addAction(tr("Delete"), this, SLOT(Delete()));
|
||||||
}
|
}
|
||||||
|
|
||||||
addSeparator();
|
addSeparator();
|
||||||
|
|
||||||
if (mpClickedEntry)
|
if (mpClickedEntry)
|
||||||
{
|
{
|
||||||
addAction("Copy Name", this, SLOT(CopyName()));
|
addAction(tr("Copy Name"), this, SLOT(CopyName()));
|
||||||
addAction("Copy Path", this, SLOT(CopyPath()));
|
addAction(tr("Copy Path"), this, SLOT(CopyPath()));
|
||||||
addAction("Copy ID", this, SLOT(CopyID()));
|
addAction(tr("Copy ID"), this, SLOT(CopyID()));
|
||||||
addSeparator();
|
addSeparator();
|
||||||
}
|
}
|
||||||
|
|
||||||
QMenu* pCreate = addMenu("Create...");
|
QMenu* pCreate = addMenu(tr("Create..."));
|
||||||
mpBrowser->AddCreateAssetMenuActions(pCreate);
|
mpBrowser->AddCreateAssetMenuActions(pCreate);
|
||||||
|
|
||||||
// Asset-specific
|
// Asset-specific
|
||||||
|
@ -78,7 +78,7 @@ void CResourceTableContextMenu::InitMenu()
|
||||||
switch (mpClickedEntry->ResourceType())
|
switch (mpClickedEntry->ResourceType())
|
||||||
{
|
{
|
||||||
case EResourceType::StringTable:
|
case EResourceType::StringTable:
|
||||||
addAction("Create Scan", this, SLOT(CreateSCAN()));
|
addAction(tr("Create Scan"), this, SLOT(CreateSCAN()));
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ void CResourceTableContextMenu::ShowReferencers()
|
||||||
if (!mpModel->IsDisplayingUserEntryList())
|
if (!mpModel->IsDisplayingUserEntryList())
|
||||||
mpBrowser->SetInspectedEntry(mpClickedEntry);
|
mpBrowser->SetInspectedEntry(mpClickedEntry);
|
||||||
|
|
||||||
QString ListDesc = QString("Referencers of \"%1\"").arg( TO_QSTRING(mpClickedEntry->CookedAssetPath().GetFileName()) );
|
const QString ListDesc = tr("Referencers of \"%1\"").arg( TO_QSTRING(mpClickedEntry->CookedAssetPath().GetFileName()) );
|
||||||
mpModel->DisplayEntryList(EntryList, ListDesc);
|
mpModel->DisplayEntryList(EntryList, ListDesc);
|
||||||
mpBrowser->ClearFilters();
|
mpBrowser->ClearFilters();
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,7 @@ void CResourceTableContextMenu::ShowDependencies()
|
||||||
if (!mpModel->IsDisplayingUserEntryList())
|
if (!mpModel->IsDisplayingUserEntryList())
|
||||||
mpBrowser->SetInspectedEntry(mpClickedEntry);
|
mpBrowser->SetInspectedEntry(mpClickedEntry);
|
||||||
|
|
||||||
QString ListDesc = QString("Dependencies of \"%1\"").arg( TO_QSTRING(mpClickedEntry->CookedAssetPath().GetFileName()) );
|
const QString ListDesc = tr("Dependencies of \"%1\"").arg( TO_QSTRING(mpClickedEntry->CookedAssetPath().GetFileName()) );
|
||||||
mpModel->DisplayEntryList(EntryList, ListDesc);
|
mpModel->DisplayEntryList(EntryList, ListDesc);
|
||||||
mpBrowser->ClearFilters();
|
mpBrowser->ClearFilters();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue