translate month and day
This commit is contained in:
parent
c41e8930d3
commit
8426477e88
22
lang/en.json
22
lang/en.json
@ -69,5 +69,25 @@
|
||||
"sysinfo_panel_th_value": "Value",
|
||||
"sysinfo_panel_td_ipaddr": "IP Address",
|
||||
"js_sysinfo_restart_confirmation": "Are you sure?",
|
||||
"js_sysinfo_restart_loading": "Restarting, please wait..."
|
||||
"js_sysinfo_restart_loading": "Restarting, please wait...",
|
||||
|
||||
"basic_day_1": "Monday",
|
||||
"basic_day_2": "Tuesday",
|
||||
"basic_day_3": "Wednesday",
|
||||
"basic_day_4": "Thursday",
|
||||
"basic_day_5": "Friday",
|
||||
"basic_day_6": "Saturday",
|
||||
"basic_day_7": "Sunday",
|
||||
"basic_month_1": "January",
|
||||
"basic_month_2": "February",
|
||||
"basic_month_3": "March",
|
||||
"basic_month_4": "April",
|
||||
"basic_month_5": "May",
|
||||
"basic_month_6": "June",
|
||||
"basic_month_7": "July",
|
||||
"basic_month_8": "August",
|
||||
"basic_month_9": "September",
|
||||
"basic_month_10": "October",
|
||||
"basic_month_11": "November",
|
||||
"basic_month_12": "Décember"
|
||||
}
|
||||
|
||||
22
lang/fr.json
22
lang/fr.json
@ -69,5 +69,25 @@
|
||||
"sysinfo_panel_th_value": "Valeur",
|
||||
"sysinfo_panel_td_ipaddr": "Adresse IP",
|
||||
"js_sysinfo_restart_confirmation": "Êtes-vous sûr ?",
|
||||
"js_sysinfo_restart_loading": "Redémarrage en cours, veuillez patienter..."
|
||||
"js_sysinfo_restart_loading": "Redémarrage en cours, veuillez patienter...",
|
||||
|
||||
"basic_day_1": "Lundi",
|
||||
"basic_day_2": "Mardi",
|
||||
"basic_day_3": "Mercredi",
|
||||
"basic_day_4": "Jeudi",
|
||||
"basic_day_5": "Vendredi",
|
||||
"basic_day_6": "Samedi",
|
||||
"basic_day_7": "Dimanche",
|
||||
"basic_month_1": "Janvier",
|
||||
"basic_month_2": "Février",
|
||||
"basic_month_3": "Mars",
|
||||
"basic_month_4": "Avril",
|
||||
"basic_month_5": "Mai",
|
||||
"basic_month_6": "Juin",
|
||||
"basic_month_7": "Juillet",
|
||||
"basic_month_8": "Août",
|
||||
"basic_month_9": "Septembre",
|
||||
"basic_month_10": "Octobre",
|
||||
"basic_month_11": "Novembre",
|
||||
"basic_month_12": "Décembre"
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ class PlayerController:
|
||||
)
|
||||
|
||||
def player_default(self):
|
||||
return render_template('player/default.jinja.html', ipaddr=get_ip_address())
|
||||
return render_template('player/default.jinja.html', ipaddr=get_ip_address(), l=self._lang_dict)
|
||||
|
||||
def player_playlist(self):
|
||||
return jsonify(self._slide_manager.to_dict(self._slide_manager.get_enabled_slides()))
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
var month = date.getMonth();
|
||||
var year = date.getFullYear();
|
||||
var day = date.getDay();
|
||||
var dayLabels = ["Dimanche", "Lundi", "Mardis", "Mercredi", "Jeudi", "Vendredi", "Samedi"];
|
||||
var monthLabels = ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"];
|
||||
var dayLabels = ["{{l.basic_day_7}}", "{{l.basic_day_1}}", "{{l.basic_day_2}}", "{{l.basic_day_3}}", "{{l.basic_day_4}}", "{{l.basic_day_5}}", "{{l.basic_day_6}}"];
|
||||
var monthLabels = ["{{l.basic_month_1}}", "{{l.basic_month_2}}", "{{l.basic_month_3}}", "{{l.basic_month_4}}", "{{l.basic_month_5}}", "{{l.basic_month_6}}", "{{l.basic_month_7}}", "{{l.basic_month_8}}", "{{l.basic_month_9}}", "{{l.basic_month_10}}", "{{l.basic_month_11}}", "{{l.basic_month_12}}"];
|
||||
|
||||
var timeLabel = hours + ":" + minutes;
|
||||
var dateLabel = dayLabels[day] + " " + dayInMonth + " " + monthLabels[month] + " " + year;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user