Msgcat.pm: REALLY return untranslated strings properly when no translation is found...
authorlevinse <levinse>
Wed, 15 Jun 2011 20:35:46 +0000 (20:35 +0000)
committerlevinse <levinse>
Wed, 15 Jun 2011 20:35:46 +0000 (20:35 +0000)
FS/FS/Msgcat.pm

index 2406e8d..ce0fa78 100644 (file)
@@ -87,8 +87,8 @@ sub _gettext {
                                        });
         warn "WARNING: auto-inserting message for msgcode $msgcode in locale $locale";
         $newmsgcat->insert;
-        return $msgcode; # or maybe this should be below the next bracket?
     }
+    return $msgcode;
   }
 
 }