Bläddra i källkod

Show text and category in translation warning

habeebweeb 4 år sedan
förälder
incheckning
31ac4d671c
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5 2
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Translation.cs

+ 5 - 2
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Translation.cs

@@ -82,13 +82,16 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
         {
             if (!Translations.ContainsKey(category))
             {
-                if (warn) Debug.LogWarning($"Could not find translation category '{category}'");
+                if (warn) Debug.LogWarning($"Could not translate '{text}': category '{category}' was not found");
                 return false;
             }
 
             if (!Translations[category].ContainsKey(text))
             {
-                if (warn) Debug.LogWarning($"Could not find translation for '{text}' in '{category}'");
+                if (warn)
+                {
+                    Debug.LogWarning($"Could not translate '{text}': '{text}' was not found in category '{category}'");
+                }
                 return false;
             }