mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Update translation framework a touch more
This commit is contained in:
parent
75dcff7183
commit
ddec79f8d0
1 changed files with 2 additions and 2 deletions
|
|
@ -539,7 +539,7 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||||
|
|
||||||
for key, value := range tlList {
|
for key, value := range tlList {
|
||||||
// because of how crowdin works, this is how we skip untranslated lines
|
// because of how crowdin works, this is how we skip untranslated lines
|
||||||
if key == value {
|
if key == value || value == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
langInfo.Translations[key] = value
|
langInfo.Translations[key] = value
|
||||||
|
|
@ -560,7 +560,7 @@ func LoadConfig(filename string) (config *Config, err error) {
|
||||||
|
|
||||||
for key, value := range tlList {
|
for key, value := range tlList {
|
||||||
// because of how crowdin works, this is how we skip untranslated lines
|
// because of how crowdin works, this is how we skip untranslated lines
|
||||||
if key == value {
|
if key == value || value == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
langInfo.Translations[key] = value
|
langInfo.Translations[key] = value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue