Skip to content

Commit

Permalink
Support exportToCSV option for toolbar localization #187 (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bethibande authored Jul 22, 2024
1 parent 1758aca commit 3145a3c
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class Toolbar {
private String exportToSVG;
private String exportToPNG;
private String exportToCSV;
private String menu;
private String selection;
private String selectionZoom;
Expand All @@ -14,6 +15,14 @@ public class Toolbar {
public Toolbar() {
}

public String getExportToCSV() {
return exportToCSV;
}

public void setExportToCSV(String exportToCSV) {
this.exportToCSV = exportToCSV;
}

public String getExportToSVG() {
return exportToSVG;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public class ToolbarBuilder {
private String exportToSVG;
private String exportToPNG;
private String exportToCSV;
private String menu;
private String selection;
private String selectionZoom;
Expand All @@ -20,6 +21,11 @@ public static ToolbarBuilder get() {
return new ToolbarBuilder();
}

public ToolbarBuilder withExportToCSV(String exportToCSV) {
this.exportToCSV = exportToCSV;
return this;
}

public ToolbarBuilder withExportToSVG(String exportToSVG) {
this.exportToSVG = exportToSVG;
return this;
Expand Down Expand Up @@ -67,6 +73,7 @@ public ToolbarBuilder withReset(String reset) {

public Toolbar build() {
Toolbar toolbar = new Toolbar();
toolbar.setExportToCSV(exportToCSV);
toolbar.setExportToSVG(exportToSVG);
toolbar.setExportToPNG(exportToPNG);
toolbar.setMenu(menu);
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "SVG speichern",
"exportToPNG": "PNG speichern",
"exportToCSV": "CSV speichern",
"menu": "Menü",
"selection": "Auswahl",
"selectionZoom": "Auswahl vergrößern",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Λήψη SVG",
"exportToPNG": "Λήψη PNG",
"exportToCSV": "Λήψη CSV",
"menu": "Menu",
"selection": "Επιλογή",
"selectionZoom": "Μεγένθυση βάση επιλογής",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Download SVG",
"exportToPNG": "Download PNG",
"exportToCSV": "Download CSV",
"menu": "Menu",
"selection": "Selection",
"selectionZoom": "Selection Zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Descargar SVG",
"exportToPNG": "Descargar PNG",
"exportToCSV": "Descargar CSV",
"menu": "Menu",
"selection": "Seleccionar",
"selectionZoom": "Seleccionar Zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Lataa SVG",
"exportToPNG": "Lataa PNG",
"exportToCSV": "Lataa CSV",
"menu": "Valikko",
"selection": "Valinta",
"selectionZoom": "Valinnan zoomaus",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Télécharger au format SVG",
"exportToPNG": "Télécharger au format PNG",
"exportToCSV": "Télécharger au format CSV",
"menu": "Menu",
"selection": "Sélection",
"selectionZoom": "Sélection et zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "निर्यात SVG",
"exportToPNG": "निर्यात PNG",
"exportToCSV": "निर्यात CSV",
"menu": "सूची",
"selection": "चयन",
"selectionZoom": "ज़ूम करना",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Preuzmi SVG",
"exportToPNG": "Preuzmi PNG",
"exportToCSV": "Preuzmi CSV",
"menu": "Izbornik",
"selection": "Odabir",
"selectionZoom": "Odabirno povećanje",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/hy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Բեռնել SVG",
"exportToPNG": "Բեռնել PNG",
"exportToCSV": "Բեռնել CSV",
"menu": "Մենյու",
"selection": "Ընտրված",
"selectionZoom": "Ընտրված հատվածի խոշորացում",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Unduh SVG",
"exportToPNG": "Unduh PNG",
"exportToCSV": "Unduh CSV",
"menu": "Menu",
"selection": "Pilihan",
"selectionZoom": "Perbesar Pilihan",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Scarica SVG",
"exportToPNG": "Scarica PNG",
"exportToCSV": "Scarica CSV",
"menu": "Menu",
"selection": "Selezione",
"selectionZoom": "Seleziona Zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "SVG 다운로드",
"exportToPNG": "PNG 다운로드",
"exportToCSV": "CSV 다운로드",
"menu": "메뉴",
"selection": "선택",
"selectionZoom": "선택영역 확대",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Baixar SVG",
"exportToPNG": "Baixar PNG",
"exportToCSV": "Baixar CSV",
"menu": "Menu",
"selection": "Selecionar",
"selectionZoom": "Selecionar Zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Сохранить SVG",
"exportToPNG": "Сохранить PNG",
"exportToCSV": "Сохранить CSV",
"menu": "Меню",
"selection": "Выбор",
"selectionZoom": "Выбор с увеличением",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Ladda SVG",
"exportToPNG": "Ladda PNG",
"exportToCSV": "Ladda CSV",
"menu": "Meny",
"selection": "Selektion",
"selectionZoom": "Val av zoom",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "SVG İndir",
"exportToPNG": "PNG İndir",
"exportToCSV": "CSV İndir",
"menu": "Menü",
"selection": "Seçim",
"selectionZoom": "Seçim Yakınlaştır",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locales/ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"toolbar": {
"exportToSVG": "Зберегти SVG",
"exportToPNG": "Зберегти PNG",
"exportToCSV": "Зберегти CSV",
"menu": "Меню",
"selection": "Вибір",
"selectionZoom": "Вибір із збільшенням",
Expand Down

0 comments on commit 3145a3c

Please sign in to comment.