From c66c70046d25f67db5cb9376fa59bac85d2713bc Mon Sep 17 00:00:00 2001 From: Kylmakalle Date: Sun, 9 Mar 2025 16:46:52 +0200 Subject: [PATCH] Nitpicks --- Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings | 2 +- submodules/TelegramStringFormatting/Sources/DateFormat.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings b/Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings index 3108e645a3..313c307e60 100644 --- a/Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings +++ b/Swiftgram/SGStrings/Strings/en.lproj/SGLocalizable.strings @@ -139,7 +139,7 @@ "Settings.showChannelBottomButton" = "Channel Bottom Panel"; -"Settings.secondsInMessages" = "Show seconds in messages"; +"Settings.secondsInMessages" = "Seconds in Messages"; "Settings.CallConfirmation" = "Call Confirmation"; "Settings.CallConfirmation.Notice" = "Swiftgram will ask for your confirmation before making a call."; diff --git a/submodules/TelegramStringFormatting/Sources/DateFormat.swift b/submodules/TelegramStringFormatting/Sources/DateFormat.swift index 8d84ef29c7..a2d537a081 100644 --- a/submodules/TelegramStringFormatting/Sources/DateFormat.swift +++ b/submodules/TelegramStringFormatting/Sources/DateFormat.swift @@ -227,6 +227,7 @@ public func stringForDateWithoutDayAndMonth(date: Date, timeZone: TimeZone? = Ti return formatter.string(from: date) } +// MARK: Swiftgram public func stringForShortTimestampWithSeconds(hours: Int32, minutes: Int32, seconds: Int32, dateTimeFormat: PresentationDateTimeFormat) -> String { switch dateTimeFormat.timeFormat { case .regular: @@ -261,3 +262,4 @@ public func stringForShortTimestampWithSeconds(hours: Int32, minutes: Int32, sec return String(format: "%02d:%02d:%02d", arguments: [Int(hours), Int(minutes), Int(seconds)]) } } +//