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:
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user