strings updated, german translation updated
This commit is contained in:
parent
c9ad204a2a
commit
6e165de9e2
7 changed files with 33 additions and 22 deletions
|
@ -34,7 +34,7 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->saProfile->setVisible(false);
|
ui->saProfile->setVisible(false);
|
||||||
contentStr = ui->labProfileContent->text();
|
loadingStr = ui->labProfileLoading->text();
|
||||||
profileFolder = "";
|
profileFolder = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void ProfileInterface::on_loadingProgress(int value, int maximum)
|
||||||
{
|
{
|
||||||
ui->pbPictureLoading->setMaximum(maximum);
|
ui->pbPictureLoading->setMaximum(maximum);
|
||||||
ui->pbPictureLoading->setValue(value);
|
ui->pbPictureLoading->setValue(value);
|
||||||
ui->labProfileContent->setText(contentStr.arg(QString::number(value), QString::number(maximum)));
|
ui->labProfileLoading->setText(loadingStr.arg(QString::number(value), QString::number(maximum)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProfileInterface::on_profileLoaded()
|
void ProfileInterface::on_profileLoaded()
|
||||||
|
|
|
@ -51,7 +51,7 @@ private:
|
||||||
Ui::ProfileInterface *ui;
|
Ui::ProfileInterface *ui;
|
||||||
QString profileFolder;
|
QString profileFolder;
|
||||||
QString profileName;
|
QString profileName;
|
||||||
QString contentStr;
|
QString loadingStr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PROFILEINTERFACE_H
|
#endif // PROFILEINTERFACE_H
|
||||||
|
|
|
@ -58,9 +58,9 @@
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labProfileContent">
|
<widget class="QLabel" name="labProfileLoading">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Loading %1 files of %2 files</string>
|
<string>Loading file %1 of %2 files</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
|
|
|
@ -32,12 +32,12 @@ ProfileLoader::ProfileLoader(QString profileFolder, CrewDatabase *crewDB, QObjec
|
||||||
|
|
||||||
void ProfileLoader::run()
|
void ProfileLoader::run()
|
||||||
{
|
{
|
||||||
int loadedV = 0;
|
int curFile = 1;
|
||||||
QDir profileDir;
|
QDir profileDir;
|
||||||
|
QList<int> crewList;
|
||||||
profileDir.setPath(profileFolder);
|
profileDir.setPath(profileFolder);
|
||||||
|
|
||||||
QList<int> crewList;
|
// Seek pictures and savegames
|
||||||
|
|
||||||
profileDir.setNameFilters(QStringList("SGTA*"));
|
profileDir.setNameFilters(QStringList("SGTA*"));
|
||||||
QStringList SavegameFiles = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort);
|
QStringList SavegameFiles = profileDir.entryList(QDir::Files | QDir::NoDot, QDir::NoSort);
|
||||||
QStringList BackupFiles = SavegameFiles.filter(".bak", Qt::CaseInsensitive);
|
QStringList BackupFiles = SavegameFiles.filter(".bak", Qt::CaseInsensitive);
|
||||||
|
@ -53,6 +53,8 @@ void ProfileLoader::run()
|
||||||
|
|
||||||
int maximumV = SavegameFiles.length() + SnapmaticPics.length();
|
int maximumV = SavegameFiles.length() + SnapmaticPics.length();
|
||||||
|
|
||||||
|
// Loading pictures and savegames
|
||||||
|
emit loadingProgress(curFile, maximumV);
|
||||||
foreach(const QString &SavegameFile, SavegameFiles)
|
foreach(const QString &SavegameFile, SavegameFiles)
|
||||||
{
|
{
|
||||||
QString sgdPath = profileFolder + "/" + SavegameFile;
|
QString sgdPath = profileFolder + "/" + SavegameFile;
|
||||||
|
@ -61,8 +63,8 @@ void ProfileLoader::run()
|
||||||
{
|
{
|
||||||
emit savegameLoaded(savegame, sgdPath);
|
emit savegameLoaded(savegame, sgdPath);
|
||||||
}
|
}
|
||||||
loadedV++;
|
curFile++;
|
||||||
emit loadingProgress(loadedV, maximumV);
|
emit loadingProgress(curFile, maximumV);
|
||||||
}
|
}
|
||||||
foreach(const QString &SnapmaticPic, SnapmaticPics)
|
foreach(const QString &SnapmaticPic, SnapmaticPics)
|
||||||
{
|
{
|
||||||
|
@ -77,8 +79,8 @@ void ProfileLoader::run()
|
||||||
crewList.append(crewNumber);
|
crewList.append(crewNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
loadedV++;
|
curFile++;
|
||||||
emit loadingProgress(loadedV, maximumV);
|
emit loadingProgress(curFile, maximumV);
|
||||||
}
|
}
|
||||||
|
|
||||||
// adding found crews
|
// adding found crews
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>GTA V Sync</string>
|
<string>gta5sync - %1</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="cwUI">
|
<widget class="QWidget" name="cwUI">
|
||||||
<layout class="QVBoxLayout" name="vlUI">
|
<layout class="QVBoxLayout" name="vlUI">
|
||||||
|
|
BIN
gta5sync_de.qm
BIN
gta5sync_de.qm
Binary file not shown.
|
@ -82,7 +82,12 @@
|
||||||
<translation>Profil Interface</translation>
|
<translation>Profil Interface</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="ProfileInterface.ui" line="32"/>
|
<location filename="ProfileInterface.ui" line="63"/>
|
||||||
|
<source>Loading file %1 of %2 files</source>
|
||||||
|
<oldsource>Loading %1 files of %2 files</oldsource>
|
||||||
|
<translation>Lade Datei %1 von %2 Dateien</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
<source>Content of Profile %1</source>
|
<source>Content of Profile %1</source>
|
||||||
<translation>Inhalt vom Profil %1</translation>
|
<translation>Inhalt vom Profil %1</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -91,7 +96,7 @@
|
||||||
<translation type="obsolete">Ansehen</translation>
|
<translation type="obsolete">Ansehen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="ProfileInterface.ui" line="113"/>
|
<location filename="ProfileInterface.ui" line="173"/>
|
||||||
<source>Close Profile</source>
|
<source>Close Profile</source>
|
||||||
<translation>Profil schließen</translation>
|
<translation>Profil schließen</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -128,17 +133,17 @@
|
||||||
<translation>Spielstand Widget</translation>
|
<translation>Spielstand Widget</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SavegameWidget.ui" line="20"/>
|
<location filename="SavegameWidget.ui" line="36"/>
|
||||||
<source>The Third Way (100%) - 00/00/00 00:00:00</source>
|
<source>The Third Way (100%) - 00/00/00 00:00:00</source>
|
||||||
<translation>The Third Way (100%) - 00/00/00 00:00:00</translation>
|
<translation>The Third Way (100%) - 00/00/00 00:00:00</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SavegameWidget.ui" line="43"/>
|
<location filename="SavegameWidget.ui" line="46"/>
|
||||||
<source>Copy</source>
|
<source>Copy</source>
|
||||||
<translation>Kopieren</translation>
|
<translation>Kopieren</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SavegameWidget.ui" line="50"/>
|
<location filename="SavegameWidget.ui" line="53"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>Löschen</translation>
|
<translation>Löschen</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -151,17 +156,17 @@
|
||||||
<translation>Snapmatic Widget</translation>
|
<translation>Snapmatic Widget</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SnapmaticWidget.ui" line="45"/>
|
<location filename="SnapmaticWidget.ui" line="51"/>
|
||||||
<source>PHOTO - 00/00/00 00:00:00</source>
|
<source>PHOTO - 00/00/00 00:00:00</source>
|
||||||
<translation>FOTO - 00/00/00 00:00:00</translation>
|
<translation>FOTO - 00/00/00 00:00:00</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SnapmaticWidget.ui" line="68"/>
|
<location filename="SnapmaticWidget.ui" line="61"/>
|
||||||
<source>View</source>
|
<source>View</source>
|
||||||
<translation>Ansehen</translation>
|
<translation>Ansehen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="SnapmaticWidget.ui" line="75"/>
|
<location filename="SnapmaticWidget.ui" line="68"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>Löschen</translation>
|
<translation>Löschen</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -173,11 +178,15 @@
|
||||||
<translation type="obsolete">Grand Theft Auto V Sync</translation>
|
<translation type="obsolete">Grand Theft Auto V Sync</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="UserInterface.ui" line="20"/>
|
|
||||||
<location filename="UserInterface.cpp" line="69"/>
|
<location filename="UserInterface.cpp" line="69"/>
|
||||||
<source>GTA V Sync</source>
|
<source>GTA V Sync</source>
|
||||||
<translation>GTA V Sync</translation>
|
<translation>GTA V Sync</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="UserInterface.ui" line="20"/>
|
||||||
|
<source>gta5sync - %1</source>
|
||||||
|
<translation>gta5sync - %1</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="UserInterface.ui" line="57"/>
|
<location filename="UserInterface.ui" line="57"/>
|
||||||
<source>File</source>
|
<source>File</source>
|
||||||
|
|
Loading…
Reference in a new issue