From bf661eb4b129185e8b944146d8d295252c3dabbe Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Fri, 17 Apr 2020 11:30:33 +0200
Subject: [PATCH] =?UTF-8?q?Dob=C5=99ichovice:=20Je=C5=A1t=C4=9B=20trocha?=
 =?UTF-8?q?=20=C4=8De=C5=A1tiny?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/templates/main.html | 4 ++--
 app/zoom.py             | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/templates/main.html b/app/templates/main.html
index 3539863..0c5852a 100644
--- a/app/templates/main.html
+++ b/app/templates/main.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-	<title>MFF Zoom Schedule</title>
+	<title>Zoomový rozvrh ZŠ Dobřichovice</title>
 	<link rel=stylesheet href="{{ url_for('static', filename='mffzoom.css') }}?v=1" type='text/css' media=all>
 </head>
 <body>
@@ -18,7 +18,7 @@
 		<input type=submit name=submit value="Odeslat">
 	</form>
 
-	<h2>Schedule for {{ g.dow }} {{ g.date }}</h2>
+	<h2>Rozvrh na {{ g.dow }} {{ g.date }}</h2>
 
 	<div id=heading>
 {% for r in g.room_boxes %}
diff --git a/app/zoom.py b/app/zoom.py
index 858a6c3..6af1e7a 100644
--- a/app/zoom.py
+++ b/app/zoom.py
@@ -7,6 +7,7 @@ from datetime import datetime, timedelta
 import sys
 import dateutil
 import dateutil.tz
+import locale
 
 ### Flask app object ###
 
@@ -15,6 +16,8 @@ app.config.from_pyfile('config.py')
 app.jinja_env.lstrip_blocks = True
 app.jinja_env.trim_blocks = True
 
+locale.setlocale(locale.LC_TIME, 'cs_CZ')
+
 ### Database connection ###
 
 db_connection = None
-- 
GitLab