1 # Copyright 2014, 2016, 2019, 2021 Paul Hänsch
3 # This file is part of Confetti.
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti. If not, see <http://www.gnu.org/licenses/>.
20 [ $# -eq 0 ] && read -r word || word="$*"
27 cards) printf %s "Teil­neh­mende";;
28 courses) printf %s "Kurse";;
29 ledgers) printf %s "Bei­trä­ge";;
32 PHOTO) printf %s "Foto";;
33 LOGO) printf %s "Logo";;
34 FN) printf %s "Voller Name";;
36 n_pre) printf %s "Titel";;
37 n_first) printf %s "Vorname";;
38 n_middle) printf %s "Mittel­namen";;
39 n_last) printf %s "Nachname";;
40 n_post) printf %s "Zusätze";;
41 NICKNAME) printf %s "Spitz­name";;
42 SOUND) printf %s "Aus­sprache";;
43 GENDER) printf %s "Ge­schlecht";;
44 KIND) printf %s "Typ";;
45 TITLE) printf %s "Beruf";;
46 ROLE) printf %s "Position";;
47 ORG) printf %s "Orga­ni­sation";;
48 MEMBER) printf %s "Mitglied";;
49 CATEGORIES) printf %s "Kategorien";;
50 ANNIVERSARY) printf %s "Jubiläum";;
51 BDAY) printf %s "Geburtstag";;
52 EMAIL) printf %s "E-Mail";;
53 TEL) printf %s "Telefon";;
54 teltype) printf %s "Anschluss­typ:";;
55 TYPE=HOME) printf %s "Privat";;
56 TYPE=WORK) printf %s "Geschäft­lich";;
57 TYPE=CELL) printf %s "Mobil";;
58 TYPE=FAX) printf %s "Fax";;
59 IMPP) printf %s "Chat";;
60 ADR) printf %s "Anschrift";;
61 URL) printf %s "Webseite";;
62 LANG) printf %s "Sprache";;
63 NOTE) printf %s "Notiz";;
64 RELATED) printf %s "Kontakte";;
67 SUMMARY) printf "Bezeichnung";;
68 COMMENT) printf "Kommentar";;
69 DTSTART) printf "Beginn";;
70 DURATION) printf "Dauer";;
71 RRULE) printf "Regelmäßigkeit";;
72 DAILY) printf "Tage";;
73 WEEKLY) printf "Wochen";;
74 MONTHLY) printf "Monate";;
75 YEARLY) printf "Jahre";;
76 sDAILY) printf "Täglich";;
77 sWEEKLY) printf "Wöchentlich";;
78 sMONTHLY) printf "Monatlich";;
79 sYEARLY) printf "Jährlich";;
82 year) printf %s "Jahr";;
83 month) printf %s "Monat";;
84 day) printf %s "Tag";;
85 edit) printf %s "Bearbeiten";;
86 edit_categories) printf %s "Kategorien Bearbeiten";;
87 vcf_export) printf %s "Vcard Exportieren";;
88 ledger) printf %s "Buchungen";;
89 control) printf %s "Aktionen";;
90 delete) printf %s "entfernen";;
91 edit_update) printf %s "Daten übernehmen";;
92 edit_cancel) printf %s "Abbrechen";;
93 edit_delete) printf %s "Eintrag löschen";;
94 edit_addfieldtext) printf %s "Neues Feld";;
95 edit_addfield) printf %s "+";;
96 edit_deletefield) printf %s "X";;
98 filter_label) printf %s "Filter";;
99 filter_item) printf %s "Eingrenzung nach";;
100 filter_placeholder) printf %s "Begriffe zur Eingrenzung eingeben";;
101 filter_type) printf %s "Filter­typ";;
102 filter_order) printf %s "Sortie­rung";;
103 filter_any) printf %s "Alles";;
104 filter_name) printf %s "Name";;
105 filter_firstname) printf %s "Vor­name";;
106 filter_lastname) printf %s "Nach­name";;
107 filter_street) printf %s "Straße";;
108 filter_zip) printf %s "PLZ.";;
109 filter_TEL) printf %s "Tele­fon";;
110 filter_BDAY) printf %s "Geburts­jahr";;
111 filter_bdate) printf %s "Geburts­datum";;
112 filter_course) printf %s "Kurs";;
113 filter_CATEGORIES) printf %s "Kate­go­rien";;
114 filter_more) printf %s "+ mehr Filter";;
115 filter_apply) printf %s "Filtern";;
116 filter_cancel) printf %s "Filter löschen";;
117 export_csv) printf %s "Liste als CSV-Datei";;
120 Ledgers) printf %s "Buchungslisten";;
121 '%i IBANs are unassigned') printf %s "%i IBANs sind nicht zugewiesen";;
122 'IBAN Assignments') printf %s "IBAN Zuweisung";;
123 'Assign IBANs') printf %s "IBANs Zuweisen";;
124 'Account') printf %s "Konto";;
126 'Accept Suggestions') printf %s "Vorschläge Akzeptieren";;
127 'Ignore Suggestions') printf %s "Vorschläge Ignorieren";;
128 'Submit Changes') printf %s "Änderungen Übernehmen";;
130 'Payments') printf %s "Zahlungen";;
131 'Date') printf %s "Datum";;
132 'Originator') printf %s "Auftraggeber";;
133 'Reference Text') printf %s "Verwendungszweck";;
134 'Amount') printf %s "Betrag";;
135 'Balance') printf %s "Kto.Stand";;
136 'Manual Record') printf %s "Manueller Eintrag";;
137 'Recur Monthly') printf %s "[strike monat­lich wie­der­holen]";;
138 'Credit Account') printf %s "Guthaben­konto";;
139 'Submit') printf %s "Eintragen";;
142 course_attendance) printf %s "Kurs­teil­nahme";;
143 vcf_seed_label) printf "Anmeld. Vorn. Nachn. Geb.Tag Geb.Monat Geb.Jahr Tel. Mobil () EMail () Notiz";;
144 '(unnamed course)') printf '(Unbe\302\255nannter Kurs)';;
146 gender_none) printf %s "keine Angabe";;
147 gender_female) printf %s "Weiblich";;
148 gender_male) printf %s "Männlich";;
149 gender_other) printf %s "Sonstiges";;
151 female) printf %s "♀";;
152 male) printf %s "♂";;
153 other) printf %s "⚥";;
154 none) printf %s "⚪";;
157 *) printf %s "$word";;
162 [ $# -eq 0 ] && read -r time || time="$*"
163 printf '%s\n' "$time" |sed -E '
164 s;Monday;Mon\­\;tag;g; s;Mon\.;Mo.;g;
165 s;Tuesday;Diens\­\;tag;g; s;Tue\.;Di.;g;
166 s;Wednesday;Mitt\­\;woch;g; s;Wed\.;Mi.;g;
167 s;Thursday;Don\­\;ners\­\;tag;g; s;Thu\.;Do.;g;
168 s;Friday;Frei\­\;tag;g; s;Fri\.;Fr.;g;
169 s;Saturday;Sams\­\;tag;g; s;Sat\.;Sa.;g;
170 s;Sunday;Sonn\­\;tag;g; s;Sun\.;So.;g;
172 s;January;Ja\­\;nu\­\;ar;g; s;Jan\.;Jan.;g;
173 s;February;Fe\­\;bru\­\;ar;g; s;Feb\.;Feb.;g;
174 s;March;März;g; s;Mar\.;Mär.;g;
175 s;April;April;g; s;Apr\.;Apr.;g;
176 s;May;Mai;g; s;May\.;Mai.;g;
177 s;June;Juni;g; s;Jun\.;Jun.;g;
178 s;July;Juli;g; s;Jul\.;Jul.;g;
179 s;August;Au\­\;gust;g; s;Aug\.;Aug.;g;
180 s;September;Sep\­\;tem\­\;ber;g; s;Sep\.;Sep.;g;
181 s;October;Ok\­\;to\­\;ber;g; s;Oct\.;Okt.;g;
182 s;November;No\­\;vem\­\;ber;g; s;Nov\.;Nov.;g;
183 s;December;De\­\;zem\­\;ber;g; s;Dec\.;Dez.;g;
188 [ $# -eq 0 ] && read -r date || date="$*"
191 *[0-9].*[0-9].*[0-9])
196 [ $y -lt 100 ] && y="$((y + 2000))"
197 date -d "$(printf '%04i-%02i-%02i' "$y" "$m" "$d")" +%F
199 *) date -d "$date" +%F