Formatting for Crowdin (#2413)

* Formatting for crowdin

* +
This commit is contained in:
DanielSvoboda 2025-02-13 09:42:40 -03:00 committed by GitHub
parent 7728db0dd3
commit 43191ff426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 47981 additions and 39870 deletions

View file

@ -568,7 +568,7 @@ void CheatsPatches::downloadCheats(const QString& source, const QString& gameSer
} else { } else {
QMessageBox::warning(this, tr("Error"), QMessageBox::warning(this, tr("Error"),
QString(tr("Failed to download file:") + QString(tr("Failed to download file:") +
"%1\n\n" + tr("Error:") + "%2") "%1\n\n" + tr("Error") + ":%2")
.arg(fileUrl) .arg(fileUrl)
.arg(fileReply->errorString())); .arg(fileReply->errorString()));
} }
@ -644,7 +644,7 @@ void CheatsPatches::downloadCheats(const QString& source, const QString& gameSer
} else { } else {
QMessageBox::warning(this, tr("Error"), QMessageBox::warning(this, tr("Error"),
QString(tr("Failed to download file:") + QString(tr("Failed to download file:") +
"%1\n\n" + tr("Error:") + "%2") "%1\n\n" + tr("Error") + ":%2")
.arg(fileUrl) .arg(fileUrl)
.arg(fileReply->errorString())); .arg(fileReply->errorString()));
} }
@ -843,7 +843,7 @@ void CheatsPatches::compatibleVersionNotice(const QString repository) {
foreach (const QString& xmlFile, xmlFiles) { foreach (const QString& xmlFile, xmlFiles) {
QFile file(dir.filePath(xmlFile)); QFile file(dir.filePath(xmlFile));
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
QMessageBox::warning(this, tr("ERROR"), QMessageBox::warning(this, tr("Error"),
QString(tr("Failed to open file:") + "\n%1").arg(xmlFile)); QString(tr("Failed to open file:") + "\n%1").arg(xmlFile));
continue; continue;
} }
@ -871,7 +871,7 @@ void CheatsPatches::compatibleVersionNotice(const QString repository) {
} }
if (xmlReader.hasError()) { if (xmlReader.hasError()) {
QMessageBox::warning(this, tr("ERROR"), QMessageBox::warning(this, tr("Error"),
QString(tr("XML ERROR:") + "\n%1").arg(xmlReader.errorString())); QString(tr("XML ERROR:") + "\n%1").arg(xmlReader.errorString()));
} }
@ -926,7 +926,7 @@ void CheatsPatches::createFilesJson(const QString& repository) {
foreach (const QString& xmlFile, xmlFiles) { foreach (const QString& xmlFile, xmlFiles) {
QFile file(dir.filePath(xmlFile)); QFile file(dir.filePath(xmlFile));
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
QMessageBox::warning(this, tr("ERROR"), QMessageBox::warning(this, tr("Error"),
QString(tr("Failed to open file:") + "\n%1").arg(xmlFile)); QString(tr("Failed to open file:") + "\n%1").arg(xmlFile));
continue; continue;
} }
@ -944,7 +944,7 @@ void CheatsPatches::createFilesJson(const QString& repository) {
} }
if (xmlReader.hasError()) { if (xmlReader.hasError()) {
QMessageBox::warning(this, tr("ERROR"), QMessageBox::warning(this, tr("Error"),
QString(tr("XML ERROR:") + "\n%1").arg(xmlReader.errorString())); QString(tr("XML ERROR:") + "\n%1").arg(xmlReader.errorString()));
} }
filesObject[xmlFile] = titleIdsArray; filesObject[xmlFile] = titleIdsArray;
@ -952,7 +952,7 @@ void CheatsPatches::createFilesJson(const QString& repository) {
QFile jsonFile(dir.absolutePath() + "/files.json"); QFile jsonFile(dir.absolutePath() + "/files.json");
if (!jsonFile.open(QIODevice::WriteOnly)) { if (!jsonFile.open(QIODevice::WriteOnly)) {
QMessageBox::warning(this, tr("ERROR"), tr("Failed to open files.json for writing")); QMessageBox::warning(this, tr("Error"), tr("Failed to open files.json for writing"));
return; return;
} }
@ -1155,7 +1155,7 @@ void CheatsPatches::addPatchesToLayout(const QString& filePath) {
QString fullPath = dir.filePath(folderPath); QString fullPath = dir.filePath(folderPath);
if (!dir.exists(fullPath)) { if (!dir.exists(fullPath)) {
QMessageBox::warning(this, tr("ERROR"), QMessageBox::warning(this, tr("Error"),
QString(tr("Directory does not exist:") + "\n%1").arg(fullPath)); QString(tr("Directory does not exist:") + "\n%1").arg(fullPath));
return; return;
} }
@ -1165,7 +1165,7 @@ void CheatsPatches::addPatchesToLayout(const QString& filePath) {
QFile jsonFile(filesJsonPath); QFile jsonFile(filesJsonPath);
if (!jsonFile.open(QIODevice::ReadOnly)) { if (!jsonFile.open(QIODevice::ReadOnly)) {
QMessageBox::warning(this, tr("ERROR"), tr("Failed to open files.json for reading.")); QMessageBox::warning(this, tr("Error"), tr("Failed to open files.json for reading."));
return; return;
} }
@ -1189,7 +1189,7 @@ void CheatsPatches::addPatchesToLayout(const QString& filePath) {
if (!xmlFile.open(QIODevice::ReadOnly)) { if (!xmlFile.open(QIODevice::ReadOnly)) {
QMessageBox::warning( QMessageBox::warning(
this, tr("ERROR"), this, tr("Error"),
QString(tr("Failed to open file:") + "\n%1").arg(xmlFile.fileName())); QString(tr("Failed to open file:") + "\n%1").arg(xmlFile.fileName()));
continue; continue;
} }

View file

@ -18,17 +18,8 @@ PKGViewer::PKGViewer(std::shared_ptr<GameInfoClass> game_info_get, QWidget* pare
treeWidget = new QTreeWidget(this); treeWidget = new QTreeWidget(this);
treeWidget->setColumnCount(9); treeWidget->setColumnCount(9);
QStringList headers; QStringList headers;
headers << "Name" headers << tr("Name") << tr("Serial") << tr("Installed") << tr("Size") << tr("Category")
<< "Serial" << tr("Type") << tr("App Ver") << tr("FW") << tr("Region") << tr("Flags") << tr("Path");
<< "Installed"
<< "Size"
<< "Category"
<< "Type"
<< "App Ver"
<< "FW"
<< "Region"
<< "Flags"
<< "Path";
treeWidget->setHeaderLabels(headers); treeWidget->setHeaderLabels(headers);
treeWidget->header()->setDefaultAlignment(Qt::AlignCenter); treeWidget->header()->setDefaultAlignment(Qt::AlignCenter);
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu); treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
@ -36,7 +27,7 @@ PKGViewer::PKGViewer(std::shared_ptr<GameInfoClass> game_info_get, QWidget* pare
this->setCentralWidget(treeWidget); this->setCentralWidget(treeWidget);
QMenuBar* menuBar = new QMenuBar(this); QMenuBar* menuBar = new QMenuBar(this);
menuBar->setContextMenuPolicy(Qt::PreventContextMenu); menuBar->setContextMenuPolicy(Qt::PreventContextMenu);
QMenu* fileMenu = menuBar->addMenu(tr("&File")); QMenu* fileMenu = menuBar->addMenu(tr("File"));
QAction* openFolderAct = new QAction(tr("Open Folder"), this); QAction* openFolderAct = new QAction(tr("Open Folder"), this);
fileMenu->addAction(openFolderAct); fileMenu->addAction(openFolderAct);
this->setMenuBar(menuBar); this->setMenuBar(menuBar);
@ -114,15 +105,15 @@ void PKGViewer::ProcessPKGInfo() {
return; return;
} }
psf.Open(package.sfo); psf.Open(package.sfo);
QString title_name = QString title_name = QString::fromStdString(
QString::fromStdString(std::string{psf.GetString("TITLE").value_or("Unknown")}); std::string{psf.GetString("TITLE").value_or(std::string{tr("Unknown").toStdString()})});
QString title_id = QString title_id = QString::fromStdString(std::string{
QString::fromStdString(std::string{psf.GetString("TITLE_ID").value_or("Unknown")}); psf.GetString("TITLE_ID").value_or(std::string{tr("Unknown").toStdString()})});
QString app_type = GameListUtils::GetAppType(psf.GetInteger("APP_TYPE").value_or(0)); QString app_type = GameListUtils::GetAppType(psf.GetInteger("APP_TYPE").value_or(0));
QString app_version = QString app_version = QString::fromStdString(std::string{
QString::fromStdString(std::string{psf.GetString("APP_VER").value_or("Unknown")}); psf.GetString("APP_VER").value_or(std::string{tr("Unknown").toStdString()})});
QString title_category = QString title_category = QString::fromStdString(std::string{
QString::fromStdString(std::string{psf.GetString("CATEGORY").value_or("Unknown")}); psf.GetString("CATEGORY").value_or(std::string{tr("Unknown").toStdString()})});
QString pkg_size = GameListUtils::FormatSize(package.GetPkgHeader().pkg_size); QString pkg_size = GameListUtils::FormatSize(package.GetPkgHeader().pkg_size);
pkg_content_flag = package.GetPkgHeader().pkg_content_flags; pkg_content_flag = package.GetPkgHeader().pkg_content_flags;
QString flagss = ""; QString flagss = "";
@ -134,7 +125,7 @@ void PKGViewer::ProcessPKGInfo() {
} }
} }
QString fw_ = "Unknown"; QString fw_ = tr("Unknown");
if (const auto fw_int_opt = psf.GetInteger("SYSTEM_VER"); fw_int_opt.has_value()) { if (const auto fw_int_opt = psf.GetInteger("SYSTEM_VER"); fw_int_opt.has_value()) {
const u32 fw_int = *fw_int_opt; const u32 fw_int = *fw_int_opt;
if (fw_int == 0) { if (fw_int == 0) {
@ -221,6 +212,6 @@ void PKGViewer::ProcessPKGInfo() {
// Update status bar. // Update status bar.
statusBar->clearMessage(); statusBar->clearMessage();
int numPkgs = m_pkg_list.size(); int numPkgs = m_pkg_list.size();
QString statusMessage = QString::number(numPkgs) + " Package."; QString statusMessage = QString::number(numPkgs) + " " + tr("Package");
statusBar->showMessage(statusMessage); statusBar->showMessage(statusMessage);
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sv_SE">
<!-- SPDX-FileCopyrightText: Copyright 2025 shadPS4 Emulator Project <!-- SPDX-FileCopyrightText: Copyright 2025 shadPS4 Emulator Project
SPDX-License-Identifier: GPL-2.0-or-later --> SPDX-License-Identifier: GPL-2.0-or-later -->
<!DOCTYPE TS>
<TS version="2.1" language="sv_SE">
<context> <context>
<name>AboutDialog</name> <name>AboutDialog</name>
<message> <message>
@ -244,14 +244,6 @@
<source>Can&apos;t apply cheats before the game is started</source> <source>Can&apos;t apply cheats before the game is started</source>
<translation>Kan inte tillämpa fusk innan spelet är startat</translation> <translation>Kan inte tillämpa fusk innan spelet är startat</translation>
</message> </message>
<message>
<source>Error:</source>
<translation>Fel:</translation>
</message>
<message>
<source>ERROR</source>
<translation>FEL</translation>
</message>
<message> <message>
<source>Close</source> <source>Close</source>
<translation>Stäng</translation> <translation>Stäng</translation>
@ -386,10 +378,6 @@
<source>Unable to update compatibility data! Try again later.</source> <source>Unable to update compatibility data! Try again later.</source>
<translation>Kunde inte uppdatera kompatibilitetsdata! Försök igen senare.</translation> <translation>Kunde inte uppdatera kompatibilitetsdata! Försök igen senare.</translation>
</message> </message>
<message>
<source>Unable to open compatibility.json for writing.</source>
<translation type="vanished">Kunde inte öppna compatibility.json för skrivning.</translation>
</message>
<message> <message>
<source>Unknown</source> <source>Unknown</source>
<translation>Okänt</translation> <translation>Okänt</translation>
@ -673,10 +661,6 @@
<source>Game can be completed with playable performance and no major glitches</source> <source>Game can be completed with playable performance and no major glitches</source>
<translation>Spelet kan spelas klart med spelbar prestanda och utan större problem</translation> <translation>Spelet kan spelas klart med spelbar prestanda och utan större problem</translation>
</message> </message>
<message>
<source>Click to go to issue</source>
<translation type="vanished">Klicka för att till problem</translation>
</message>
<message> <message>
<source>Last updated</source> <source>Last updated</source>
<translation>Senast uppdaterad</translation> <translation>Senast uppdaterad</translation>
@ -1196,14 +1180,66 @@
<source>Open Folder</source> <source>Open Folder</source>
<translation>Öppna mapp</translation> <translation>Öppna mapp</translation>
</message> </message>
<message>
<source>&amp;File</source>
<translation>&amp;Arkiv</translation>
</message>
<message> <message>
<source>PKG ERROR</source> <source>PKG ERROR</source>
<translation>PKG-FEL</translation> <translation>PKG-FEL</translation>
</message> </message>
<message>
<source>Name</source>
<translation type="unfinished">Namn</translation>
</message>
<message>
<source>Serial</source>
<translation type="unfinished">Serienummer</translation>
</message>
<message>
<source>Installed</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Size</source>
<translation type="unfinished">Storlek</translation>
</message>
<message>
<source>Category</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>App Ver</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>FW</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Region</source>
<translation type="unfinished">Region</translation>
</message>
<message>
<source>Flags</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Path</source>
<translation type="unfinished">Sökväg</translation>
</message>
<message>
<source>File</source>
<translation type="unfinished">Arkiv</translation>
</message>
<message>
<source>Unknown</source>
<translation type="unfinished">Okänt</translation>
</message>
<message>
<source>Package</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>SettingsDialog</name> <name>SettingsDialog</name>
@ -1255,10 +1291,6 @@
<source>Show Splash</source> <source>Show Splash</source>
<translation>Visa startskärm</translation> <translation>Visa startskärm</translation>
</message> </message>
<message>
<source>ps4proCheckBox</source>
<translation type="vanished">Är PS4 Pro:\nGör att emulatorn agerar som en PS4 PRO, vilket kan aktivera speciella funktioner i spel som har stöd för det</translation>
</message>
<message> <message>
<source>Enable Discord Rich Presence</source> <source>Enable Discord Rich Presence</source>
<translation>Aktivera Discord Rich Presence</translation> <translation>Aktivera Discord Rich Presence</translation>
@ -1323,10 +1355,6 @@
<source>Graphics</source> <source>Graphics</source>
<translation>Grafik</translation> <translation>Grafik</translation>
</message> </message>
<message>
<source>Gui</source>
<translation type="vanished">Gränssnitt</translation>
</message>
<message> <message>
<source>User</source> <source>User</source>
<translation>Användare</translation> <translation>Användare</translation>
@ -1743,6 +1771,14 @@
<source>GUIBackgroundImageGroupBox</source> <source>GUIBackgroundImageGroupBox</source>
<translation>Bakgrundsbild:\nKontrollerar opaciteten för spelets bakgrundsbild</translation> <translation>Bakgrundsbild:\nKontrollerar opaciteten för spelets bakgrundsbild</translation>
</message> </message>
<message>
<source>Enable HDR</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>enableHDRCheckBox</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>TrophyViewer</name> <name>TrophyViewer</name>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff