Skip to content

Commit f50d91b

Browse files
authored
Feature: Added Crowdin link to the about page (#12433)
1 parent 18bc784 commit f50d91b

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3316,4 +3316,7 @@
33163316
<data name="Remotes" xml:space="preserve">
33173317
<value>Remotes</value>
33183318
</data>
3319+
<data name="ImproveTranslation" xml:space="preserve">
3320+
<value>Translate on Crowdin</value>
3321+
</data>
33193322
</root>

src/Files.App/ViewModels/Settings/AboutViewModel.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class AboutViewModel : ObservableObject
2323
public ICommand SubmitBugReportCommand { get; }
2424
public ICommand OpenGitHubRepoCommand { get; }
2525
public ICommand OpenPrivacyPolicyCommand { get; }
26+
public ICommand OpenCrowdinCommand { get; }
2627

2728
private string _ThirdPartyNotices;
2829
public string ThirdPartyNotices
@@ -36,16 +37,13 @@ public AboutViewModel()
3637
CopyAppVersionCommand = new RelayCommand(CopyAppVersion);
3738
CopyWindowsVersionCommand = new RelayCommand(CopyWindowsVersion);
3839
SupportUsCommand = new AsyncRelayCommand(SupportUs);
39-
4040
OpenDocumentationCommand = new AsyncRelayCommand(DoOpenDocumentation);
4141
SubmitFeatureRequestCommand = new AsyncRelayCommand(DoSubmitFeatureRequest);
4242
SubmitBugReportCommand = new AsyncRelayCommand(DoSubmitBugReport);
43-
4443
OpenGitHubRepoCommand = new AsyncRelayCommand(DoOpenGitHubRepo);
45-
4644
OpenPrivacyPolicyCommand = new AsyncRelayCommand(DoOpenPrivacyPolicy);
47-
4845
OpenLogLocationCommand = new AsyncRelayCommand(OpenLogLocation);
46+
OpenCrowdinCommand = new AsyncRelayCommand(DoOpenCrowdin);
4947
}
5048

5149
private Task OpenLogLocation()
@@ -77,6 +75,12 @@ public Task DoOpenPrivacyPolicy()
7775
{
7876
return Launcher.LaunchUriAsync(new Uri(Constants.GitHub.PrivacyPolicyUrl)).AsTask();
7977
}
78+
79+
80+
public Task DoOpenCrowdin()
81+
{
82+
return Launcher.LaunchUriAsync(new Uri("https://crowdin.com/project/files-app")).AsTask();
83+
}
8084

8185
public void CopyAppVersion()
8286
{

src/Files.App/Views/Settings/AboutPage.xaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,22 @@
148148
FontWeight="Medium"
149149
Text="{helpers:ResourceString Name=OpenSource}" />
150150

151+
<!-- Translate -->
152+
<local:SettingsBlockControl
153+
Title="{helpers:ResourceString Name=ImproveTranslation}"
154+
HorizontalAlignment="Stretch"
155+
ButtonCommand="{x:Bind ViewModel.OpenCrowdinCommand}"
156+
IsClickable="True">
157+
<local:SettingsBlockControl.Icon>
158+
<FontIcon Glyph="&#xF2B7;" />
159+
</local:SettingsBlockControl.Icon>
160+
161+
<FontIcon
162+
FontSize="14"
163+
Foreground="{ThemeResource TextFillColorPrimaryBrush}"
164+
Glyph="&#xE8A7;" />
165+
</local:SettingsBlockControl>
166+
151167
<!-- Third Party Licenses -->
152168
<local:SettingsBlockControl
153169
Title="{helpers:ResourceString Name=ThirdPartyLicenses}"

0 commit comments

Comments
 (0)