diff --git a/GlpiClient.py b/GlpiClient.py index e57e697..7fb2f1a 100644 --- a/GlpiClient.py +++ b/GlpiClient.py @@ -1218,7 +1218,7 @@ def __init__(self): def initUI(self): # create About win - self.setFixedSize(300, 240) + self.setFixedSize(400, 300) self.center() self.setWindowTitle(_("About...")) self.setWindowIcon(QIcon('img\ico.png')) @@ -1227,13 +1227,38 @@ def initUI(self): self.setWindowFlags(Qt.CustomizeWindowHint | Qt.WindowCloseButtonHint ) self.glpiPic = QLabel(self) - glpiPicPixmap = QPixmap('img\ico.png') + glpiPicPixmap = QPixmap('img\ico64x64.png') self.glpiPic.setPixmap(glpiPicPixmap) # label app self.aboutAppHeadLabel = QLabel(self) - self.aboutAppHeadLabel.setFont(QFont("Decorative", 11)) - self.aboutAppHeadLabel.setText(appName + " " + appVersion) + self.aboutAppHeadLabel.setFont(QFont("Decorative", 8)) + self.aboutAppHeadLabel.setTextInteractionFlags(Qt.TextSelectableByMouse) + self.aboutAppHeadLabel.setText(appName + " " + "v" + appVersion) + + # author contact + self.aboutAuthorContact = QLabel(self) + self.aboutAuthorContact.setFont(QFont("Decorative", 8)) + self.aboutAuthorContact.setAlignment(Qt.AlignCenter) + self.aboutAuthorContact.setTextInteractionFlags(Qt.TextSelectableByMouse) + self.aboutAuthorContact.setText(_("Author Contact") + ":" + + '\n' + authorEmail) + + # app homepage + self.aboutAppHomepage = QLabel(self) + self.aboutAppHomepage.setFont(QFont("Decorative", 8)) + self.aboutAppHomepage.setAlignment(Qt.AlignCenter) + self.aboutAppHomepage.setTextInteractionFlags(Qt.TextSelectableByMouse) + self.aboutAppHomepage.setText(_("App Homepage") + ":" + + '\n' + appHomepage) + + # app translation + self.aboutAppTranslations = QLabel(self) + self.aboutAppTranslations.setFont(QFont("Decorative", 8)) + self.aboutAppTranslations.setAlignment(Qt.AlignCenter) + self.aboutAppTranslations.setTextInteractionFlags(Qt.TextSelectableByMouse) + self.aboutAppTranslations.setText(_("Interface Translations") + ":" + + '\n' + "Italian - trisosamu") # OK-exit button create self.aboutOkButton = QPushButton(_("OK"), self) @@ -1245,7 +1270,10 @@ def initUI(self): gridAbout = QGridLayout() gridAbout.addWidget(self.glpiPic, 0, 0, 1, 1, alignment=Qt.AlignCenter) gridAbout.addWidget(self.aboutAppHeadLabel, 1, 0, 1, 1, alignment=Qt.AlignCenter) - gridAbout.addWidget(self.aboutOkButton, 2, 0, 1, 1, alignment=Qt.AlignCenter) + gridAbout.addWidget(self.aboutAuthorContact, 2, 0, 1, 1, alignment=Qt.AlignCenter) + gridAbout.addWidget(self.aboutAppHomepage, 3, 0, 1, 1, alignment=Qt.AlignCenter) + gridAbout.addWidget(self.aboutAppTranslations, 4, 0, 1, 1, alignment=Qt.AlignCenter) + gridAbout.addWidget(self.aboutOkButton, 5, 0, 1, 1, alignment=Qt.AlignCenter) self.setLayout(gridAbout) self.show() diff --git a/app.version b/app.version index 98c1af5..899ced5 100644 --- a/app.version +++ b/app.version @@ -1 +1 @@ -0.303 \ No newline at end of file +0.304 \ No newline at end of file diff --git a/img/ico64x64.png b/img/ico64x64.png new file mode 100644 index 0000000..9190341 Binary files /dev/null and b/img/ico64x64.png differ diff --git a/lang/i18n/en/LC_MESSAGES/glpiClient.mo b/lang/i18n/en/LC_MESSAGES/glpiClient.mo index 3e9442a..4cf2a7e 100644 Binary files a/lang/i18n/en/LC_MESSAGES/glpiClient.mo and b/lang/i18n/en/LC_MESSAGES/glpiClient.mo differ diff --git a/lang/i18n/en/LC_MESSAGES/glpiClient.po b/lang/i18n/en/LC_MESSAGES/glpiClient.po index c8a1c0d..0184eed 100644 --- a/lang/i18n/en/LC_MESSAGES/glpiClient.po +++ b/lang/i18n/en/LC_MESSAGES/glpiClient.po @@ -292,3 +292,15 @@ msgstr "This window will close automatically..." msgid "App autoupdate" msgstr "App autoupdate" + +msgid "Hide app window to tray at startup" +msgstr "Hide app window to tray at startup" + +msgid "Author Contact" +msgstr "Author Contact" + +msgid "App Homepage" +msgstr "App Homepage" + +msgid "Interface Translations" +msgstr "Interface Translations" \ No newline at end of file diff --git a/lang/i18n/it/LC_MESSAGES/glpiClient.mo b/lang/i18n/it/LC_MESSAGES/glpiClient.mo index 9b31f41..f5ea7cc 100644 Binary files a/lang/i18n/it/LC_MESSAGES/glpiClient.mo and b/lang/i18n/it/LC_MESSAGES/glpiClient.mo differ diff --git a/lang/i18n/it/LC_MESSAGES/glpiClient.po b/lang/i18n/it/LC_MESSAGES/glpiClient.po index bb4d7fc..357a669 100644 --- a/lang/i18n/it/LC_MESSAGES/glpiClient.po +++ b/lang/i18n/it/LC_MESSAGES/glpiClient.po @@ -313,3 +313,15 @@ msgstr "Questa finestra si chiuderà automaticamente..." msgid "App autoupdate" msgstr "Aggiornamento automatico app" + +msgid "Hide app window to tray at startup" +msgstr "Nascondi la finestra del programma nella barra delle applicazioni all'avvio" + +msgid "Author Contact" +msgstr "Autore Contatto" + +msgid "App Homepage" +msgstr "Sito web del programma" + +msgid "Interface Translations" +msgstr "Traduzione dell'interfaccia" \ No newline at end of file diff --git a/lang/i18n/ru/LC_MESSAGES/glpiClient.mo b/lang/i18n/ru/LC_MESSAGES/glpiClient.mo index 652554d..40995e0 100644 Binary files a/lang/i18n/ru/LC_MESSAGES/glpiClient.mo and b/lang/i18n/ru/LC_MESSAGES/glpiClient.mo differ diff --git a/lang/i18n/ru/LC_MESSAGES/glpiClient.po b/lang/i18n/ru/LC_MESSAGES/glpiClient.po index ec4da89..5511db0 100644 --- a/lang/i18n/ru/LC_MESSAGES/glpiClient.po +++ b/lang/i18n/ru/LC_MESSAGES/glpiClient.po @@ -292,3 +292,15 @@ msgstr "Это окно закроется автоматически..." msgid "App autoupdate" msgstr "Автообновление программы" + +msgid "Hide app window to tray at startup" +msgstr "Скрыть окно программы в системном лотке при запуске" + +msgid "Author Contact" +msgstr "Связаться с автором" + +msgid "App Homepage" +msgstr "Страница приложения" + +msgid "Interface Translations" +msgstr "Перевод интерфейса" diff --git a/vars.py b/vars.py index 678c8c6..d8fc2b1 100644 --- a/vars.py +++ b/vars.py @@ -10,10 +10,12 @@ # VARS -appName = "Glpi Client" +appName = "GlpiClient" appExeFile = "GlpiClient.exe" appDirName = "GlpiClient" -appVersion = "0.303" +appVersion = "0.304" +authorEmail = "clesssalvein@gmail.com" +appHomepage = "https://github.com/clesssalvein/GlpiClient" sessionToken = None # userPass enc, NOT FOR WinXP