Skip to content

Commit 6cb4941

Browse files
committed
Localize new menu
1 parent bcc960b commit 6cb4941

File tree

3 files changed

+108
-36
lines changed

3 files changed

+108
-36
lines changed

RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Lines changed: 63 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/RubberduckUI.resx

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,6 @@ Warning: All customized settings will be lost. Your old file will be saved in '
446446
<data name="SourceControl_CreateNewRepo" xml:space="preserve">
447447
<value>Create New Repository</value>
448448
</data>
449-
<data name="SourceControl_OpenWorkingDirectory" xml:space="preserve">
450-
<value>Open Working Directory</value>
451-
</data>
452449
<data name="TestExplorer_TestNumberFailed" xml:space="preserve">
453450
<value>{0} Failed</value>
454451
</data>
@@ -760,9 +757,6 @@ Are you sure you want to proceed with this rename?</value>
760757
<value>'.gitignore' File</value>
761758
<comment>TC</comment>
762759
</data>
763-
<data name="SourceControl_InitRepoButtonToolTip" xml:space="preserve">
764-
<value>Init New Repo from this Project</value>
765-
</data>
766760
<data name="SourceControl_RefreshButtonToolTip" xml:space="preserve">
767761
<value>Refreshes pending changes</value>
768762
</data>
@@ -1307,9 +1301,6 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
13071301
<value>All references: '{0}'</value>
13081302
<comment>0: declaration.identifiername</comment>
13091303
</data>
1310-
<data name="SourceControl_CloneRepoButtonToolTip" xml:space="preserve">
1311-
<value>Clone Repository</value>
1312-
</data>
13131304
<data name="Rubberduck" xml:space="preserve">
13141305
<value>Rubberduck</value>
13151306
</data>
@@ -1620,9 +1611,6 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
16201611
<data name="GeneralSettings_ShowLogFolder" xml:space="preserve">
16211612
<value>Show Log Folder</value>
16221613
</data>
1623-
<data name="SourceControl_PublishRepoButtonToolTip" xml:space="preserve">
1624-
<value>Publish repository to GitHub</value>
1625-
</data>
16261614
<data name="SourceControl_PublishRepo_FailureTitle" xml:space="preserve">
16271615
<value>Publish repository.</value>
16281616
</data>
@@ -1707,4 +1695,34 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
17071695
<data name="SourceControl_FileStatus_Untracked" xml:space="preserve">
17081696
<value>Untracked</value>
17091697
</data>
1698+
<data name="SourceControl_CloneRepositoryDescription" xml:space="preserve">
1699+
<value>Clones remote repository from provided URI. Requires an empty project to be open in the VBE.</value>
1700+
</data>
1701+
<data name="SourceControl_CloneRepositoryTitle" xml:space="preserve">
1702+
<value>Clone Remote Repository</value>
1703+
</data>
1704+
<data name="SourceControl_InitializeRepositoryDescription" xml:space="preserve">
1705+
<value>Creates a new repository from the open project.</value>
1706+
</data>
1707+
<data name="SourceControl_InitializeRepositoryTitle" xml:space="preserve">
1708+
<value>Initialize New Repository</value>
1709+
</data>
1710+
<data name="SourceControl_ManageRepositories" xml:space="preserve">
1711+
<value>Manage</value>
1712+
</data>
1713+
<data name="SourceControl_OpenRepositoryDescription" xml:space="preserve">
1714+
<value>Open repository from disk. Requires an empty project to be open in the VBE.</value>
1715+
</data>
1716+
<data name="SourceControl_OpenRepositoryTitle" xml:space="preserve">
1717+
<value>Open Existing Repository</value>
1718+
</data>
1719+
<data name="SourceControl_OpenWorkingDirectory" xml:space="preserve">
1720+
<value>Open Working Directory</value>
1721+
</data>
1722+
<data name="SourceControl_PublishRepositoryDescription" xml:space="preserve">
1723+
<value>Publishes an existing repository to a remote location. Requires the open project to be connected to a repository.</value>
1724+
</data>
1725+
<data name="SourceControl_PublishRepositoryTitle" xml:space="preserve">
1726+
<value>Publish Existing Repository</value>
1727+
</data>
17101728
</root>

RetailCoder.VBE/UI/SourceControl/SourceControlView.xaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
</Button>
461461
<Separator />
462462
<Menu Style="{DynamicResource MenuStyle1}">
463-
<MenuItem Header="Manage">
463+
<MenuItem Header="{Resx Key=SourceControl_ManageRepositories, ResxName=Rubberduck.UI.RubberduckUI}">
464464
<MenuItem Command="{Binding OpenRepoCommand, Mode=OneWay}">
465465
<MenuItem.Header>
466466
<Grid>
@@ -474,10 +474,10 @@
474474
VerticalAlignment="Top" />
475475
<StackPanel Grid.Column="1">
476476
<TextBlock FontWeight="Bold"
477-
Text="Open Existing Repository" />
478-
<TextBlock Text="Open repository from disk. Requires an empty project to be open in the VBE."
479-
TextWrapping="WrapWithOverflow"
480-
Width="200" />
477+
Text="{Resx Key=SourceControl_OpenRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
478+
<TextBlock Text="{Resx Key=SourceControl_OpenRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
479+
TextWrapping="WrapWithOverflow"
480+
Width="200" />
481481
</StackPanel>
482482
</Grid>
483483
</MenuItem.Header>
@@ -495,10 +495,10 @@
495495
VerticalAlignment="Top" />
496496
<StackPanel Grid.Column="1">
497497
<TextBlock FontWeight="Bold"
498-
Text="Initialize New Repository" />
499-
<TextBlock Text="Creates a new repository from the open project."
500-
TextWrapping="WrapWithOverflow"
501-
Width="200" />
498+
Text="{Resx Key=SourceControl_InitializeRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
499+
<TextBlock Text="{Resx Key=SourceControl_InitializeRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
500+
TextWrapping="WrapWithOverflow"
501+
Width="200" />
502502
</StackPanel>
503503
</Grid>
504504
</MenuItem.Header>
@@ -516,8 +516,8 @@
516516
VerticalAlignment="Top" />
517517
<StackPanel Grid.Column="1">
518518
<TextBlock FontWeight="Bold"
519-
Text="Clone Remote Repository" />
520-
<TextBlock Text="Clones remote repository from provided URI. Requires an empty project to be open in the VBE."
519+
Text="{Resx Key=SourceControl_CloneRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
520+
<TextBlock Text="{Resx Key=SourceControl_CloneRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
521521
TextWrapping="WrapWithOverflow"
522522
Width="200" />
523523
</StackPanel>
@@ -537,10 +537,10 @@
537537
VerticalAlignment="Top" />
538538
<StackPanel Grid.Column="1">
539539
<TextBlock FontWeight="Bold"
540-
Text="Publish Existing Repository" />
541-
<TextBlock Text="Publishes an existing repository to a remote location. Requires the open project to be connected to a repository."
542-
TextWrapping="WrapWithOverflow"
543-
Width="200" />
540+
Text="{Resx Key=SourceControl_PublishRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
541+
<TextBlock Text="{Resx Key=SourceControl_PublishRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
542+
TextWrapping="WrapWithOverflow"
543+
Width="200" />
544544
</StackPanel>
545545
</Grid>
546546
</MenuItem.Header>

0 commit comments

Comments
 (0)