unified GetLanguage function

This commit is contained in:
Máximo Cuadros
2016-07-18 16:20:12 +02:00
parent ec9c23e411
commit 2bbd7ec440
7 changed files with 990 additions and 1033 deletions

View File

@ -8,6 +8,11 @@ import (
"gopkg.in/toqueteos/substring.v1"
)
func IsAuxiliaryLanguage(lang string) bool {
_, ok := auxiliaryLanguages[lang]
return ok
}
func IsConfiguration(path string) bool {
lang, _ := GetLanguageByExtension(path)
_, is := configurationLanguages[lang]