3 Commits

Author SHA1 Message Date
github-actions[bot]
775c0887ab chore(main): release 0.3.1 (#27)
🤖 I have created a release *beep* *boop*
---


## [0.3.1](https://github.com/shizand/statapp/compare/v0.3.0...v0.3.1)
(2023-09-28)


### Исправления

* исправлена локализация стандартных кнопок
([2b061be](2b061bed2f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-28 15:45:56 +03:00
2b061bed2f fix: исправлена локализация стандартных кнопок 2023-09-28 15:43:01 +03:00
48ae2644e8 ci: исправил шаблон выбора файлов для загрузки 2023-09-28 15:41:06 +03:00
4 changed files with 18 additions and 2 deletions

View File

@@ -77,4 +77,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: run:
gh release upload ${{ steps.release.outputs.tag_name }} ./dist/* gh release upload ${{ steps.release.outputs.tag_name }} ./dist/**/*.zip

View File

@@ -1,5 +1,12 @@
# Changelog # Changelog
## [0.3.1](https://github.com/shizand/statapp/compare/v0.3.0...v0.3.1) (2023-09-28)
### Исправления
* исправлена локализация стандартных кнопок ([2b061be](https://github.com/shizand/statapp/commit/2b061bed2f6343fc2feb87472afc4c9a051b30a9))
## [0.3.0](https://github.com/shizand/statapp/compare/v0.2.1...v0.3.0) (2023-09-28) ## [0.3.0](https://github.com/shizand/statapp/compare/v0.2.1...v0.3.0) (2023-09-28)

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "statapp" name = "statapp"
version = "0.3.0" version = "0.3.1"
description = "" description = ""
authors = [ authors = [
"Maxim Slipenko <statapp@maks1ms.addy.io>" "Maxim Slipenko <statapp@maks1ms.addy.io>"

View File

@@ -1,4 +1,6 @@
import sys import sys
from PySide2 import QtCore
from PySide2.QtWidgets import QApplication from PySide2.QtWidgets import QApplication
from statapp.main_window import MainWindow from statapp.main_window import MainWindow
@@ -6,6 +8,13 @@ from statapp.main_window import MainWindow
def main(): def main():
app = QApplication(sys.argv) app = QApplication(sys.argv)
translator = QtCore.QTranslator(app)
locale = QtCore.QLocale.system().name()
path = QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)
translator.load('qt_%s' % locale, path)
app.installTranslator(translator)
window = MainWindow() window = MainWindow()
window.show() window.show()
return app.exec_() return app.exec_()