removed broken ru language
This commit is contained in:
parent
84e26d7f6c
commit
97131cb577
10 changed files with 174 additions and 23 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"]},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue