diff --git a/chat/src/main/java/rtgre/chat/ChatController.java b/chat/src/main/java/rtgre/chat/ChatController.java index 8fd7bda..09b1244 100644 --- a/chat/src/main/java/rtgre/chat/ChatController.java +++ b/chat/src/main/java/rtgre/chat/ChatController.java @@ -219,9 +219,9 @@ public class ChatController implements Initializable { this.editMenuItem = new MenuItem(); this.cancelMenuItem = new MenuItem(); - removeMenuItem.setText("Remove message"); - editMenuItem.setText("Edit message"); - cancelMenuItem.setText("Cancel"); + removeMenuItem.setText(i18nBundle.getString("contextRemove")); + editMenuItem.setText(i18nBundle.getString("contextEdit")); + cancelMenuItem.setText(i18nBundle.getString("contextCancel")); removeMenuItem.setOnAction(this::onMessageRemove); editMenuItem.setOnAction(this::onMessageEdit); diff --git a/chat/src/main/resources/rtgre/chat/i18nBundle.properties b/chat/src/main/resources/rtgre/chat/i18nBundle.properties index 8e9276e..043fc61 100644 --- a/chat/src/main/resources/rtgre/chat/i18nBundle.properties +++ b/chat/src/main/resources/rtgre/chat/i18nBundle.properties @@ -23,4 +23,7 @@ submit=Submit systemError=Login cannot be system systemHelloContact=Welcome in the discussion with systemHelloRoom=Welcome in room -messageEdit=Modify message... \ No newline at end of file +messageEdit=Edit message... +contextEdit=Edit +contextCancel=Cancel +contextRemove=Delete \ No newline at end of file diff --git a/chat/src/main/resources/rtgre/chat/i18nBundle_fr_FR.properties b/chat/src/main/resources/rtgre/chat/i18nBundle_fr_FR.properties index f4b7b88..38ca095 100644 --- a/chat/src/main/resources/rtgre/chat/i18nBundle_fr_FR.properties +++ b/chat/src/main/resources/rtgre/chat/i18nBundle_fr_FR.properties @@ -23,4 +23,7 @@ submit=Valider systemError=Le login ne peut pas être system systemHelloContact=Bienvenue dans la discussion avec systemHelloRoom=Bienvenue dans le salon -messageEdit=Modifier un message... \ No newline at end of file +messageEdit=Editer un message... +contextEdit=Editer +contextCancel=Annuler +contextRemove=Supprimer \ No newline at end of file