Skip to content

Commit

Permalink
Update labels splash screen (#13589) (#13594)
Browse files Browse the repository at this point in the history
* Update labels splash screen

* removing unnecessary resources
  • Loading branch information
filipeotero authored Dec 2, 2022
1 parent 441b0d1 commit 7aef4b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 46 deletions.
20 changes: 1 addition & 19 deletions src/DynamoCoreWpf/Properties/Resources.Designer.cs

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

12 changes: 3 additions & 9 deletions src/DynamoCoreWpf/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3322,7 +3322,7 @@ You can manage this in Preferences -&gt; Security.</value>
</data>
<data name="HideNodesBelowSpecificConfidenceLevel" xml:space="preserve">
<value>Hide nodes below a specified confidence level</value>
</data>
</data>
<data name="HideNodesBelowSpecificConfidenceLevelInfo" xml:space="preserve">
<value>Confidence level appears next to each recommended node and represents estimated probability that the node is a good choice. When toggled on, this setting hides recommended nodes that don’t meet the specified confidence level. You can click the Low Confidence header to show the nodes.</value>
</data>
Expand Down Expand Up @@ -3431,9 +3431,6 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="GroupStyleFontSizeToolTip" xml:space="preserve">
<value>Font size</value>
</data>
<data name="SplashScreenFailedImportSettings" xml:space="preserve">
<value>Failed to Import Settings</value>
</data>
<data name="SplashScreenImportSettings" xml:space="preserve">
<value>Import Settings</value>
</data>
Expand All @@ -3449,11 +3446,8 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="SplashScreenLoadingTimeLabel" xml:space="preserve">
<value>Loading time</value>
</data>
<data name="SplashScreenSettingsImported" xml:space="preserve">
<value>Settings imported</value>
</data>
<data name="SplashScreenShowScreenAgainLabel" xml:space="preserve">
<value>Do not show this screen again</value>
<value>Don't show this again</value>
</data>
<data name="SplashScreenSignIn" xml:space="preserve">
<value>Sign In</value>
Expand Down Expand Up @@ -3485,4 +3479,4 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="PreferencesWindowShowPreviewBubblesTooltip" xml:space="preserve">
<value>When toggled on, a preview of the node’s output will be displayed when hovering over the bottom of a node.</value>
</data>
</root>
</root>
10 changes: 2 additions & 8 deletions src/DynamoCoreWpf/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3418,9 +3418,6 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="GroupStyleFontSizeToolTip" xml:space="preserve">
<value>Font size</value>
</data>
<data name="SplashScreenFailedImportSettings" xml:space="preserve">
<value>Failed to Import Settings</value>
</data>
<data name="SplashScreenImportSettings" xml:space="preserve">
<value>Import Settings</value>
</data>
Expand All @@ -3436,11 +3433,8 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="SplashScreenLoadingTimeLabel" xml:space="preserve">
<value>Loading time</value>
</data>
<data name="SplashScreenSettingsImported" xml:space="preserve">
<value>Settings imported</value>
</data>
<data name="SplashScreenShowScreenAgainLabel" xml:space="preserve">
<value>Do not show this screen again</value>
<value>Don't show this again</value>
</data>
<data name="SplashScreenSignIn" xml:space="preserve">
<value>Sign In</value>
Expand Down Expand Up @@ -3472,4 +3466,4 @@ In certain complex graphs or host program scenarios, Automatic mode may cause in
<data name="PreferencesWindowShowPreviewBubblesTooltip" xml:space="preserve">
<value>When toggled on, a preview of the node’s output will be displayed when hovering over the bottom of a node.</value>
</data>
</root>
</root>
13 changes: 3 additions & 10 deletions src/DynamoCoreWpf/Views/SplashScreen/SplashScreen.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,25 +314,18 @@ internal async void SetLoadingDone()
/// <param name="importStatus"></param>
internal async void SetImportStatus(ImportStatus importStatus)
{
string importSettingsTitle = string.Empty;
string importSettingsTitle = Dynamo.Wpf.Properties.Resources.SplashScreenImportSettings;
string errorDescription = string.Empty;

switch (importStatus)
{
case ImportStatus.none:
importSettingsTitle = Dynamo.Wpf.Properties.Resources.SplashScreenImportSettings;
errorDescription = Dynamo.Wpf.Properties.Resources.ImportPreferencesInfo;
break;
case ImportStatus.error:
importSettingsTitle = Dynamo.Wpf.Properties.Resources.SplashScreenFailedImportSettings;
errorDescription = Dynamo.Wpf.Properties.Resources.SplashScreenImportSettingsFailDescription;
break;
case ImportStatus.success:
importSettingsTitle = Wpf.Properties.Resources.SplashScreenSettingsImported;
errorDescription = string.Empty;
break;
default:
importSettingsTitle = Dynamo.Wpf.Properties.Resources.SplashScreenImportSettings;
errorDescription = Dynamo.Wpf.Properties.Resources.ImportPreferencesInfo;
break;
}
Expand All @@ -342,7 +335,7 @@ internal async void SetImportStatus(ImportStatus importStatus)
{
await webView.CoreWebView2.ExecuteScriptAsync("window.setImportStatus({" +
$"status: {(int)importStatus}," +
$"importSettingsTitle: \"Import Settings\"," +
$"importSettingsTitle: \"{importSettingsTitle}\"," +
$"errorDescription: \"{errorDescription}\"" + "})");
}
}
Expand Down Expand Up @@ -370,7 +363,7 @@ internal async void SetLabels()
await webView.CoreWebView2.ExecuteScriptAsync("window.setLabels({" +
$"welcomeToDynamoTitle: \"{Wpf.Properties.Resources.SplashScreenWelcomeToDynamo}\"," +
$"launchTitle: \"{Wpf.Properties.Resources.SplashScreenLaunchTitle}\"," +
$"importSettingsTitle: \"Import Settings\"," +
$"importSettingsTitle: \"{Wpf.Properties.Resources.ImportSettingsDialogTitle}\"," +
$"showScreenAgainLabel: \"{Wpf.Properties.Resources.SplashScreenShowScreenAgainLabel}\"," +
$"importSettingsTooltipDescription: \"{Wpf.Properties.Resources.ImportPreferencesInfo}\"" + "})");
}
Expand Down

0 comments on commit 7aef4b3

Please sign in to comment.