wyDay blog  |  Downloads  |  Buy
LimeLM
wyBuild
Support forum
wyDay blog
wyDay Home

Translating the AutomaticUpdater control

The AutomaticUpdater control allows for easy translation of the strings from English to whichever language you're targeting.

Simply use the Translation property of the AutomaticUpdater instance and set the strings to your target language. You must set the traslation values in the contructor of your application.

C# example

public Form1()
{
    InitializeComponent();

    //TODO: Use your translation
    autoUpdate.Translation.CheckForUpdatesMenu = "&Check for updates";
    autoUpdate.Translation.DownloadUpdateMenu = "&Download and Update now";
    // etc...
    // see the other translation properties below for the full list

    // Now you can use the AutomaticUpdater methods.
}

VB.NET example

Public Sub New()
    InitializeComponent()

    ' TODO: Use your translation
    autoUpdate.Translation.CheckForUpdatesMenu = "&Check for updates"
    autoUpdate.Translation.DownloadUpdateMenu = "&Download and Update now"
    ' etc...
    ' see the other translation properties below for the full list

    ' Now you can use the AutomaticUpdater methods.
End Sub

Listed below are the string properties and default English values inside the Translation property.

Translation properties

Name Default English value
CheckForUpdatesMenu &Check for updates
DownloadUpdateMenu &Download and Update now
InstallUpdateMenu &Install update now
CancelUpdatingMenu &Cancel updating
CancelCheckingMenu &Cancel update checking
HideMenu Hide
ViewChangesMenu View changes in version %version%
PrematureExitTitle wyUpdate exited prematurely
PrematureExitMessage wyUpdate ended before the current update step could be completed.
StopChecking Stop checking for updates for now
StopDownloading Stop downloading update for now
StopExtracting Stop extracting update for now
TryAgainLater Try again later
TryAgainNow Try again now
ViewError View error details
CloseButton Close
ErrorTitle Error
UpdateNowButton Update now
ChangesInVersion Changes in version %version%
FailedToCheck Failed to check for updates.
FailedToDownload Failed to download the update.
FailedToExtract Failed to extract the update.
Checking Checking for updates
Downloading Downloading update
Extracting Extracting update
UpdateAvailable Update is ready to be installed.
InstallOnNextStart Update will be installed on next start.
AlreadyUpToDate You already have the latest version
SuccessfullyUpdated Successfully updated to %version%
UpdateFailed Update failed to install.