Skip to content

Commit

Permalink
added guides description
Browse files Browse the repository at this point in the history
- added localization description to user guides
- trimming the '_' from the start of the guides names (happens on the back end)
  • Loading branch information
dnenov committed Jan 29, 2024
1 parent 48bf145 commit 5ba8fb3
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/DynamoCoreWpf/DynamoCoreWpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<EmbeddedResource Include="..\..\..\DynamoLandingPage\landing-page-react\dist\bundle.js" Link="Packages\HomePage\bundle.js" />
<None Include="UI\Themes\Modern\InPorts.xaml">
<SubType>Designer</SubType>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
27 changes: 27 additions & 0 deletions src/DynamoCoreWpf/Properties/Resources.Designer.cs

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

9 changes: 9 additions & 0 deletions src/DynamoCoreWpf/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,15 @@ Do you wish to uninstall {1}? Restart {2} to complete the uninstall and try down
<value>_User Interface Tour</value>
<comment>Get Started Dynamo Tour</comment>
</data>
<data name="GetStartedGuideDescription" xml:space="preserve">
<value>Start your visual programming journey with this short guide. Here you'll learn some basics about the Dynamo interface and features.</value>
</data>
<data name="OnboardingGuideDescription" xml:space="preserve">
<value>Learn about the basic building blocks of Dynamo. Get hands-on practice working with a graph.</value>
</data>
<data name="PackagesGuideDescription" xml:space="preserve">
<value>A package is a toolkit of utilities that let you do more with Dynamo, beyond its core functionality. This guide shows how to find, install, and use packages. It installs a sample Autodesk package for you to explore.</value>
</data>
<data name="InteractiveGuides" xml:space="preserve">
<value>_Interactive Guides</value>
<comment>Dynamo Guided Tours</comment>
Expand Down
9 changes: 9 additions & 0 deletions src/DynamoCoreWpf/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2938,6 +2938,15 @@ Do you wish to uninstall {1}? Restart {2} to complete the uninstall and try down
<value>_Interactive Guides</value>
<comment>Dynamo Guided Tours</comment>
</data>
<data name="GetStartedGuideDescription" xml:space="preserve">
<value>Start your visual programming journey with this short guide. Here you'll learn some basics about the Dynamo interface and features.</value>
</data>
<data name="OnboardingGuideDescription" xml:space="preserve">
<value>Learn about the basic building blocks of Dynamo. Get hands-on practice working with a graph.</value>
</data>
<data name="PackagesGuideDescription" xml:space="preserve">
<value>A package is a toolkit of utilities that let you do more with Dynamo, beyond its core functionality. This guide shows how to find, install, and use packages. It installs a sample Autodesk package for you to explore.</value>
</data>
<data name="GetStartedGuideLibraryText" xml:space="preserve">
<value>The library contains all default functions #(nodes)=https://primer2.dynamobim.org/4_nodes_and_wires of Dynamo, as well as custom nodes you may have loaded. \n\nTo find a node, search the library or browse its categories.</value>
</data>
Expand Down
12 changes: 8 additions & 4 deletions src/DynamoCoreWpf/Views/HomePage/HomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public partial class HomePage : UserControl, IDisposable
{
// These are hardcoded string and should only change when npm package structure changed or image path changed
private static readonly string htmlEmbeddedFile = "Dynamo.Wpf.Packages.HomePage.build.index.html";
private static readonly string jsEmbeddedFile = "Dynamo.Wpf.Packages.HomePage.build.bundle.js";
private static readonly string jsEmbeddedFile = "Dynamo.Wpf.Packages.HomePage.bundle.js";
//private static readonly string jsEmbeddedFile = "Dynamo.Wpf.Packages.HomePage.build.bundle.js";
private static readonly string fontStylePath = "Dynamo.Wpf.Views.GuidedTour.HtmlPages.Resources.ArtifaktElement-Regular.woff";
private static readonly string virtualFolderName = "embeddedFonts";
private static readonly string virtualFolderPath = Path.Combine(Path.GetTempPath(), virtualFolderName);
Expand Down Expand Up @@ -81,9 +82,12 @@ private void InitializeGuideTourItems()
{
guidedTourItems = new List<GuidedTourItem>
{
new GuidedTourItem(Wpf.Properties.Resources.GetStartedGuide, "Description of the guide", GuidedTourType.UserInterface.ToString()),
new GuidedTourItem(Wpf.Properties.Resources.OnboardingGuide, "Description of the guide", GuidedTourType.GetStarted.ToString()),
new GuidedTourItem(Wpf.Properties.Resources.PackagesGuide, "Description of the guide", GuidedTourType.Packages.ToString())
new GuidedTourItem(Wpf.Properties.Resources.GetStartedGuide.TrimStart('_'),
Wpf.Properties.Resources.GetStartedGuideDescription, GuidedTourType.UserInterface.ToString()),
new GuidedTourItem(Wpf.Properties.Resources.OnboardingGuide.TrimStart('_'),
Wpf.Properties.Resources.OnboardingGuideDescription, GuidedTourType.GetStarted.ToString()),
new GuidedTourItem(Wpf.Properties.Resources.PackagesGuide.TrimStart('_'),
Wpf.Properties.Resources.PackagesGuideDescription, GuidedTourType.Packages.ToString())
};
}

Expand Down

0 comments on commit 5ba8fb3

Please sign in to comment.