Skip to content

Commit f6103b1

Browse files
committed
Relative Date -> File Age
1 parent a711ce4 commit f6103b1

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<system:String x:Key="plugin_explorer_previewpanel_display_file_size_checkbox">Size</system:String>
3434
<system:String x:Key="plugin_explorer_previewpanel_display_file_creation_checkbox">Date Created</system:String>
3535
<system:String x:Key="plugin_explorer_previewpanel_display_file_modification_checkbox">Date Modified</system:String>
36-
<system:String x:Key="plugin_explorer_previewpanel_display_file_relative_date_checkbox">Relative Date</system:String>
36+
<system:String x:Key="plugin_explorer_previewpanel_display_file_age_checkbox">File Age</system:String>
3737
<system:String x:Key="plugin_explorer_previewpanel_file_info_label">Display File Info</system:String>
3838
<system:String x:Key="plugin_explorer_previewpanel_date_and_time_format_label">Date and time format</system:String>
3939
<system:String x:Key="plugin_explorer_everything_sort_option">Sort Option:</system:String>

Plugins/Flow.Launcher.Plugin.Explorer/Languages/pt-br.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<system:String x:Key="plugin_explorer_previewpanel_display_file_size_checkbox">Tamanho</system:String>
3232
<system:String x:Key="plugin_explorer_previewpanel_display_file_creation_checkbox">Data de Criação</system:String>
3333
<system:String x:Key="plugin_explorer_previewpanel_display_file_modification_checkbox">Data de Modificação</system:String>
34-
<system:String x:Key="plugin_explorer_previewpanel_display_file_relative_date_checkbox">Data Relativa</system:String>
34+
<system:String x:Key="plugin_explorer_previewpanel_display_file_age_checkbox">Idade do Arquivo</system:String>
3535
<system:String x:Key="plugin_explorer_previewpanel_file_info_label">Display File Info</system:String>
3636
<system:String x:Key="plugin_explorer_previewpanel_date_and_time_format_label">Date and time format</system:String>
3737
<system:String x:Key="plugin_explorer_everything_sort_option">Sort Option:</system:String>

Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class Settings
6767

6868
public bool ShowModifiedDateInPreviewPanel { get; set; } = true;
6969

70-
public bool ShowRelativeDateInPreviewPanel { get; set; } = true;
70+
public bool ShowFileAgeInPreviewPanel { get; set; } = true;
7171

7272

7373
public string PreviewPanelDateFormat { get; set; } = "yyyy-MM-dd";

Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ public bool ShowModifiedDateInPreviewPanel
169169
}
170170
}
171171

172-
public bool ShowRelativeDateInPreviewPanel
172+
public bool ShowFileAgeInPreviewPanel
173173
{
174-
get => Settings.ShowRelativeDateInPreviewPanel;
174+
get => Settings.ShowFileAgeInPreviewPanel;
175175
set
176176
{
177-
Settings.ShowRelativeDateInPreviewPanel = value;
177+
Settings.ShowFileAgeInPreviewPanel = value;
178178
OnPropertyChanged();
179179
OnPropertyChanged(nameof(ShowPreviewPanelDateTimeChoices));
180180
OnPropertyChanged(nameof(PreviewPanelDateTimeChoicesVisibility));

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@
508508

509509
<CheckBox
510510
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
511-
Content="{DynamicResource plugin_explorer_previewpanel_display_file_relative_date_checkbox}"
512-
IsChecked="{Binding ShowRelativeDateInPreviewPanel}" />
511+
Content="{DynamicResource plugin_explorer_previewpanel_display_file_age_checkbox}"
512+
IsChecked="{Binding ShowFileAgeInPreviewPanel}" />
513513
</WrapPanel>
514514
</DockPanel>
515515

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public PreviewPanel(Settings settings, string filePath)
7373
);
7474

7575
string result = formattedDate;
76-
if (Settings.ShowRelativeDateInPreviewPanel) result = $"{GetRelativeDate(createdDate)} - {formattedDate}";
76+
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetRelativeDate(createdDate)} - {formattedDate}";
7777
CreatedAt = result;
7878
}
7979

@@ -85,7 +85,7 @@ public PreviewPanel(Settings settings, string filePath)
8585
CultureInfo.CurrentCulture
8686
);
8787
string result = formattedDate;
88-
if (Settings.ShowRelativeDateInPreviewPanel) result = $"{GetRelativeDate(lastModifiedDate)} - {formattedDate}";
88+
if (Settings.ShowFileAgeInPreviewPanel) result = $"{GetRelativeDate(lastModifiedDate)} - {formattedDate}";
8989
LastModifiedAt = result;
9090
}
9191

0 commit comments

Comments
 (0)