]> git.plutz.net Git - confetti/blob - categories/l10n.sh
ical export using cgilite
[confetti] / categories / l10n.sh
1 # Copyright 2014, 2015, 2016, 2019, 2021 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
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.
9
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.
14
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/>. 
17
18 l10n(){
19   local word
20   [ $# -eq 0 ] && read -r word || word="$*"
21   case $word in
22     cat_remove) printf %s "&#45;";;
23     cat_add) printf %s "+";;
24     cat_newlabel) printf %s "neue Kategorie";;
25     cat_update) printf %s "Zuweisungen übernehmen";;
26     categories_label) printf %s "Kategorien";;
27
28     *) l10n_global "$word";;
29   esac
30 }