Quellcode durchsuchen

Some more found strings

Krzysztof Krysiński vor 2 Jahren
Ursprung
Commit
2145231af1

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

@@ -180,6 +180,8 @@
   "INTERSECT": "Intersect",
   "RECTANGLE": "Rectangle",
   "CIRCLE": "Circle",
+  "ALL LAYERS": "All Layers",
+  "SINGLE LAYER": "Single Layer",
 
   "PATH_DOES_NOT_EXIST": "{0} does not exist.",
   "LOCATION_DOES_NOT_EXIST": "Location does not exist.",

+ 1 - 1
src/PixiEditor/Localization/LocalizedString.cs

@@ -10,7 +10,7 @@ public struct LocalizedString
         set
         {
             key = value;
-            #if DEBUG
+            #if DEBUG_LOCALIZATION
             Value = key;
             #else
             Value = GetValue(value);

+ 5 - 3
src/PixiEditor/ViewModels/SubViewModels/UserPreferences/Settings/DiscordSettings.cs

@@ -1,4 +1,6 @@
-namespace PixiEditor.ViewModels.SubViewModels.UserPreferences.Settings;
+using PixiEditor.Localization;
+
+namespace PixiEditor.ViewModels.SubViewModels.UserPreferences.Settings;
 
 internal class DiscordSettings : SettingsGroup
 {
@@ -57,7 +59,7 @@ internal class DiscordSettings : SettingsGroup
     {
         get
         {
-            return ShowDocumentName ? $"Editing coolPixelArt.pixi" : "Editing an image";
+            return ShowDocumentName ? new LocalizedString("EDITING_IMG_DETAIL", "coolPixelArt.pixi") : new LocalizedString("EDITING_IMG");
         }
     }
 
@@ -79,7 +81,7 @@ internal class DiscordSettings : SettingsGroup
 
             if (ShowLayerCount)
             {
-                state += "2 Layers";
+                state += new LocalizedString("LAYERS", "2");
             }
 
             return state;

+ 3 - 2
src/PixiEditor/Views/UserControls/DiscordRPPreview.xaml.cs

@@ -1,5 +1,6 @@
 using System.Windows;
 using System.Windows.Controls;
+using PixiEditor.Localization;
 
 namespace PixiEditor.Views.UserControls;
 
@@ -9,7 +10,7 @@ namespace PixiEditor.Views.UserControls;
 internal partial class DiscordRPPreview : UserControl
 {
     public static readonly DependencyProperty StateProperty =
-        DependencyProperty.Register(nameof(State), typeof(string), typeof(DiscordRPPreview), new PropertyMetadata("nothing"));
+        DependencyProperty.Register(nameof(State), typeof(string), typeof(DiscordRPPreview), new PropertyMetadata(new LocalizedString("DISCORD_STATE").Value));
 
     public string State
     {
@@ -18,7 +19,7 @@ internal partial class DiscordRPPreview : UserControl
     }
 
     public static readonly DependencyProperty DetailProperty =
-        DependencyProperty.Register(nameof(Detail), typeof(string), typeof(DiscordRPPreview), new PropertyMetadata("Staring at absolutely"));
+        DependencyProperty.Register(nameof(Detail), typeof(string), typeof(DiscordRPPreview), new PropertyMetadata(new LocalizedString("DISCORD_DETAILS").Value));
 
     public string Detail
     {