Skip to content

Commit 27b7c06

Browse files
committed
Localization
1 parent 44a06e6 commit 27b7c06

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/Files.App/Dialogs/CloneRepoDialog.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:helpers="using:Files.App.Helpers"
99
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
10-
Title="Clone repo"
10+
Title="{helpers:ResourceString Name=CloneRepo}"
1111
HighContrastAdjustment="None"
1212
IsPrimaryButtonEnabled="{x:Bind ViewModel.CanCloneRepo, Mode=OneWay}"
1313
PrimaryButtonCommand="{x:Bind ViewModel.CloneRepoCommand, Mode=OneWay}"
1414
PrimaryButtonStyle="{ThemeResource AccentButtonStyle}"
15-
PrimaryButtonText="Clone"
15+
PrimaryButtonText="{helpers:ResourceString Name=Clone}"
1616
RequestedTheme="{x:Bind RootAppElement.RequestedTheme, Mode=OneWay}"
17-
SecondaryButtonText="Cancel"
17+
SecondaryButtonText="{helpers:ResourceString Name=Cancel}"
1818
Style="{StaticResource DefaultContentDialogStyle}"
1919
mc:Ignorable="d">
2020

2121
<Grid Width="340">
2222
<StackPanel Spacing="8">
2323
<TextBox
24-
Header="Repository URL"
24+
Header="{helpers:ResourceString Name=RepositoryURL}"
2525
PlaceholderText="https://github.com/files-community/Files"
2626
Text="{x:Bind ViewModel.RepoUrl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
2727
</StackPanel>

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@
34733473
<data name="StatusCenter_CompressInProgress_SubHeader" xml:space="preserve">
34743474
<value>Compressing {0} item(s) from "{1}" to "{2}"</value>
34753475
<comment>Shown in a StatusCenter card.</comment>
3476-
</data>
3476+
</data>
34773477
<data name="StatusCenter_GitCloneCanceled_Header" xml:space="preserve">
34783478
<value>Canceled cloning {0} to "{1}"</value>
34793479
<comment>Shown in a StatusCenter card.</comment>
@@ -4111,4 +4111,16 @@
41114111
<data name="InvalidIDENameError" xml:space="preserve">
41124112
<value>Please enter a name for the IDE</value>
41134113
</data>
4114+
<data name="CloneRepo" xml:space="preserve">
4115+
<value>Clone repo</value>
4116+
<comment>Clone repo dialog title</comment>
4117+
</data>
4118+
<data name="Clone" xml:space="preserve">
4119+
<value>Clone</value>
4120+
<comment>Primary action button in the clone repo dialog</comment>
4121+
</data>
4122+
<data name="RepositoryURL" xml:space="preserve">
4123+
<value>Repository URL</value>
4124+
<comment>URL textbox header in the clone repo dialog</comment>
4125+
</data>
41144126
</root>

0 commit comments

Comments
 (0)