mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove left overs from time zone designation in Windows/Spanish
We remove the time zone designation when showing times (as all our times have no timezone). But the Spanish localization on Windows shows the time zone in parenthesis - and the existing code then left those parenthesis behind which looked very strange. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3aaf8b1f5a
commit
158a853d97
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ QString uiLanguage(QLocale *callerLoc)
|
|||
dateFormat = loc.dateFormat(QLocale::LongFormat);
|
||||
dateFormat.replace("dddd,", "ddd").replace("dddd", "ddd").replace("MMMM", "MMM");
|
||||
timeFormat = loc.timeFormat();
|
||||
timeFormat.replace(" t", "").replace("t", "").replace("hh", "h").replace("HH", "H");
|
||||
timeFormat.replace("(t)", "").replace(" t", "").replace("t", "").replace("hh", "h").replace("HH", "H");
|
||||
return uiLang;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue