Skip to content

Commit

Permalink
Added setlocale to set default locale to make strftime localized on W…
Browse files Browse the repository at this point in the history
…indows.
  • Loading branch information
w9cf committed Feb 1, 2023
1 parent 06c24dc commit b541b5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cwsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,8 @@ def close(self):


if __name__ == "__main__":
import locale
locale.setlocale(locale.LC_ALL,"")
app = QApplication(sys.argv)
translator = QtCore.QTranslator()
if getattr(sys,'frozen',False):
Expand Down

0 comments on commit b541b5c

Please sign in to comment.