Skip to content

Commit

Permalink
Localize new menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosch250 committed Jun 29, 2016
1 parent bcc960b commit 6cb4941
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 36 deletions.
72 changes: 63 additions & 9 deletions RetailCoder.VBE/UI/RubberduckUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 30 additions & 12 deletions RetailCoder.VBE/UI/RubberduckUI.resx
Expand Up @@ -446,9 +446,6 @@ Warning: All customized settings will be lost. Your old file will be saved in '
<data name="SourceControl_CreateNewRepo" xml:space="preserve">
<value>Create New Repository</value>
</data>
<data name="SourceControl_OpenWorkingDirectory" xml:space="preserve">
<value>Open Working Directory</value>
</data>
<data name="TestExplorer_TestNumberFailed" xml:space="preserve">
<value>{0} Failed</value>
</data>
Expand Down Expand Up @@ -760,9 +757,6 @@ Are you sure you want to proceed with this rename?</value>
<value>'.gitignore' File</value>
<comment>TC</comment>
</data>
<data name="SourceControl_InitRepoButtonToolTip" xml:space="preserve">
<value>Init New Repo from this Project</value>
</data>
<data name="SourceControl_RefreshButtonToolTip" xml:space="preserve">
<value>Refreshes pending changes</value>
</data>
Expand Down Expand Up @@ -1307,9 +1301,6 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
<value>All references: '{0}'</value>
<comment>0: declaration.identifiername</comment>
</data>
<data name="SourceControl_CloneRepoButtonToolTip" xml:space="preserve">
<value>Clone Repository</value>
</data>
<data name="Rubberduck" xml:space="preserve">
<value>Rubberduck</value>
</data>
Expand Down Expand Up @@ -1620,9 +1611,6 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
<data name="GeneralSettings_ShowLogFolder" xml:space="preserve">
<value>Show Log Folder</value>
</data>
<data name="SourceControl_PublishRepoButtonToolTip" xml:space="preserve">
<value>Publish repository to GitHub</value>
</data>
<data name="SourceControl_PublishRepo_FailureTitle" xml:space="preserve">
<value>Publish repository.</value>
</data>
Expand Down Expand Up @@ -1707,4 +1695,34 @@ All our stargazers, likers &amp; followers, for the warm fuzzies
<data name="SourceControl_FileStatus_Untracked" xml:space="preserve">
<value>Untracked</value>
</data>
<data name="SourceControl_CloneRepositoryDescription" xml:space="preserve">
<value>Clones remote repository from provided URI. Requires an empty project to be open in the VBE.</value>
</data>
<data name="SourceControl_CloneRepositoryTitle" xml:space="preserve">
<value>Clone Remote Repository</value>
</data>
<data name="SourceControl_InitializeRepositoryDescription" xml:space="preserve">
<value>Creates a new repository from the open project.</value>
</data>
<data name="SourceControl_InitializeRepositoryTitle" xml:space="preserve">
<value>Initialize New Repository</value>
</data>
<data name="SourceControl_ManageRepositories" xml:space="preserve">
<value>Manage</value>
</data>
<data name="SourceControl_OpenRepositoryDescription" xml:space="preserve">
<value>Open repository from disk. Requires an empty project to be open in the VBE.</value>
</data>
<data name="SourceControl_OpenRepositoryTitle" xml:space="preserve">
<value>Open Existing Repository</value>
</data>
<data name="SourceControl_OpenWorkingDirectory" xml:space="preserve">
<value>Open Working Directory</value>
</data>
<data name="SourceControl_PublishRepositoryDescription" xml:space="preserve">
<value>Publishes an existing repository to a remote location. Requires the open project to be connected to a repository.</value>
</data>
<data name="SourceControl_PublishRepositoryTitle" xml:space="preserve">
<value>Publish Existing Repository</value>
</data>
</root>
30 changes: 15 additions & 15 deletions RetailCoder.VBE/UI/SourceControl/SourceControlView.xaml
Expand Up @@ -460,7 +460,7 @@
</Button>
<Separator />
<Menu Style="{DynamicResource MenuStyle1}">
<MenuItem Header="Manage">
<MenuItem Header="{Resx Key=SourceControl_ManageRepositories, ResxName=Rubberduck.UI.RubberduckUI}">
<MenuItem Command="{Binding OpenRepoCommand, Mode=OneWay}">
<MenuItem.Header>
<Grid>
Expand All @@ -474,10 +474,10 @@
VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<TextBlock FontWeight="Bold"
Text="Open Existing Repository" />
<TextBlock Text="Open repository from disk. Requires an empty project to be open in the VBE."
TextWrapping="WrapWithOverflow"
Width="200" />
Text="{Resx Key=SourceControl_OpenRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
<TextBlock Text="{Resx Key=SourceControl_OpenRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
TextWrapping="WrapWithOverflow"
Width="200" />
</StackPanel>
</Grid>
</MenuItem.Header>
Expand All @@ -495,10 +495,10 @@
VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<TextBlock FontWeight="Bold"
Text="Initialize New Repository" />
<TextBlock Text="Creates a new repository from the open project."
TextWrapping="WrapWithOverflow"
Width="200" />
Text="{Resx Key=SourceControl_InitializeRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
<TextBlock Text="{Resx Key=SourceControl_InitializeRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
TextWrapping="WrapWithOverflow"
Width="200" />
</StackPanel>
</Grid>
</MenuItem.Header>
Expand All @@ -516,8 +516,8 @@
VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<TextBlock FontWeight="Bold"
Text="Clone Remote Repository" />
<TextBlock Text="Clones remote repository from provided URI. Requires an empty project to be open in the VBE."
Text="{Resx Key=SourceControl_CloneRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
<TextBlock Text="{Resx Key=SourceControl_CloneRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
TextWrapping="WrapWithOverflow"
Width="200" />
</StackPanel>
Expand All @@ -537,10 +537,10 @@
VerticalAlignment="Top" />
<StackPanel Grid.Column="1">
<TextBlock FontWeight="Bold"
Text="Publish Existing Repository" />
<TextBlock Text="Publishes an existing repository to a remote location. Requires the open project to be connected to a repository."
TextWrapping="WrapWithOverflow"
Width="200" />
Text="{Resx Key=SourceControl_PublishRepositoryTitle, ResxName=Rubberduck.UI.RubberduckUI}" />
<TextBlock Text="{Resx Key=SourceControl_PublishRepositoryDescription, ResxName=Rubberduck.UI.RubberduckUI}"
TextWrapping="WrapWithOverflow"
Width="200" />
</StackPanel>
</Grid>
</MenuItem.Header>
Expand Down

0 comments on commit 6cb4941

Please sign in to comment.