Skip to content

Commit

Permalink
#257 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tieugene committed Apr 6, 2023
1 parent 7b80d87 commit 8962a46
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ Line = QFrame().setFrameShape(QtWidgets.QFrame.VLine)

### i18n:
- Prepare strings (include into `self.tr(...)`)
- Prepare template: `pylupdate5 iosc/*.py iosc/sig/*.py iosc/sig/*/*.py -ts iosc/i18n/iOsc_ru.ts`
- Prepare template: `pylupdate5 iosc/*.py iosc/sig/*.py iosc/sig/*/*.py -ts iosc/i18n/iosc_ru.ts`
- ~~Mk l10n: `cp i18n/iosc.ts i18n/iosc_ru.ts`~~
- Translate: `linguist-qt5 iosc/i18n/iOsc_ru.ts`
- Translate: `linguist-qt5 iosc/i18n/iosc_ru.ts`
- Compile l10ns: `lrelease-qt5 lrelease-qt5 iosc/i18n/*.ts`

## RTFM
Expand Down
12 changes: 6 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

## 0.3.7: Deploy
- [ ] Доработка/тестирование на версиях:
+ Windows: 7-11 x64
+ Fedora Linux 36/37 x64 rpm dynamic
+ Ubuntu Linux 22.04/22.10 x64 deb dynamic
+ [ ] Windows: 7-11 x64
+ [ ] Fedora Linux 36/37 x64 rpm dynamic
+ [ ] Ubuntu Linux 22.04/22.10 x64 deb dynamic
- [ ] Разработка установщиков:
+ Windows 7, 8, 8.1, 10, 11 x64 установщик *.exe;
+ Fedora Linux 36/37 x64 rpm dynamic
+ Ubuntu Linux 22.04/22.10 x64 deb dynamic.
+ [ ] Windows 7, 8, 8.1, 10, 11 x64 установщик *.exe;
+ [x] Fedora Linux 36/37 x64 rpm dynamic
+ [ ] Ubuntu Linux 22.04/22.10 x64 deb dynamic.

