Skip to content

Commit

Permalink
Enable localisation of time adjustment display
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-easterbrook committed May 16, 2023
1 parent 4daa3f7 commit 6889a40
Show file tree
Hide file tree
Showing 13 changed files with 173 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/lang/ca/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/cs/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/de/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/en/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,21 @@
<comment>millimetres focal length</comment>
<translation></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/es/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/fr/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/it/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/ko/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/nb/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1728,6 +1728,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/pl/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/templates/qt/photini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,21 @@
<comment>millimetres focal length</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>h</source>
<comment>single letter abbreviation of &quot;hours&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>m</source>
<comment>single letter abbreviation of &quot;minutes&quot;</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>s</source>
<comment>single letter abbreviation of &quot;seconds&quot;</comment>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>UploaderTabsAll</name>
Expand Down
2 changes: 1 addition & 1 deletion src/photini/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Full documentation is at https://photini.readthedocs.io/"""

__version__ = '2023.5.0'
build = '2702 (be476c9)'
build = '2703 (4daa3f7)'
8 changes: 7 additions & 1 deletion src/photini/technical.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,13 @@ def __init__(self, *arg, **kw):
self.layout().setSpacing(0)
# offset value
self.offset = QtWidgets.QTimeEdit()
self.offset.setDisplayFormat("'h:'hh 'm:'mm 's:'ss")
self.offset.setDisplayFormat("'{}:'HH' {}:'mm' {}:'ss".format(
translate('TechnicalTab', 'h',
'single letter abbreviation of "hours"'),
translate('TechnicalTab', 'm',
'single letter abbreviation of "minutes"'),
translate('TechnicalTab', 's',
'single letter abbreviation of "seconds"')))
self.layout().addWidget(self.offset)
self.layout().addSpacing(spacing)
# time zone
Expand Down

0 comments on commit 6889a40

Please sign in to comment.