From e96ef14e3e92677317412936ad23a1384d78095e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Wed, 14 Dec 2022 08:15:47 -0300 Subject: [PATCH] =?UTF-8?q?locale=20para=20internacionaliza=C3=A7=C3=A3o?= =?UTF-8?q?=20(tradu=C3=A7=C3=A3o)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula167.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 aula167.py diff --git a/aula167.py b/aula167.py new file mode 100644 index 0000000..f83ce86 --- /dev/null +++ b/aula167.py @@ -0,0 +1,9 @@ +# locale para internacionalização (tradução) +# https://docs.python.org/3/library/locale.html +# https://learn.microsoft.com/fr-fr/powershell/module/international/get-winsystemlocale?view=windowsserver2022-ps&viewFallbackFrom=win10-ps +import calendar +import locale + +locale.setlocale(locale.LC_ALL, '') + +print(calendar.calendar(2022))