Skip to content

Commit

Permalink
Add greek translations for party names and abbreviations
Browse files Browse the repository at this point in the history
  • Loading branch information
stesiam committed Nov 4, 2024
1 parent 0e62cd9 commit 6ea6ade
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
21 changes: 12 additions & 9 deletions app/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ ui <- add_cookie_handlers(
)
)
),
tags$th(i18n$t("Niki"),
tags$th(i18n$t("Victory"),
tags$div(class = "established",
tags$div(
icon("user-tie")
Expand Down Expand Up @@ -341,7 +341,7 @@ ui <- add_cookie_handlers(
)
)
),
tags$th(i18n$t("Foni Logikis"),
tags$th(i18n$t("Voice of Reason"),
tags$div(class = "established",
tags$div(
icon("user-tie")
Expand Down Expand Up @@ -496,12 +496,15 @@ observeEvent(input$selected_language, {

data = reactive({
raw_data = data.frame(
"Party" = c("ND", "SYRIZA", "PASOK","KKE","Ellisi", "Niki", "Plefsi",
"Mera", "Other1", "Other2", "Foni Logikis", "Nea Aristera"),
"FullParty" = c("New Democracy", "Coalition of the Radical Left", "Panhellenic Socialistic Movement",
"Communist Party of Greece", "Greek Solution", "Victory", "Course of Freedom",
"Mera25 - DieM25", "Other Party #1", "Other Party #2",
"Voice of Reason", "New Left"),
"Party" = c(i18n$t("ND"), i18n$t("SYRIZA"), i18n$t("PASOK"), i18n$t("KKE"),
i18n$t("Ellisi"), i18n$t("Niki"), i18n$t("Plefsi"),
i18n$t("MeRA25"), i18n$t("Other1"), i18n$t("Other2"),
i18n$t("Foni"), i18n$t("NAR")),
"FullParty" = c(i18n$t("New Democracy"), i18n$t("Coalition of the Radical Left"), i18n$t("Panhellenic Socialistic Movement"),
i18n$t("Communist Party of Greece"), i18n$t("Greek Solution"), i18n$t("Victory"),
i18n$t("Course of Freedom"),
i18n$t("MeRA25"), i18n$t("Other Party #1"), i18n$t("Other Party #2"),
i18n$t("Voice of Reason"), i18n$t("New Left")),
"Perc" = as.numeric(c(input$nd_pct, input$syriza_pct, input$pasok_pct, input$kke_pct,
input$ellisi_pct, input$niki_pct, input$plefsi_pct, input$mera25_pct,
input$other1_pct, input$other2_pct, input$foni_pct, input$nar_pct)),
Expand Down Expand Up @@ -622,7 +625,7 @@ observeEvent(input$selected_language, {
y = Seats,
label = FullParty,
color = col),
name = "Representatives",
name = i18n$t("Representatives"),
showInLegend = TRUE,
size = "125%",
center = list("50%", "75%"),
Expand Down
22 changes: 17 additions & 5 deletions app/www/translations/translation_el.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,28 @@ Party,Κομμα
Percentage,Ποσοστο
Seats,Εδρες
New Democracy,Nέα Δημοκρατία
SYRIZA,ΣΥΡΙΖΑ
PASOK,ΠΑΣΟΚ
KKE,ΚΚΕ
Coalition of the Radical Left,Συνασπισμός Ριζοσπαστικής Αριστεράς
Panhellenic Socialistic Movement,Πανελλήνιο Σοσιαλιστικό Κίνημα
Communist Party of Greece,Κομμουνιστικό Κόμμα Ελλάδας
Greek Solution,Ελληνική Λύση
Niki,Νίκη
Victory,Νίκη
Course of Freedom,Πλεύση Ελευθερίας
Foni Logikis,Φωνή Λογικής
Voice of Reason,Φωνή Λογικής
MeRA25,ΜέΡΑ25
New Left,Νέα Αριστερά
Other Party #1,Άλλο κόμμα #1
Other Party #2,Άλλο κόμμα #2
ND,ΝΔ
SYRIZA,ΣΥΡΙΖΑ
PASOK,ΠΑΣΟΚ
KKE,ΚΚΕ
Ellisi,Λύση
Plefsi,Πλεύση
Other1,Άλλο Α
Other2,Άλλο Β
Foni,Φωνή
NAR,ΝΑΡ
Niki,Νίκη
Choose Electoral System: ,Εκλογικό σύστημα:
Bonus 40 Seats (2007-2009),Μπόνους 40 εδρών (2007-2009)
Bonus 50 Seats (2012-2019),Μπόνους 50 εδρών (2012-2019)
Expand Down Expand Up @@ -51,3 +62,4 @@ Parliament Overview,Επισκόπηση Βουλής
Parties below 3% plus unallocated percentage,Κόμματα κάτω του 3% συν ακατανέμητα
Percentage Difference,Ποσοστιαία Διαφορά
Between 1st and 2nd party,Μεταξύ πρώτου και δεύτερου κόμματος
Representatives,Βουλευτές

0 comments on commit 6ea6ade

Please sign in to comment.