cookutils annotate modules/langdesc @ rev 1152
web/cooker.cgi: add browse/view toggle
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 20 10:51:40 2023 +0000 (19 months ago) |
parents | |
children |
rev | line source |
---|---|
al@1090 | 1 #!/bin/sh |
al@1090 | 2 # |
al@1090 | 3 # langdesc - module of the SliTaz Cook |
al@1090 | 4 # Copyright (C) SliTaz GNU/Linux - GNU GPL v3 |
al@1090 | 5 # |
al@1090 | 6 |
al@1090 | 7 # Information source: iso-codes package |
al@1090 | 8 |
al@1090 | 9 langdesc() { |
al@1090 | 10 local i |
al@1090 | 11 case $1 in |
al@1090 | 12 af) i='Afrikaans';; |
al@1090 | 13 am) i='Amharic';; |
al@1090 | 14 ar) i='Arabic';; |
al@1090 | 15 ast) i='Asturian';; |
al@1090 | 16 az) i='Azerbaijani';; |
al@1090 | 17 be) i='Belarusian';; |
al@1090 | 18 be@latin) i='Belarusian (Latin script)';; |
al@1090 | 19 bg) i='Bulgarian';; |
al@1090 | 20 bn) i='Bengali';; |
al@1090 | 21 bn_IN) i='Bengali (India)';; |
al@1090 | 22 br) i='Breton';; |
al@1090 | 23 bs) i='Bosnian';; |
al@1090 | 24 ca) i='Catalan';; |
al@1090 | 25 da) i='Danish';; |
al@1090 | 26 de) i='German';; |
al@1090 | 27 el) i='Greek';; |
al@1090 | 28 en) i='English';; |
al@1090 | 29 en_GB) i='English (British)';; |
al@1090 | 30 en_ZA) i='English (South African)';; |
al@1090 | 31 eo) i='Esperanto';; |
al@1090 | 32 es) i='Spanish';; |
al@1090 | 33 et) i='Estonian';; |
al@1090 | 34 eu) i='Basque';; |
al@1090 | 35 fa) i='Persian';; |
al@1090 | 36 fi) i='Finnish';; |
al@1090 | 37 fr) i='French';; |
al@1090 | 38 ga) i='Irish';; |
al@1090 | 39 gd) i='Scottish Gaelic';; |
al@1090 | 40 gl) i='Galician';; |
al@1090 | 41 gu) i='Gujarati';; |
al@1090 | 42 he) i='Hebrew';; |
al@1090 | 43 hi) i='Hindi';; |
al@1090 | 44 hr) i='Croatian';; |
al@1090 | 45 hu) i='Hungarian';; |
al@1090 | 46 hy) i='Armenian';; |
al@1090 | 47 ia) i='Interlingua';; |
al@1090 | 48 id) i='Indonesian';; |
al@1090 | 49 is) i='Icelandic';; |
al@1090 | 50 it) i='Italian';; |
al@1090 | 51 ja) i='Japanese';; |
al@1090 | 52 ka) i='Georgian';; |
al@1090 | 53 kk) i='Kazakh';; |
al@1090 | 54 kn) i='Kannada';; |
al@1090 | 55 ko) i='Korean';; |
al@1090 | 56 ku) i='Kurdish';; |
al@1090 | 57 ky) i='Kirghiz';; |
al@1090 | 58 lg) i='Luganda';; |
al@1090 | 59 lo) i='Lao';; |
al@1090 | 60 lt) i='Lithuanian';; |
al@1090 | 61 lv) i='Latvian';; |
al@1090 | 62 mk) i='Macedonian';; |
al@1090 | 63 ml) i='Malayalam';; |
al@1090 | 64 mn) i='Mongolian';; |
al@1090 | 65 mr) i='Marathi';; |
al@1090 | 66 ms) i='Malay';; |
al@1090 | 67 mt) i='Maltese';; |
al@1090 | 68 nb) i='Norwegian Bokmål';; |
al@1090 | 69 nds) i='Low German';; |
al@1090 | 70 ne) i='Nepali';; |
al@1090 | 71 nl) i='Dutch';; |
al@1090 | 72 nn) i='Norwegian Nynorsk';; |
al@1090 | 73 pa) i='Punjabi';; |
al@1090 | 74 pl) i='Polish';; |
al@1090 | 75 ps) i='Pashto';; |
al@1090 | 76 pt) i='Portuguese';; |
al@1090 | 77 pt_BR) i='Brazilian Portuguese';; |
al@1090 | 78 ro) i='Romanian';; |
al@1090 | 79 ru) i='Russian';; |
al@1090 | 80 rw) i='Kinyarwanda';; |
al@1090 | 81 sk) i='Slovak';; |
al@1090 | 82 sl) i='Slovenian';; |
al@1090 | 83 so) i='Somali';; |
al@1090 | 84 sq) i='Albanian';; |
al@1090 | 85 sr) i='Serbian';; |
al@1090 | 86 sv) i='Swedish';; |
al@1090 | 87 sw) i='Swahili';; |
al@1090 | 88 ta) i='Tamil';; |
al@1090 | 89 te) i='Telugu';; |
al@1090 | 90 tg) i='Tajik';; |
al@1090 | 91 th) i='Thai';; |
al@1090 | 92 tr) i='Turkish';; |
al@1090 | 93 uk) i='Ukrainian';; |
al@1090 | 94 ur) i='Urdu';; |
al@1090 | 95 vi) i='Vietnamese';; |
al@1090 | 96 wa) i='Walloon';; |
al@1090 | 97 zh) i='Chinese';; |
al@1090 | 98 zh_CN) i='Chinese (simplified)';; |
al@1090 | 99 zh_HK) i='Chinese (Hong Kong)';; |
al@1090 | 100 zh_TW) i='Chinese (traditional)';; |
al@1090 | 101 esac |
al@1090 | 102 |
al@1090 | 103 case $2 in |
al@1090 | 104 '') echo "$i";; |
al@1090 | 105 -) echo "$i" | sed 's|(|- |; s|)||';; |
al@1090 | 106 esac |
al@1090 | 107 } |
al@1090 | 108 |
al@1090 | 109 # langdesc en_GB -> 'English (British)' |
al@1090 | 110 # langdesc en_GB - -> 'English - British' |