feat(06-03): localize GlobalSitesSelectedLabel in MainWindowViewModel

- Replace hardcoded EN strings with TranslationSource.Instance lookups
- Uses toolbar.globalSites.count (formatted) and toolbar.globalSites.none keys
- Follows same pattern as PermissionsViewModel.SitesSelectedLabel
This commit is contained in:
Dev
2026-04-07 10:06:57 +02:00
parent 1bf47b5c4e
commit 467a940c6f

View File

@@ -43,12 +43,12 @@ public partial class MainWindowViewModel : ObservableRecipient
public ObservableCollection<SiteInfo> GlobalSelectedSites { get; } = new(); public ObservableCollection<SiteInfo> GlobalSelectedSites { get; } = new();
/// <summary> /// <summary>
/// Label for toolbar display: "3 site(s) selected" or "No sites selected". /// Label for toolbar display: "3 site(s) selected" or "No sites selected" (localized).
/// </summary> /// </summary>
public string GlobalSitesSelectedLabel => public string GlobalSitesSelectedLabel =>
GlobalSelectedSites.Count > 0 GlobalSelectedSites.Count > 0
? $"{GlobalSelectedSites.Count} site(s) selected" ? string.Format(Localization.TranslationSource.Instance["toolbar.globalSites.count"], GlobalSelectedSites.Count)
: "No sites selected"; : Localization.TranslationSource.Instance["toolbar.globalSites.none"];
public IAsyncRelayCommand ConnectCommand { get; } public IAsyncRelayCommand ConnectCommand { get; }
public IAsyncRelayCommand ClearSessionCommand { get; } public IAsyncRelayCommand ClearSessionCommand { get; }