Inline localizations
This commit is contained in:
parent
db15c85121
commit
18c15c62b7
1 changed files with 8 additions and 6 deletions
|
|
@ -192,11 +192,6 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
private void onVersionRequestSucceeded(object sender, EventArgs e)
|
||||
{
|
||||
string updateAvailableMessage = "There is a recommended update available for MatterControl. Would you like to download it now?".Localize();
|
||||
string updateAvailableTitle = "Recommended Update Available".Localize();
|
||||
string downloadNow = "Download Now".Localize();
|
||||
string remindMeLater = "Remind Me Later".Localize();
|
||||
|
||||
string currentBuildToken = ApplicationSettings.Instance.get(LatestVersionRequest.VersionKey.CurrentBuildToken);
|
||||
string updateFileName = Path.Combine(updateFileLocation, string.Format("{0}.{1}", currentBuildToken, InstallerExtension));
|
||||
|
||||
|
|
@ -218,7 +213,14 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
StyledMessageBox.ShowMessageBox(ProcessDialogResponse, updateAvailableMessage, updateAvailableTitle, StyledMessageBox.MessageType.YES_NO, downloadNow, remindMeLater);
|
||||
StyledMessageBox.ShowMessageBox(
|
||||
this.ProcessDialogResponse,
|
||||
"There is a recommended update available for MatterControl. Would you like to download it now?".Localize(),
|
||||
"Recommended Update Available".Localize(),
|
||||
StyledMessageBox.MessageType.YES_NO,
|
||||
"Download Now".Localize(),
|
||||
"Remind Me Later".Localize());
|
||||
|
||||
// show a dialog to tell the user there is an update
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue