1
0
Fork 0

removed broken ru language

This commit is contained in:
ston1th 2021-01-14 09:19:40 +01:00
commit 97131cb577
10 changed files with 174 additions and 23 deletions

View file

@ -2,6 +2,8 @@
package lang
import "errors"
var L = make(map[string]Lang)
type Lang map[string]Key
@ -10,3 +12,10 @@ type Key struct {
Key byte
Mod byte
}
func Exists(l string) error {
if _, ok := L[l]; !ok {
return errors.New("language '" + l + "' is not supported")
}
return nil
}

View file

@ -1,11 +0,0 @@
package lang
import "git.giftfish.de/ston1th/duckycode/pkg/keys"
func init() {
L["ru"] = ru
}
var ru = Lang{
"Binary": Key{keys.K["file"], keys.K["language/ru.properties"]},
}