Skip to content

Commit dbc41fb

Browse files
committed
[Enhance] Make messages localizable
1 parent f0b5223 commit dbc41fb

6 files changed

Lines changed: 14 additions & 5 deletions

File tree

Languages/lang_en.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ AppxRemoval_Title = "The following AppX packages that may cause Sysprep to fail
103103
AppxRemoval_Notes = "Note that you may see entries corresponding to system AppX packages that, when removed, can cause other system components to stop working properly. Verify that the applications you select here were added by you before proceeding.{crlf;}{crlf;}After removing the applications, your computer will restart. Save your work before continuing."
104104
RestartPrompt_60sec = "The Sysprep Preparation Tool has scheduled a system restart in 1 minute. You can restart your computer now by clicking OK on the message that will appear after this one. Please save your work."
105105
RestartPrompt_Now = "Click OK to restart your computer now."
106+
AppxRemoval_NoPackages = "Please select AppX packages to remove."
107+
AppxRemoval_AutoRestart = "Please keep the medium from which you started the Sysprep Preparation Tool inserted. It will be launched automatically after your computer restarts."
106108

107109
[CCPBase]
108110
STMSG_Severity_Info = "Information"

Languages/lang_es.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ AppxRemoval_Title = "Los siguientes paquetes AppX que pueden causar que Sysprep
103103
AppxRemoval_Notes = "Dese cuenta de que puede ver entradas de paquetes AppX de sistema que, cuando se eliminan, pueden causar que otros componentes del sistema dejen de funcionar correctamente. Verifique que las aplicaciones que seleccione aquí fueron añadidas por usted antes de proceder.{crlf;}{crlf;}Tras eliminar las aplicaciones, su equipo se reiniciará. Guarde su trabajo antes de continuar."
104104
RestartPrompt_60sec = "La herramienta de preparación de Sysprep ha programado un reinicio del sistema en 1 minuto. Puede reiniciar su equipo ahora haciendo clic en Aceptar en el mensaje que aparecerá tras este. Por favor, guarde su trabajo."
105105
RestartPrompt_Now = "Haga clic en Aceptar para reiniciar su equipo ahora."
106+
AppxRemoval_NoPackages = "Seleccione paquetes AppX a eliminar."
107+
AppxRemoval_AutoRestart = "Por favor, mantenga el medio con el que inició la herramienta de preparación de Sysprep insertado. Se iniciará automáticamente después de reiniciar el equipo."
106108

107109
[CCPBase]
108110
STMSG_Severity_Info = "Información"

Languages/lang_fr.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ AppxRemoval_Title = "Les paquets AppX suivants, susceptibles d'entraîner l'éch
103103
AppxRemoval_Notes = "Notez que vous pouvez voir des entrées correspondant à des paquets AppX système qui, s'ils sont supprimés, peuvent empêcher d'autres composants du système de fonctionner correctement. Vérifiez que les applications que vous sélectionnez ici ont bien été ajoutées par vous avant de continuer.{crlf;}{crlf;}Une fois les applications supprimées, votre ordinateur redémarrera. Enregistrez votre travail avant de continuer."
104104
RestartPrompt_60sec = "L'outil de préparation Sysprep a programmé un redémarrage du système dans 1 minute. Vous pouvez redémarrer votre ordinateur dès maintenant en cliquant sur OK dans le message qui s'affichera après celui-ci. Veuillez enregistrer votre travail."
105105
RestartPrompt_Now = "Cliquez sur OK pour redémarrer votre ordinateur maintenant."
106+
AppxRemoval_NoPackages = "Veuillez sélectionner les paquets AppX à supprimer."
107+
AppxRemoval_AutoRestart = "Veuillez laisser inséré le support à partir duquel vous avez lancé l'outil de préparation Sysprep. Il se lancera automatiquement après le redémarrage de votre ordinateur."
106108

107109
[CCPBase]
108110
STMSG_Severity_Info = "Information"

