Skip to content

v0.2.52..v0.2.53 changeset translate.js

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/translations/translate.js b/translations/translate.js
index c481f90..bd33374 100644
--- a/translations/translate.js
+++ b/translations/translate.js
@@ -36,8 +36,10 @@ translate = {
         var lookup = {};
 
         one2one.forEach( function(item) {
-            if (item[2]) // Make sure it isn't 'undefined'
-        {
+            // Taking this out to keep the 'undefined' values so that they get found then dropped during the transtion
+            // Trying to figure out why they were being dropped.
+            // if (item[2]) // Make sure it isn't 'undefined'
+            // {
                 if (!(item[0] in lookup)) lookup[item[0]] = {};
 
                 if (!(lookup[item[0]][item[1]]))
@@ -54,7 +56,7 @@ translate = {
                             }
                         }
                 }
-            }
+            // }
         } );
 
         return lookup;
@@ -270,6 +272,12 @@ translate = {
                         // print('Fuzzy: ' + key);
                         delete inList[key];
                     }
+                    else
+                    {
+                        // Debug
+                        // print('UsedUndef:' + key + ' = ' + inList[key]);
+                        delete inList[key];
+                    }
                 }
             }
         } // End for key in inList
Clone this wiki locally