From 272871ad5c5e18466c20131f21deb9670658e6b8 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Sun, 16 Aug 2020 15:41:11 +0200 Subject: [PATCH 1/2] Translation for ITALIAN lang --- translation.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/translation.json b/translation.json index dca8002c..efe5cd70 100644 --- a/translation.json +++ b/translation.json @@ -68,5 +68,40 @@ "public repositories": "Public repositories", "private repository": "Private repository", "private repositories": "Private repositories" + }, + "it": { + "Monday": "Lunedì", + "Tuesday": "Martedì", + "Wednesday": "Mecoledì", + "Thursday": "Giovedì", + "Friday": "Venerdì", + "Saturday": "Sabato", + "Sunday": "Domenica", + "Morning": "Mattina", + "Daytime": "Giorno", + "Evening": "Pomeriggio", + "Night": "Notte", + "Languages": "Linguaggi di programmazione", + "Editors": "Editor di testo", + "operating system": "Sistema operativo", + "Projects": "Progetti", + "Timezone": "Fuso orario", + "Contributions in the year": "Contributi nell'ultimo anno", + "Used in GitHub's Storage": "Spazio di archiviazione di Github utilizzato", + "Opted to Hire": "Pronto per essere assunto", + "Not Opted to Hire": "Non disponibile per assunzioni/colloqui", + "Profile Views": "Visite al profilo", + "From Hello World I have written": "Dal mio primo Hello World ho scritto ", + "I am Most Productive on": "Sono piu' produttivo il", + "This Week I Spend My Time On": "Questa settimana ho speso il mio tempo su", + "I Mostly Code in": "Solitamente programmo in", + "Timeline": "Linea temporale", + "No Activity Tracked This Week": "Nessuna attività tracciata questa settimana", + "My GitHub Data": "I miei dati GitHub", + "Lines of code": "Linee di codice", + "public repository": "Repository pubblica", + "public repositories": "Repositories pubbliche", + "private repository": "Repository privata", + "private repositories": "Repositories private" } } \ No newline at end of file From 261727062a5949a10354084f45ea92ad640a777e Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Sun, 16 Aug 2020 15:45:07 +0200 Subject: [PATCH 2/2] Translate also I am an Early and I am a Night --- main.py | 5 +---- translation.json | 12 +++++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 3557f65a..d0d18a5e 100644 --- a/main.py +++ b/main.py @@ -245,10 +245,7 @@ def generate_commit_list(tz): sumAll = morning + daytime + evening + night sum_week = Sunday + Monday + Tuesday + Friday + Saturday + Wednesday + Thursday - if morning + daytime >= evening + night: - title = "I'm an Early 🐤" - else: - title = "I'm a Night 🦉" + title = translate['I am an Early'] if morning + daytime >= evening + night else translate['I am a Night'] one_day = [ {"name": "🌞 " + translate['Morning'], "text": str(morning) + " commits", "percent": round((morning / sumAll) * 100, 2)}, diff --git a/translation.json b/translation.json index efe5cd70..298839ef 100644 --- a/translation.json +++ b/translation.json @@ -32,7 +32,9 @@ "public repository": "référentiel public", "public repositories": "référentiels publics", "private repository": "référentiel privé", - "private repositories": "référentiels privés" + "private repositories": "référentiels privés", + "I am an Early": "Je suis un début 🐤", + "I am a Night": "Je suis une nuit 🦉" }, "en": { "Monday": "Monday", @@ -67,7 +69,9 @@ "public repository": "Public repository", "public repositories": "Public repositories", "private repository": "Private repository", - "private repositories": "Private repositories" + "private repositories": "Private repositories", + "I am an Early": "I'm an Early 🐤", + "I am a Night": "I'm a Night 🦉" }, "it": { "Monday": "Lunedì", @@ -102,6 +106,8 @@ "public repository": "Repository pubblica", "public repositories": "Repositories pubbliche", "private repository": "Repository privata", - "private repositories": "Repositories private" + "private repositories": "Repositories private", + "I am an Early": "Sono un mattiniero 🐤", + "I am a Night": "Sono un notturno 🦉" } } \ No newline at end of file