diff --git a/src/XmlFormatterOsIndependent/Properties/Resources.Designer.cs b/src/XmlFormatterOsIndependent/Properties/Resources.Designer.cs index 3fcf4b7..832f9fe 100644 --- a/src/XmlFormatterOsIndependent/Properties/Resources.Designer.cs +++ b/src/XmlFormatterOsIndependent/Properties/Resources.Designer.cs @@ -115,7 +115,7 @@ public static string ApplicationSettingsView_AskBeforeClosing { } /// - /// Looks up a localized string similar to Does show a confirmation popup if enabled and you want to close the application. + /// Looks up a localized string similar to If enabled this does show a confirmation popup if you want to close the application. /// public static string ApplicationSettingsView_AskBeforeClosing_Tip { get { @@ -142,7 +142,7 @@ public static string ApplicationSettingsView_CheckForUpdateOnStartup_Tip { } /// - /// Looks up a localized string similar to The Theme to display the application with. + /// Looks up a localized string similar to The theme to display the application with. /// public static string ApplicationSettingsView_Theme_Tip { get { @@ -169,7 +169,7 @@ public static string BackupSettingsView_Export { } /// - /// Looks up a localized string similar to The Export failed, because no file was selected or the settings could not be loaded. + /// Looks up a localized string similar to The export failed, because no file was selected or the settings could not be loaded. /// public static string BackupSettingsView_ExportFailed { get { @@ -321,6 +321,24 @@ public static string MainWindow_Status_Template { } } + /// + /// Looks up a localized string similar to Flat. + /// + public static string Mode_Flat { + get { + return ResourceManager.GetString("Mode_Flat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Formatted. + /// + public static string Mode_Formatted { + get { + return ResourceManager.GetString("Mode_Formatted", resourceCulture); + } + } + /// /// Looks up a localized string similar to Author:. /// @@ -428,5 +446,23 @@ public static string SettingsWindow_Title { return ResourceManager.GetString("SettingsWindow_Title", resourceCulture); } } + + /// + /// Looks up a localized string similar to Dark. + /// + public static string Theme_Dark { + get { + return ResourceManager.GetString("Theme_Dark", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Light. + /// + public static string Theme_Light { + get { + return ResourceManager.GetString("Theme_Light", resourceCulture); + } + } } } diff --git a/src/XmlFormatterOsIndependent/Properties/Resources.de.resx b/src/XmlFormatterOsIndependent/Properties/Resources.de.resx new file mode 100644 index 0000000..2d7e1ab --- /dev/null +++ b/src/XmlFormatterOsIndependent/Properties/Resources.de.resx @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Vor dem Beenden fragen + + + + Zeigt, wenn aktiviert, ein Dialog zur Bestätigung an, ob die Anwendung geschlossen werden soll + + + + Beim Start nach Updates suchen + + + + Prüft, ob es eine neue Version der Anwendung gibt, sobald die Anwendung startet. + + + + Das Thema, mit dem die Anwendung angezeigt werden soll + + + + Der Updater, mit dem das Update für die Anwendung heruntergeladen wurde. + + + + Einstellungen exportieren + + + + Einstellungen importieren + + + + Laden + + + + Über + + + + Beenden + + + + Datei + + + + Hilfe + + + + Einstellungen + + + + Plugins + + + + Fehler melden + + + + Nach Updates suchen + + + + Speichern + + + + Dateipfad für die Formatierung auswählen + + + + Status: {0} + + + + Autor: + + + + Beschreibung + + + + Name: + + + + Version: + + + + Plugin-Manager + + + + Schließen + + + + Speichern und schließen + + + + Anwendung + + + + Backup + + + + Hotfolder + + + + Logging + + + + Einstellungen + + + + Export fehlgeschlagen, da keine Datei ausgewählt wurde oder die Einstellungen nicht geladen werden konnten + + + + Konnte die Einstellung für den Import nicht laden, bitte überprüfen Sie die ausgewählte Datei + + + + Export der Einstellungen war erfolgreich + + + + Import der Einstellung war erfolgreich + + + + Xml Formatter + + + + Allgemein + + + + Diskutieren + + + + Hilfe erhalten + + + + Drittanbieter + + + + Über + + + + Version is up to date + + + + Update Available + + + + Yes + + + + No + + + \ No newline at end of file diff --git a/src/XmlFormatterOsIndependent/Properties/Resources.resx b/src/XmlFormatterOsIndependent/Properties/Resources.resx index ee1637a..61ea069 100644 --- a/src/XmlFormatterOsIndependent/Properties/Resources.resx +++ b/src/XmlFormatterOsIndependent/Properties/Resources.resx @@ -121,7 +121,7 @@ Ask before closing - Does show a confirmation popup if enabled and you want to close the application + If enabled this does show a confirmation popup if you want to close the application Check for updates on startup @@ -130,7 +130,7 @@ Does check if there is new version of the application available as soon as the application starts. - The Theme to display the application with + The theme to display the application with The updater used to download the update for the application. @@ -214,7 +214,7 @@ Settings - The Export failed, because no file was selected or the settings could not be loaded + The export failed, because no file was selected or the settings could not be loaded Could not load setting for import, please check the selected file @@ -240,4 +240,16 @@ Third Party + + Flat + + + Formatted + + + Dark + + + Light + \ No newline at end of file diff --git a/src/XmlFormatterOsIndependent/Resources/AppDescription.de.md b/src/XmlFormatterOsIndependent/Resources/AppDescription.de.md new file mode 100644 index 0000000..432bf9b --- /dev/null +++ b/src/XmlFormatterOsIndependent/Resources/AppDescription.de.md @@ -0,0 +1,7 @@ +[Allgemeine Diskussion](%DISCUSSION_URL%) [Hilfe erhalten](%ISSUES_URL%) + +Diese Applikation ist unter der [MIT](https://github.com/XanatosX/XmlFormatter/blob/master/LICENSE) Lizenz lizenziert. Die Applikation nutzt Plugins um strukturierte Dateien in ein von Menschen lesbares Format oder minimales zu konvertieren. + +Ich entwickele das Programm als Hobby in meiner Freizeit, deshalb kann sein, dass Fehler nicht direkt behoben werden. Gerne können Probleme, welcher innerhalb der Applikation gefunden werden gemeldet werden. Außerdem kann über aktuelle Releases diskutiert werden. Die Links hierfür sind oben zu finden. Möchtest du mithelfen das Programm weiterzuentwickeln kannst du dir gerne gemeldete Probleme anschauen und versuchen diese zu lösen. + +Vielen Dank das du dieses Tool benutzt. diff --git a/src/XmlFormatterOsIndependent/Resources/NewVersionAvailable.de.md b/src/XmlFormatterOsIndependent/Resources/NewVersionAvailable.de.md new file mode 100644 index 0000000..d5b5c4c --- /dev/null +++ b/src/XmlFormatterOsIndependent/Resources/NewVersionAvailable.de.md @@ -0,0 +1,7 @@ +There is a new version available + +**Your version:** %local_version% + +**Remote version:** %remote_version% + +Do you want to update? diff --git a/src/XmlFormatterOsIndependent/Resources/VersionIsUpToDate.de.md b/src/XmlFormatterOsIndependent/Resources/VersionIsUpToDate.de.md new file mode 100644 index 0000000..4a46de4 --- /dev/null +++ b/src/XmlFormatterOsIndependent/Resources/VersionIsUpToDate.de.md @@ -0,0 +1 @@ +You version is up to date diff --git a/src/XmlFormatterOsIndependent/Services/DependencyInjection.cs b/src/XmlFormatterOsIndependent/Services/DependencyInjection.cs index ab68d45..d189b36 100644 --- a/src/XmlFormatterOsIndependent/Services/DependencyInjection.cs +++ b/src/XmlFormatterOsIndependent/Services/DependencyInjection.cs @@ -25,6 +25,7 @@ public static IServiceCollection AddServices(this IServiceCollection collection) .AddSingleton(provider => new DependencyInjectionResolverService(provider)) .AddSingleton() .AddSingleton() - .AddSingleton(); + .AddSingleton() + .AddSingleton(); } } diff --git a/src/XmlFormatterOsIndependent/Services/ResourceTranslationService.cs b/src/XmlFormatterOsIndependent/Services/ResourceTranslationService.cs new file mode 100644 index 0000000..14baf17 --- /dev/null +++ b/src/XmlFormatterOsIndependent/Services/ResourceTranslationService.cs @@ -0,0 +1,9 @@ +namespace XmlFormatterOsIndependent.Services; + +public class ResourceTranslationService +{ + public string? GetTranslation(string key) + { + return Properties.Resources.ResourceManager.GetString(key); + } +} diff --git a/src/XmlFormatterOsIndependent/ViewModels/AboutWindowViewModel.cs b/src/XmlFormatterOsIndependent/ViewModels/AboutWindowViewModel.cs index 3717a1f..cea2baf 100644 --- a/src/XmlFormatterOsIndependent/ViewModels/AboutWindowViewModel.cs +++ b/src/XmlFormatterOsIndependent/ViewModels/AboutWindowViewModel.cs @@ -81,7 +81,7 @@ public AboutWindowViewModel( /// The description string or null if nothing was found private string? GetLanguageDependedDescription(Assembly assembly) { - var name = CultureInfo.CurrentCulture.ThreeLetterISOLanguageName; + var name = CultureInfo.CurrentCulture.TwoLetterISOLanguageName; string fileName = Properties.Properties.AboutWindow_Tab_General_Description_File.Replace(".md", $".{name}.md"); return GetDataFromResourceFile(fileName, assembly); } diff --git a/src/XmlFormatterOsIndependent/ViewModels/MainWindowViewModel.cs b/src/XmlFormatterOsIndependent/ViewModels/MainWindowViewModel.cs index 1853474..56523f2 100644 --- a/src/XmlFormatterOsIndependent/ViewModels/MainWindowViewModel.cs +++ b/src/XmlFormatterOsIndependent/ViewModels/MainWindowViewModel.cs @@ -129,7 +129,8 @@ public MainWindowViewModel(ISettingsRepository settingsRepo ApplicationUpdateService updateService, IUrlService urlService, IWindowApplicationService applicationService, - IThemeService themeService) + IThemeService themeService, + ResourceTranslationService resourceTranslationService) { this.settingsRepository = settingsRepository; this.pluginManager = pluginManager; @@ -141,7 +142,7 @@ public MainWindowViewModel(ISettingsRepository settingsRepo ConversionModes = Enum.GetValues(typeof(ModesEnum)) .Cast() .OfType() - .Select(item => new ModeSelection(item.ToString(), item)) + .Select(item => new ModeSelection(resourceTranslationService.GetTranslation($"Mode_{item}") ?? item.ToString(), item)) .ToList(); var settingFile = settingsRepository.CreateOrLoad(); diff --git a/src/XmlFormatterOsIndependent/XmlFormatterOsIndependent.csproj b/src/XmlFormatterOsIndependent/XmlFormatterOsIndependent.csproj index c44d9f7..82ce3c3 100644 --- a/src/XmlFormatterOsIndependent/XmlFormatterOsIndependent.csproj +++ b/src/XmlFormatterOsIndependent/XmlFormatterOsIndependent.csproj @@ -20,6 +20,7 @@ + @@ -29,7 +30,7 @@ - +