Use translation for dialog quit

This commit is contained in:
VAILLANT Jeremy
2021-05-12 14:55:59 +02:00
parent 0b3ef7e137
commit d6eeb9a86e
4 changed files with 20 additions and 2 deletions
+6
View File
@@ -35,3 +35,9 @@ msgstr "Lead Artist -- VAILLANT Aurélien"
msgid "ABOUT_SOURCE_GAME" msgid "ABOUT_SOURCE_GAME"
msgstr "Source code of game : https://dev.stilobique.com/Athena/game-source" msgstr "Source code of game : https://dev.stilobique.com/Athena/game-source"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_TITLE"
msgstr "Exit ?"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_QUESTION"
msgstr "Are you sure to quit ?"
+6
View File
@@ -34,3 +34,9 @@ msgstr "Lead Artist -- VAILLANT Aurélien"
msgid "ABOUT_SOURCE_GAME" msgid "ABOUT_SOURCE_GAME"
msgstr "Code source du jeux : https://dev.stilobique.com/Athena/game-source" msgstr "Code source du jeux : https://dev.stilobique.com/Athena/game-source"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_TITLE"
msgstr "Quit ?"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_QUESTION"
msgstr "Voulez vous vraiement quitté ?"
+6
View File
@@ -35,3 +35,9 @@ msgstr "Lead Artist -- VAILLANT Aurélien"
msgid "ABOUT_SOURCE_GAME" msgid "ABOUT_SOURCE_GAME"
msgstr "Source code of game : https://dev.stilobique.com/Athena/game-source" msgstr "Source code of game : https://dev.stilobique.com/Athena/game-source"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_TITLE"
msgstr "Exit ?"
msgid "SCENE_WARCRAFT_DIALOG_QUIT_QUESTION"
msgstr "Are you sure to quit ?"
+2 -2
View File
@@ -13,8 +13,8 @@ onready var meshes = {
} }
func _ready(): func _ready():
$Dialog/ConfirmEscape.set_title("Quit ?") $Dialog/ConfirmEscape.set_title(tr("SCENE_WARCRAFT_DIALOG_QUIT_TITLE"))
$Dialog/ConfirmEscape.set_text("Voulez vous vraiment quitté ?") $Dialog/ConfirmEscape.set_text(tr("SCENE_WARCRAFT_DIALOG_QUIT_QUESTION"))
func _process(_delta): func _process(_delta):
# Event key "escape" and "godot event" ui_end # Event key "escape" and "godot event" ui_end