## x.y.z. Calculated signals
- [ ] 2.3.4.3.1. Common (actions, menu, base things)
Expand Down
59 changes: 35 additions & 24 deletions iosc/i18n/iosc_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,102 +541,97 @@ Station ID: %s, Station name: %s</source>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.py" line="52"/>
<location filename="../mainwindow.py" line="54"/>
<source>Load comtrade file</source>
<translation>Загрузить файл comtrade</translation>
</message>
<message>
<location filename="../mainwindow.py" line="59"/>
<location filename="../mainwindow.py" line="61"/>
<source>Settings</source>
<translation>Настройки</translation>
</message>
<message>
<location filename="../mainwindow.py" line="65"/>
<location filename="../mainwindow.py" line="67"/>
<source>Exit the application</source>
<translation>Завершить приложение</translation>
</message>
<message>
<location filename="../mainwindow.py" line="52"/>
<location filename="../mainwindow.py" line="54"/>
<source>&amp;Open</source>
<translation>&amp;Открыть</translation>
</message>
<message>
<location filename="../mainwindow.py" line="59"/>
<location filename="../mainwindow.py" line="61"/>
<source>&amp;Settings</source>
<translation>На&amp;стройки</translation>
</message>
<message>
<location filename="../mainwindow.py" line="65"/>
<location filename="../mainwindow.py" line="67"/>
<source>E&amp;xit</source>
<translation>Вы&amp;ход</translation>
</message>
<message>
<location filename="../mainwindow.py" line="72"/>
<location filename="../mainwindow.py" line="74"/>
<source>&amp;About</source>
<translation&amp;программе</translation>
</message>
<message>
<location filename="../mainwindow.py" line="72"/>
<location filename="../mainwindow.py" line="74"/>
<source>Show the application&apos;s &apos;About&apos; box</source>
<translation>Показывает &apos;О программе&apos;</translation>
</message>
<message>
<location filename="../mainwindow.py" line="80"/>
<location filename="../mainwindow.py" line="82"/>
<source>&amp;File</source>
<translation>&amp;Файл</translation>
</message>
<message>
<location filename="../mainwindow.py" line="85"/>
<location filename="../mainwindow.py" line="87"/>
<source>&amp;Help</source>
<translation>&amp;Помощь</translation>
</message>
<message>
<location filename="../mainwindow.py" line="110"/>
<location filename="../mainwindow.py" line="112"/>
<source>CLI error</source>
<translation>Ошибка ИКС</translation>
</message>
<message>
<location filename="../mainwindow.py" line="106"/>
<location filename="../mainwindow.py" line="108"/>
<source>One file only</source>
<translation>Только один файл</translation>
</message>
<message>
<location filename="../mainwindow.py" line="116"/>
<location filename="../mainwindow.py" line="118"/>
<source>Open data</source>
<translation>Открыть данные</translation>
</message>
<message>
<location filename="../mainwindow.py" line="116"/>
<location filename="../mainwindow.py" line="118"/>
<source>Comtrade Files (*.cfg *.cff)</source>
<translation>Файлы comtrade (*.cfg *.cff)</translation>
</message>
<message>
<location filename="../mainwindow.py" line="133"/>
<location filename="../mainwindow.py" line="135"/>
<source>About iOsc</source>
<translation>Об iOsc</translation>
</message>
<message>
<location filename="../mainwindow.py" line="100"/>
<location filename="../mainwindow.py" line="102"/>
<source>File</source>
<translation>Файл</translation>
</message>
<message>
<location filename="../mainwindow.py" line="110"/>
<location filename="../mainwindow.py" line="112"/>
<source>&apos;%s&apos; not exists or is not file</source>
<translation>&apos;%s&apos; не существует или не файл</translation>
</message>
<message>
<location filename="../mainwindow.py" line="133"/>
<source>Qt powered comtrade viewer/analyzer.&lt;br/&gt;Version: %s&lt;br/&gt;Developed for &lt;a href=&quot;https://ntkpribor.ru/&quot;&gt;&amp;laquo;NTK Priborenergo&amp;raquo;, Ltd.&lt;/a&gt;&lt;br/&gt;&lt;sub&gt;&amp;copy; &lt;a href=&quot;https://www.eap.su&quot;&gt;TI_Eugene&lt;/a&gt;&lt;/sub&gt;</source>
<translation type="obsolete">Просмотрщик/анализатор comtrade на базе Qt.&lt;br/&gt;Версия: %s&lt;/br&gt;Разработано для &lt;a href=&quot;https://ntkpribor.ru/&quot;&gt;ООО &amp;laquo;НТК Приборэнерго&amp;raquo;&lt;/a&gt;&lt;br/&gt;&amp;copy; &lt;a href=&quot;https://www.eap.su&quot;&gt;TI_Eugene&lt;/a&gt;&lt;/sub&gt;</translation>
</message>
<message>
<location filename="../mainwindow.py" line="133"/>
<location filename="../mainwindow.py" line="135"/>
<source>Qt powered comtrade viewer/analyzer, version %s&lt;br/&gt;</source>
<translation>Просмотрщик/анализатор comtrade на базе Qt, версия %s&lt;br/&gt;</translation>
</message>
<message>
<location filename="../mainwindow.py" line="133"/>
<location filename="../mainwindow.py" line="135"/>
<source>Developed for &lt;a href=&quot;https://ntkpribor.ru/&quot;&gt;&amp;laquo;NTK Priborenergo&amp;raquo;, Ltd.&lt;/a&gt;&lt;br/&gt;</source>
<translation>Разработано для &lt;a href=&quot;https://ntkpribor.ru/&quot;&gt;ООО &amp;laquo;НТК Приборэнерго&amp;raquo;&lt;/a&gt;&lt;br/&gt;</translation>
</message>
Expand Down Expand Up @@ -783,6 +778,22 @@ Station ID: %s, Station name: %s</source>
<translation>Печать указок</translation>
</message>
</context>
<context>
<name>PtrLabelPR</name>
<message>
<location filename="../sig/widget/top.py" line="77"/>
<source>PR</source>
<translation>ПД</translation>
</message>
</context>
<context>
<name>PtrLabelSC</name>
<message>
<location filename="../sig/widget/top.py" line="63"/>
<source>SC</source>
<translation>КЗ</translation>
</message>
</context>
<context>
<name>SCPtr</name>
<message>
Expand Down
4 changes: 2 additions & 2 deletions iosc/sig/widget/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, parent: 'TimeAxisPlot'):
self._oscwin.signal_ptr_moved_sc.connect(self._update_ptr)

def _mk_text(self, x: float):
return "SC: %.2f" % x
return "%s: %.2f" % (self.tr("SC"), x)


class PtrLabelPR(__PtrLabel):
Expand All @@ -74,7 +74,7 @@ def __init__(self, parent: 'TimeAxisPlot'):
self._oscwin.signal_ptr_moved_pr.connect(self._update_ptr)

def _mk_text(self, x: float):
return "PR: %.2f" % x
return "%s: %.2f" % (self.tr("PR"), x)


class PtrLabelTmp(__PtrLabel):
Expand Down

0 comments on commit 8962a46

Please sign in to comment.