Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions DistFiles/localization/Bloom.en.tmx
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,11 @@
<seg>What would you like to call this collection?</seg>
</tuv>
</tu>
<tu tuid="NewCollectionWizard.CollectionNameProblem">
<tuv xml:lang="en">
<seg>Collection Name Problem</seg>
</tuv>
</tu>
<tu tuid="NewCollectionWizard.CollectionWillBeCreatedAt">
<tuv xml:lang="en">
<seg>Collection will be created at: {0}</seg>
Expand Down Expand Up @@ -1689,6 +1694,11 @@
<seg>Create New Bloom Collection</seg>
</tuv>
</tu>
<tu tuid="NewCollectionWizard.ProjectName">
<tuv xml:lang="en">
<seg>Project Name</seg>
</tuv>
</tu>
<tu tuid="NewCollectionWizard.UnableToCreateANewCollectionUsingThatName">
<tuv xml:lang="en">
<seg>Unable to create a new collection using that name.</seg>
Expand Down
5 changes: 5 additions & 0 deletions src/BloomExe/CollectionCreating/NewCollectionWizard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ private void SetLocalizedStrings()
"Welcome To Bloom!");
this._kindOfCollectionPage.Text = LocalizationManager.GetString("NewCollectionWizard.KindOfCollectionPage",
"Choose the Collection Type");
_collectionNamePage.Text = LocalizationManager.GetString("NewCollectionWizard.ProjectName",
"Project Name");
_collectionNameProblemPage.Text = LocalizationManager.GetString("NewCollectionWizard.CollectionNameProblem",
"Collection Name Problem");
this._languageLocationPage.Text = LocalizationManager.GetString("NewCollectionWizard.LocationPage",
"Give Language Location");
this._vernacularLanguagePage.Text = LocalizationManager.GetString("NewCollectionWizard.ChooseLanguagePage",
Expand All @@ -110,6 +114,7 @@ private void SetLocalizedStrings()
"Used for the Next button in wizards, like that used for making a New Collection");
wizardControl1.FinishButtonText = LocalizationManager.GetString("Common.Finish", "&Finish",
"Used for the Finish button in wizards, like that used for making a New Collection");
wizardControl1.CancelButtonText = LocalizationManager.GetString("Common.CancelButton", "&Cancel");

var one = L10NSharp.LocalizationManager.GetString("NewCollectionWizard.WelcomePage.WelcomeLine1",
"You are almost ready to start making books.");
Expand Down
19 changes: 17 additions & 2 deletions src/BloomExe/Wizard/WizardAdapterControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ public void Setup()
SetTitle = (value) => _aeroWizard.Title = value;
GetNextButtonText = () => _aeroWizard.NextButtonText;
SetNextButtonText = (value) => _aeroWizard.NextButtonText = value;
GetFinishButtonText= () => _aeroWizard.FinishButtonText;
SetFinishButtonText= (value) => _aeroWizard.FinishButtonText = value;
GetFinishButtonText = () => _aeroWizard.FinishButtonText;
SetFinishButtonText = (value) => _aeroWizard.FinishButtonText = value;
GetCancelButtonText = () => _aeroWizard.CancelButtonText;
SetCancelButtonText = (value) => _aeroWizard.CancelButtonText = value;
GetIcon = () => _aeroWizard.TitleIcon;
SetIcon = (icon) => _aeroWizard.TitleIcon = icon;

Expand Down Expand Up @@ -180,6 +182,8 @@ public void Setup()
Action<string> SetNextButtonText;
Func<string> GetFinishButtonText;
Action<string> SetFinishButtonText;
Func<string> GetCancelButtonText;
Action<string> SetCancelButtonText;
Func<Icon> GetIcon;
Action<Icon> SetIcon;
Action BeginInitLogic;
Expand Down Expand Up @@ -244,6 +248,17 @@ public string FinishButtonText
SetFinishButtonText(value);
}
}
public string CancelButtonText
{
get
{
return GetCancelButtonText();
}
set
{
SetCancelButtonText(value);
}
}

public Icon TitleIcon
{
Expand Down