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();
/// <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>
public string GlobalSitesSelectedLabel =>
GlobalSelectedSites.Count > 0
? $"{GlobalSelectedSites.Count} site(s) selected"
: "No sites selected";
? string.Format(Localization.TranslationSource.Instance["toolbar.globalSites.count"], GlobalSelectedSites.Count)
: Localization.TranslationSource.Instance["toolbar.globalSites.none"];
public IAsyncRelayCommand ConnectCommand { get; }
public IAsyncRelayCommand ClearSessionCommand { get; }