From 6889a40a21f6513bba024aa657fad145c176475b Mon Sep 17 00:00:00 2001 From: Jim Easterbrook Date: Tue, 16 May 2023 15:59:26 +0100 Subject: [PATCH] Enable localisation of time adjustment display --- src/lang/ca/photini.ts | 15 +++++++++++++++ src/lang/cs/photini.ts | 15 +++++++++++++++ src/lang/de/photini.ts | 15 +++++++++++++++ src/lang/en/photini.ts | 15 +++++++++++++++ src/lang/es/photini.ts | 15 +++++++++++++++ src/lang/fr/photini.ts | 15 +++++++++++++++ src/lang/it/photini.ts | 15 +++++++++++++++ src/lang/ko/photini.ts | 15 +++++++++++++++ src/lang/nb/photini.ts | 15 +++++++++++++++ src/lang/pl/photini.ts | 15 +++++++++++++++ src/lang/templates/qt/photini.ts | 15 +++++++++++++++ src/photini/__init__.py | 2 +- src/photini/technical.py | 8 +++++++- 13 files changed, 173 insertions(+), 2 deletions(-) diff --git a/src/lang/ca/photini.ts b/src/lang/ca/photini.ts index 69d081f4..d3fb0b26 100644 --- a/src/lang/ca/photini.ts +++ b/src/lang/ca/photini.ts @@ -1736,6 +1736,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/cs/photini.ts b/src/lang/cs/photini.ts index 88dc3765..7f026ee9 100644 --- a/src/lang/cs/photini.ts +++ b/src/lang/cs/photini.ts @@ -1748,6 +1748,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/de/photini.ts b/src/lang/de/photini.ts index 5a6b192c..15b3c42e 100644 --- a/src/lang/de/photini.ts +++ b/src/lang/de/photini.ts @@ -1780,6 +1780,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/en/photini.ts b/src/lang/en/photini.ts index 350a40fb..15a0c96c 100644 --- a/src/lang/en/photini.ts +++ b/src/lang/en/photini.ts @@ -1680,6 +1680,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/es/photini.ts b/src/lang/es/photini.ts index f24cabdb..fcb86d4f 100644 --- a/src/lang/es/photini.ts +++ b/src/lang/es/photini.ts @@ -1692,6 +1692,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/fr/photini.ts b/src/lang/fr/photini.ts index 5c0fc1b8..255d0726 100644 --- a/src/lang/fr/photini.ts +++ b/src/lang/fr/photini.ts @@ -1788,6 +1788,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/it/photini.ts b/src/lang/it/photini.ts index 1386d3fe..9b3200c4 100644 --- a/src/lang/it/photini.ts +++ b/src/lang/it/photini.ts @@ -1680,6 +1680,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/ko/photini.ts b/src/lang/ko/photini.ts index 01838ea3..c1145138 100644 --- a/src/lang/ko/photini.ts +++ b/src/lang/ko/photini.ts @@ -1676,6 +1676,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/nb/photini.ts b/src/lang/nb/photini.ts index cad77443..4dd1e5e0 100644 --- a/src/lang/nb/photini.ts +++ b/src/lang/nb/photini.ts @@ -1728,6 +1728,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/pl/photini.ts b/src/lang/pl/photini.ts index eb72b919..c8ca67b3 100644 --- a/src/lang/pl/photini.ts +++ b/src/lang/pl/photini.ts @@ -1692,6 +1692,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/lang/templates/qt/photini.ts b/src/lang/templates/qt/photini.ts index df56f11f..c769590c 100644 --- a/src/lang/templates/qt/photini.ts +++ b/src/lang/templates/qt/photini.ts @@ -1676,6 +1676,21 @@ millimetres focal length + + h + single letter abbreviation of "hours" + + + + m + single letter abbreviation of "minutes" + + + + s + single letter abbreviation of "seconds" + + UploaderTabsAll diff --git a/src/photini/__init__.py b/src/photini/__init__.py index 250886e5..2abfbec4 100644 --- a/src/photini/__init__.py +++ b/src/photini/__init__.py @@ -1,4 +1,4 @@ """Full documentation is at https://photini.readthedocs.io/""" __version__ = '2023.5.0' -build = '2702 (be476c9)' +build = '2703 (4daa3f7)' diff --git a/src/photini/technical.py b/src/photini/technical.py index 81db8267..5c30e91c 100644 --- a/src/photini/technical.py +++ b/src/photini/technical.py @@ -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