11using Files . Enums ;
22using Microsoft . Toolkit . Mvvm . ComponentModel ;
3+ using Microsoft . Toolkit . Uwp . Extensions ;
34using Windows . UI . Xaml . Media ;
45
56namespace Files . Filesystem . Cloud
@@ -22,6 +23,13 @@ public string Glyph
2223 set => SetProperty ( ref glyph , value ) ;
2324 }
2425
26+ private string syncStatusString = "CloudDriveSyncStatus_Unknown" . GetLocalized ( ) ;
27+ public string SyncStatusString
28+ {
29+ get => syncStatusString ;
30+ set => SetProperty ( ref syncStatusString , value ) ;
31+ }
32+
2533 private SolidColorBrush foreground ;
2634
2735 public SolidColorBrush Foreground
@@ -41,19 +49,22 @@ public static CloudDriveSyncStatusUI FromCloudDriveSyncStatus(CloudDriveSyncStat
4149 statusUI . LoadSyncStatus = true ;
4250 statusUI . Glyph = "\uE753 " ;
4351 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusOnlineColor" ] ;
52+ statusUI . SyncStatusString = "CloudDriveSyncStatus_Online" . GetLocalized ( ) ;
4453 break ;
4554
4655 case CloudDriveSyncStatus . FileOffline :
4756 case CloudDriveSyncStatus . FileOfflinePinned :
4857 statusUI . LoadSyncStatus = true ;
4958 statusUI . Glyph = "\uE73E " ;
5059 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusOfflineColor" ] ;
60+ statusUI . SyncStatusString = "CloudDriveSyncStatus_Offline" . GetLocalized ( ) ;
5161 break ;
5262
5363 case CloudDriveSyncStatus . FileSync :
5464 statusUI . LoadSyncStatus = true ;
5565 statusUI . Glyph = "\uE895 " ;
5666 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusOnlineColor" ] ;
67+ statusUI . SyncStatusString = "CloudDriveSyncStatus_Sync" . GetLocalized ( ) ;
5768 break ;
5869
5970 // Folder
@@ -62,6 +73,7 @@ public static CloudDriveSyncStatusUI FromCloudDriveSyncStatus(CloudDriveSyncStat
6273 statusUI . LoadSyncStatus = true ;
6374 statusUI . Glyph = "\uE753 " ;
6475 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusOnlineColor" ] ;
76+ statusUI . SyncStatusString = "CloudDriveSyncStatus_PartialOffline" . GetLocalized ( ) ;
6577 break ;
6678
6779 case CloudDriveSyncStatus . FolderOfflineFull :
@@ -70,12 +82,14 @@ public static CloudDriveSyncStatusUI FromCloudDriveSyncStatus(CloudDriveSyncStat
7082 statusUI . LoadSyncStatus = true ;
7183 statusUI . Glyph = "\uE73E " ;
7284 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusOfflineColor" ] ;
85+ statusUI . SyncStatusString = "CloudDriveSyncStatus_Offline" . GetLocalized ( ) ;
7386 break ;
7487
7588 case CloudDriveSyncStatus . FolderExcluded :
7689 statusUI . LoadSyncStatus = true ;
7790 statusUI . Glyph = "\uF140 " ;
7891 statusUI . Foreground = ( SolidColorBrush ) App . Current . Resources [ "CloudDriveSyncStatusExcludedColor" ] ;
92+ statusUI . SyncStatusString = "CloudDriveSyncStatus_Excluded" . GetLocalized ( ) ;
7993 break ;
8094
8195 // Unknown
0 commit comments