Commit 2bd0f7fb authored by Niklaus Giger's avatar Niklaus Giger

[17060] Localize windows title

parent 79e71b0c
Pipeline #12103 passed with stages
in 4 minutes and 45 seconds
......@@ -5,6 +5,9 @@ import org.eclipse.osgi.util.NLS;
public class Messages extends NLS {
public static final String BUNDLE_NAME = "ch.elexis.core.l10n.messages";
public static String ResultDialog_Error;
public static String ResultDialog_Warning;
public static String ResultDialog_Info;
public static String AddressType_SECONDARY_RESIDENCE;
public static String AddressType_HOLIDAY_HOME;
public static String AddressType_PRINCIPAL_RESIDENCE;
......
......@@ -4271,6 +4271,12 @@ Resource_cantOpenInput = Cannot open Inputflow
Resource_createResource = Create Resource-base
ResultDialog_Error = Fehler
ResultDialog_Info = Info
ResultDialog_Warning = Warning
RezeptBlatt_4 = [Rezeptzeilen]
RezeptBlatt_6 = [Medikamentenliste]
......
......@@ -4277,6 +4277,12 @@ Resource_cantOpenInput = Kann Eingabestrom nicht \u00F6ffnen
Resource_createResource = Erzeuge resource-Stamm
ResultDialog_Error = Fehler
ResultDialog_Info = Information
ResultDialog_Warning = Warnung
RezeptBlatt_4 = [Rezeptzeilen]
RezeptBlatt_6 = [Medikamentenliste]
......
......@@ -4207,6 +4207,12 @@ Resource_cantOpenInput = Can not open input stream
Resource_createResource = Create resource root
ResultDialog_Error = Error
ResultDialog_Info = Info
ResultDialog_Warning = Warning
RezeptBlatt_4 = [Recipe lines]
RezeptBlatt_6 = [Medication list]
......
......@@ -4197,6 +4197,12 @@ Resource_cantOpenInput = Impossible d'ouvrir le flux d'entr\u00E9e
Resource_createResource = Cr\u00E9er une racine de ressource
ResultDialog_Error = Erreur
ResultDialog_Info = Info
ResultDialog_Warning = Avertissement
RezeptBlatt_4 = [Lignes de l'ordonnance]
RezeptBlatt_6 = [Liste des m\u00E9dicaments]
......
......@@ -4197,6 +4197,12 @@ Resource_cantOpenInput = Impossibile aprire il flusso di input
Resource_createResource = Crea radice di risorsa
ResultDialog_Error = Errore
ResultDialog_Info = Info
ResultDialog_Warning = Avvertimento
RezeptBlatt_4 = [Linee Ricetta]
RezeptBlatt_6 = [List Medication]
......
......@@ -8,6 +8,7 @@ import org.eclipse.swt.widgets.Shell;
import ch.rgw.tools.Result;
import ch.rgw.tools.Result.SEVERITY;
import ch.elexis.core.l10n.Messages;
public class ResultDialog {
......@@ -35,15 +36,15 @@ public class ResultDialog {
}
private static void showError(Result<?> result){
MessageDialog.openError(getShell(), "Fehler", getResultMessage(result));
MessageDialog.openError(getShell(), Messages.ResultDialog_Error, getResultMessage(result));
}
private static void showWarninig(Result<?> result){
MessageDialog.openWarning(getShell(), "Warnung", getResultMessage(result));
MessageDialog.openWarning(getShell(), Messages.ResultDialog_Warning, getResultMessage(result));
}
private static void showInfo(Result<?> result){
MessageDialog.openInformation(getShell(), "Info", getResultMessage(result));
MessageDialog.openInformation(getShell(), Messages.ResultDialog_Info, getResultMessage(result));
}
private static String getResultMessage(Result<?> result){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment