Mercurial > gemma
comparison pkg/common/lang.go @ 4170:afabd52212d2
Moved country -> spoken language lookup table to common package to flesh out the misc package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 05 Aug 2019 16:30:55 +0200 |
parents | pkg/misc/lang.go@ce39e9954e85 |
children | c982969e7743 |
comparison
equal
deleted
inserted
replaced
4169:91f4b3f56ce2 | 4170:afabd52212d2 |
---|---|
1 // This is Free Software under GNU Affero General Public License v >= 3.0 | |
2 // without warranty, see README.md and license for details. | |
3 // | |
4 // SPDX-License-Identifier: AGPL-3.0-or-later | |
5 // License-Filename: LICENSES/AGPL-3.0.txt | |
6 // | |
7 // Copyright (C) 2019 by via donau | |
8 // – Österreichische Wasserstraßen-Gesellschaft mbH | |
9 // Software engineering by Intevation GmbH | |
10 // | |
11 // Author(s): | |
12 // * Sascha Wilde <wilde@intevation.de> | |
13 | |
14 package common | |
15 | |
16 // CCtoLang is a lookup table to associate a country code | |
17 // with a spoken language. | |
18 var CCtoLang = map[string]string{ | |
19 "GB": "EN", | |
20 "AT": "DE", | |
21 "SK": "SK", | |
22 "HU": "HU", | |
23 "HR": "HR", | |
24 "BG": "BG", | |
25 "RO": "RO", | |
26 } |