Languages/lang_it.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ AppxRemoval_Title = "Sul tuo computer sono stati rilevati i seguenti pacchetti A
103103
AppxRemoval_Notes = "Si noti che potrebbero essere visualizzate voci corrispondenti a pacchetti AppX di sistema che, se rimossi, potrebbero causare il malfunzionamento di altri componenti di sistema. Verificare che le applicazioni selezionate qui siano state aggiunte dall'utente prima di procedere.{crlf;}{crlf;}Dopo la rimozione delle applicazioni, il computer verrà riavviato. Salvare il lavoro prima di continuare."
104104
RestartPrompt_60sec = "Lo strumento di preparazione Sysprep ha pianificato un riavvio del sistema tra 1 minuto. È possibile riavviare il computer ora facendo clic su OK nel messaggio che apparirà dopo questo. Si prega di salvare il lavoro."
105105
RestartPrompt_Now = "Fare clic su OK per riavviare il computer ora."
106+
AppxRemoval_NoPackages = "Selezionare i pacchetti AppX da rimuovere."
107+
AppxRemoval_AutoRestart = "Lasciare inserito il supporto da cui è stato avviato lo strumento di preparazione Sysprep. Verrà avviato automaticamente al riavvio del computer."
106108

107109
[CCPBase]
108110
STMSG_Severity_Info = "Informazioni"

Languages/lang_pt.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ AppxRemoval_Title = "Foram detetados no seu computador os seguintes pacotes AppX
103103
AppxRemoval_Notes = "Tenha em atenção que poderá ver entradas correspondentes a pacotes AppX do sistema que, quando removidos, podem fazer com que outros componentes do sistema deixem de funcionar corretamente. Verifique se as aplicações que selecionar aqui foram adicionadas por si antes de continuar.{crlf;}{crlf;}Após remover as aplicações, o seu computador irá reiniciar. Guarde o seu trabalho antes de continuar."
104104
RestartPrompt_60sec = "A Ferramenta de Preparação Sysprep agendou um reinício do sistema daqui a 1 minuto. Pode reiniciar o seu computador agora clicando em OK na mensagem que aparecerá a seguir a esta. Por favor, guarde o seu trabalho."
105105
RestartPrompt_Now = "Clique em OK para reiniciar o seu computador agora."
106+
AppxRemoval_NoPackages = "Selecione os pacotes AppX que pretende remover."
107+
AppxRemoval_AutoRestart = "Mantenha inserido o suporte a partir do qual iniciou a Ferramenta de Preparação Sysprep. Esta será iniciada automaticamente após o reinício do computador."
106108

107109
[CCPBase]
108110
STMSG_Severity_Info = "Informação"

OnlineAppxRemovalDialog.vb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ Public Class OnlineAppxRemovalDialog
99

1010
Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
1111
If ListView1.CheckedItems.Count = 0 Then
12-
MessageBox.Show("Please select AppX packages to remove.", Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
12+
MessageBox.Show(GetValueFromLanguageData("OnlineAppxRemovalDialog.AppxRemoval_NoPackages"), Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
1313
Exit Sub
1414
End If
1515

16-
MessageBox.Show("Please keep the medium from which you started the Sysprep Preparation Tool inserted. It will be launched automatically after your computer restarts.", Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
16+
MessageBox.Show(GetValueFromLanguageData("OnlineAppxRemovalDialog.AppxRemoval_AutoRestart"), Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
1717

1818
Cursor = Cursors.WaitCursor
1919

@@ -68,9 +68,8 @@ Public Class OnlineAppxRemovalDialog
6868
' Invoke the restart operation in 1 minute
6969
DynaLog.LogMessage("Restarting the computer in 1 minute!")
7070
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "system32", "shutdown.exe"),
71-
String.Format("/r /t 60 /c {0}The Sysprep Preparation Tool has scheduled a system restart in 1 minute. " &
72-
"You can restart your computer now by clicking OK on the message that will appear after this one. Please save your work.{0}", ControlChars.Quote)).WaitForExit()
73-
If MessageBox.Show("Click OK to restart your computer now.", Text, MessageBoxButtons.OK, MessageBoxIcon.Information) = DialogResult.OK Then
71+
String.Format("/r /t 60 /c {0}{1}{0}", ControlChars.Quote, GetValueFromLanguageData("OnlineAppxRemovalDialog.RestartPrompt_60sec"))).WaitForExit()
72+
If MessageBox.Show(GetValueFromLanguageData("OnlineAppxRemovalDialog.RestartPrompt_Now"), Text, MessageBoxButtons.OK, MessageBoxIcon.Information) = DialogResult.OK Then
7473
DynaLog.LogMessage("Restarting the computer NOW!!!")
7574
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "system32", "shutdown.exe"), "/a")
7675
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "system32", "shutdown.exe"), "/r /t 0").WaitForExit()

0 commit comments

Comments
 (0)