mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-20 18:34:58 +00:00
gui: Implement gui translations
This commit is contained in:
parent
c79b10edc1
commit
3f445eca40
35 changed files with 11473 additions and 63 deletions
|
@ -36,10 +36,10 @@ public:
|
|||
|
||||
// Setup menu.
|
||||
QMenu menu(widget);
|
||||
QAction createShortcut("Create Shortcut", widget);
|
||||
QAction openFolder("Open Game Folder", widget);
|
||||
QAction openSfoViewer("SFO Viewer", widget);
|
||||
QAction openTrophyViewer("Trophy Viewer", widget);
|
||||
QAction createShortcut(tr("Create Shortcut"), widget);
|
||||
QAction openFolder(tr("Open Game Folder"), widget);
|
||||
QAction openSfoViewer(tr("SFO Viewer"), widget);
|
||||
QAction openTrophyViewer(tr("Trophy Viewer"), widget);
|
||||
|
||||
menu.addAction(&openFolder);
|
||||
menu.addAction(&createShortcut);
|
||||
|
@ -47,10 +47,10 @@ public:
|
|||
menu.addAction(&openTrophyViewer);
|
||||
|
||||
// "Copy" submenu.
|
||||
QMenu* copyMenu = new QMenu("Copy info", widget);
|
||||
QAction* copyName = new QAction("Copy Name", widget);
|
||||
QAction* copySerial = new QAction("Copy Serial", widget);
|
||||
QAction* copyNameAll = new QAction("Copy All", widget);
|
||||
QMenu* copyMenu = new QMenu(tr("Copy info"), widget);
|
||||
QAction* copyName = new QAction(tr("Copy Name"), widget);
|
||||
QAction* copySerial = new QAction(tr("Copy Serial"), widget);
|
||||
QAction* copyNameAll = new QAction(tr("Copy All"), widget);
|
||||
|
||||
copyMenu->addAction(copyName);
|
||||
copyMenu->addAction(copySerial);
|
||||
|
@ -116,7 +116,7 @@ public:
|
|||
tableWidget->horizontalHeader()->setVisible(false);
|
||||
|
||||
tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||
tableWidget->setWindowTitle("SFO Viewer");
|
||||
tableWidget->setWindowTitle(tr("SFO Viewer"));
|
||||
tableWidget->show();
|
||||
}
|
||||
}
|
||||
|
@ -170,15 +170,15 @@ public:
|
|||
if (createShortcutLinux(linkPath, ebootPath, iconPath)) {
|
||||
#endif
|
||||
QMessageBox::information(
|
||||
nullptr, "Shortcut creation",
|
||||
QString("Shortcut created successfully!\n %1").arg(linkPath));
|
||||
nullptr, tr("Shortcut creation"),
|
||||
QString(tr("Shortcut created successfully!\n %1")).arg(linkPath));
|
||||
} else {
|
||||
QMessageBox::critical(
|
||||
nullptr, "Error",
|
||||
QString("Error creating shortcut!\n %1").arg(linkPath));
|
||||
nullptr, tr("Error"),
|
||||
QString(tr("Error creating shortcut!\n %1")).arg(linkPath));
|
||||
}
|
||||
} else {
|
||||
QMessageBox::critical(nullptr, "Error", "Failed to convert icon.");
|
||||
QMessageBox::critical(nullptr, tr("Error"), tr("Failed to convert icon."));
|
||||
}
|
||||
} else {
|
||||
// If the icon is already in ICO format, we just create the shortcut
|
||||
|
@ -188,11 +188,12 @@ public:
|
|||
if (createShortcutLinux(linkPath, ebootPath, iconPath)) {
|
||||
#endif
|
||||
QMessageBox::information(
|
||||
nullptr, "Shortcut creation",
|
||||
QString("Shortcut created successfully!\n %1").arg(linkPath));
|
||||
nullptr, tr("Shortcut creation"),
|
||||
QString(tr("Shortcut created successfully!\n %1")).arg(linkPath));
|
||||
} else {
|
||||
QMessageBox::critical(nullptr, "Error",
|
||||
QString("Error creating shortcut!\n %1").arg(linkPath));
|
||||
QMessageBox::critical(
|
||||
nullptr, tr("Error"),
|
||||
QString(tr("Error creating shortcut!\n %1")).arg(linkPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -249,7 +250,7 @@ public:
|
|||
int itemIndex = GetRowIndex(treeWidget, currentItem); // row
|
||||
|
||||
QMenu menu(treeWidget);
|
||||
QAction installPackage("Install PKG", treeWidget);
|
||||
QAction installPackage(tr("Install PKG"), treeWidget);
|
||||
|
||||
menu.addAction(&installPackage);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue