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:
Dirk Hohndel 2014-08-06 10:23:33 -07:00
parent 3aaf8b1f5a
commit 158a853d97

View file

@ -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;
}