Browse Source

Localized missing notice dialog

Krzysztof Krysiński 2 years ago
parent
commit
785b73e690

+ 1 - 0
src/PixiEditor/Data/Localization/Languages/en.json

@@ -264,6 +264,7 @@
     "ERROR_SAVE_LOCATION": "Couldn't save the file to the specified location",
     "ERROR_SAVE_LOCATION": "Couldn't save the file to the specified location",
     "ERROR_WHILE_SAVING": "An internal error occured while saving. Please try again.",
     "ERROR_WHILE_SAVING": "An internal error occured while saving. Please try again.",
     "UNKNOWN_ERROR_SAVING": "An error occured while saving.",
     "UNKNOWN_ERROR_SAVING": "An error occured while saving.",
+    "ERROR_READING_FILE": "Error while reading the file",
     "FAILED_ASSOCIATE_LOSPEC": "Failed to associate Lospec Palette protocol.",
     "FAILED_ASSOCIATE_LOSPEC": "Failed to associate Lospec Palette protocol.",
     "REDDIT": "Reddit",
     "REDDIT": "Reddit",
     "GITHUB": "GitHub",
     "GITHUB": "GitHub",

+ 1 - 1
src/PixiEditor/ViewModels/SettingsWindowViewModel.cs

@@ -145,7 +145,7 @@ internal class SettingsWindowViewModel : ViewModelBase
             }
             }
             catch (Exception)
             catch (Exception)
             {
             {
-                NoticeDialog.Show(title: "Error", message: "Error while reading the file");
+                NoticeDialog.Show(title: "ERROR", message: "ERROR_READING_FILE");
                 return false;
                 return false;
             }
             }