@@ -73,7 +73,12 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, D
7373 ui->menuProfile ->setEnabled (false );
7474 ui->actionSelect_profile ->setEnabled (false );
7575 ui->actionAbout_gta5sync ->setIcon (IconLoader::loadingAppIcon ());
76+ #ifdef Q_OS_MAC
77+ ui->actionAbout_gta5sync ->setText (QApplication::translate (" MAC_APPLICATION_MENU" , " About %1" ).arg (GTA5SYNC_APPSTR));
78+ ui->actionOptions ->setText (QApplication::translate (" MAC_APPLICATION_MENU" , " Preferences..." ));
79+ #else
7680 ui->actionAbout_gta5sync ->setText (tr (" &About %1" ).arg (GTA5SYNC_APPSTR));
81+ #endif
7782 ui->cmdClose ->setToolTip (ui->cmdClose ->toolTip ().arg (GTA5SYNC_APPSTR));
7883 defaultWindowTitle = tr (" %2 - %1" ).arg (" %1" , GTA5SYNC_APPSTR);
7984
@@ -873,13 +878,17 @@ void UserInterface::retranslateUi()
873878 donateAction->setText (tr (" &Donate" ));
874879#endif
875880#endif
881+ #ifdef Q_OS_MAC
882+ ui->actionAbout_gta5sync ->setText (QApplication::translate (" MAC_APPLICATION_MENU" , " About %1" ).arg (GTA5SYNC_APPSTR));
883+ ui->actionOptions ->setText (QApplication::translate (" MAC_APPLICATION_MENU" , " Preferences..." ));
884+ #else
876885 ui->actionAbout_gta5sync ->setText (tr (" &About %1" ).arg (GTA5SYNC_APPSTR));
877- QString appVersion = GTA5SYNC_APPVER;
878- #ifndef GTA5SYNC_BUILDTYPE_REL
886+ #endif
887+ QString appVersion = QApplication::applicationVersion ();
888+ const char * literalBuildType = GTA5SYNC_BUILDTYPE;
879889#ifdef GTA5SYNC_COMMIT
880- if (!appVersion.contains (" -" ))
890+ if (( strcmp (literalBuildType, REL_BUILDTYPE) != 0 ) && !appVersion.contains (" -" ))
881891 appVersion = appVersion % " -" % GTA5SYNC_COMMIT;
882- #endif
883892#endif
884893 ui->labVersion ->setText (QString (" %1 %2" ).arg (GTA5SYNC_APPSTR, appVersion));
885894 if (profileOpen) {
0 commit comments