Don't load example translation file, make example actually list all translatable strings

This commit is contained in:
Daniel Oaks
2018-01-22 22:16:07 +10:00
parent 090095b2b9
commit b2afd55285
3 changed files with 198 additions and 2 deletions
+4
View File
@@ -501,6 +501,10 @@ func LoadConfig(filename string) (config *Config, err error) {
if !strings.HasSuffix(strings.ToLower(name), ".lang.yaml") {
continue
}
// don't load our example file in practice
if strings.ToLower(name) == "example.lang.yaml" {
continue
}
data, err = ioutil.ReadFile(filepath.Join(config.Languages.Path, name))
if err != nil {