Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation for Italian language. Translate also I'm an early, I'm an night. #23 #59

Merged
merged 2 commits into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)},
Expand Down
45 changes: 43 additions & 2 deletions translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -67,6 +69,45 @@
"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ì",
"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",
"I am an Early": "Sono un mattiniero 🐤",
"I am a Night": "Sono un notturno 🦉"
}
}