Skip to content

Commit

Permalink
Add localized string for Import settings on Splash Screen (#13458)
Browse files Browse the repository at this point in the history
* add

* Capitalism
  • Loading branch information
zeusongit authored Nov 3, 2022
1 parent d7ac904 commit 2b42f3a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/DynamoSandbox/Properties/Resources.Designer.cs

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

3 changes: 3 additions & 0 deletions src/DynamoSandbox/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<data name="SplashScreenFailedImportSettings" xml:space="preserve">
<value>Failed to Import Settings</value>
</data>
<data name="SplashScreenImportSettings" xml:space="preserve">
<value>Import Settings</value>
</data>
<data name="SplashScreenImportSettingsFailDescription" xml:space="preserve">
<value>Something went wrong when importing your custom setting file. Please try again or proceed with default settings.</value>
</data>
Expand Down
3 changes: 3 additions & 0 deletions src/DynamoSandbox/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<data name="SplashScreenFailedImportSettings" xml:space="preserve">
<value>Failed to Import Settings</value>
</data>
<data name="SplashScreenImportSettings" xml:space="preserve">
<value>Import Settings</value>
</data>
<data name="SplashScreenImportSettingsFailDescription" xml:space="preserve">
<value>Something went wrong when importing your custom setting file. Please try again or proceed with default settings.</value>
</data>
Expand Down
1 change: 1 addition & 0 deletions src/DynamoSandbox/SplashScreen.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ internal async void SetLabels()
await webView.CoreWebView2.ExecuteScriptAsync("window.setLabels({" +
$"welcomeToDynamoTitle: '{Properties.Resources.SplashScreenWelcomeToDynamo}'," +
$"launchTitle: '{Properties.Resources.SplashScreenLaunchTitle}'," +
$"importSettingsTitle: 'dd{Properties.Resources.SplashScreenImportSettings}'," +
$"showScreenAgainLabel: '{Properties.Resources.SplashScreenShowScreenAgainLabel}'" + "})");
}

Expand Down

0 comments on commit 2b42f3a

Please sign in to comment.