Explorar el Código

Update translation framework a touch more

tags/v0.11.0-alpha
Daniel Oaks hace 6 años
padre
commit
ddec79f8d0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      irc/config.go

+ 2
- 2
irc/config.go Ver fichero

@@ -539,7 +539,7 @@ func LoadConfig(filename string) (config *Config, err error) {
539 539
 
540 540
 			for key, value := range tlList {
541 541
 				// because of how crowdin works, this is how we skip untranslated lines
542
-				if key == value {
542
+				if key == value || value == "" {
543 543
 					continue
544 544
 				}
545 545
 				langInfo.Translations[key] = value
@@ -560,7 +560,7 @@ func LoadConfig(filename string) (config *Config, err error) {
560 560
 
561 561
 			for key, value := range tlList {
562 562
 				// because of how crowdin works, this is how we skip untranslated lines
563
-				if key == value {
563
+				if key == value || value == "" {
564 564
 					continue
565 565
 				}
566 566
 				langInfo.Translations[key] = value

Loading…
Cancelar
Guardar