Localization (#15)
## Changes (escoria-core) > Pending to do a PR to the core. - Added `es` langcode with the corresponding flag image. - Translated literals for `es` ## Changes (gymkhana) - Added `turno_cocina` localization csv. - Proof of concept for tooltips & dialogs. ## Notes - For tooltips just use the literals. Godot will automatically search for a translation key first. - For ESC just use `translation_key:"Default text"` ## How to test - In the option menu ES should be selectable. - The `frontal` item in the inventory should have the tooltips and the `say` command translated in `en`,`fr` and `es`. Reviewed-on: gymkhana/gymkhana#15 Co-authored-by: oier <oierbravo@gmail.com> Co-committed-by: oier <oierbravo@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ is_exit = true
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
tooltips = {
|
||||
"action1": "Entrar en la cocina"
|
||||
"action1": "cocina_delante_puerta_cocina_action1"
|
||||
}
|
||||
animations = null
|
||||
|
||||
@@ -68,7 +68,7 @@ is_exit = true
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
tooltips = {
|
||||
"action1": "Bajar a la despensa"
|
||||
"action1": "cocina_delante_puerta_despensa_action1"
|
||||
}
|
||||
animations = null
|
||||
|
||||
@@ -91,7 +91,7 @@ is_exit = true
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
tooltips = {
|
||||
"action1": "Ir detrás"
|
||||
"action1": "cocina_delante_puerta_detras_action1"
|
||||
}
|
||||
animations = null
|
||||
|
||||
@@ -109,12 +109,12 @@ global_id = "puerta_detras_start"
|
||||
position = Vector2( 813, 440 )
|
||||
dialog_color = Color( 0, 1, 0.462745, 1 )
|
||||
tooltips = {
|
||||
"action1": "Observar sujeto",
|
||||
"action2": "Hablar"
|
||||
"action1": "cocina_delante_eneko_smoking_action1",
|
||||
"action2": "cocina_delante_eneko_smoking_action2"
|
||||
}
|
||||
action3_target_texts = {
|
||||
"bombona2": "Toma, un regalo",
|
||||
"caja_herramientas": "Regalar"
|
||||
"caja_herramientas": "Regalar",
|
||||
"turno_cocina_frontal": "Ofrecer"
|
||||
}
|
||||
target_when_selected_action_is_in = [ "action3" ]
|
||||
selectable = true
|
||||
@@ -134,3 +134,25 @@ position = Vector2( 1425, 527 )
|
||||
script = ExtResource( 5 )
|
||||
global_id = "new_game_start_location"
|
||||
is_start_location = true
|
||||
|
||||
[node name="pegatinas" type="Area2D" parent="."]
|
||||
pause_mode = 1
|
||||
position = Vector2( 870, 264 )
|
||||
script = ExtResource( 6 )
|
||||
global_id = "cocina_delante_pegatinas"
|
||||
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_delante/esc/pegatinas.esc"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
tooltips = {
|
||||
"action1": "cocina_delante_pegatinas_action1",
|
||||
"action2": "cocina_delante_pegatinas_action2"
|
||||
}
|
||||
animations = null
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="pegatinas"]
|
||||
position = Vector2( -33, -25 )
|
||||
polygon = PoolVector2Array( -20, 43, 37, 46, 39, 87, 57, 86, 92, 84, 91, -16, 47, -17, -20, -17, -21, 26 )
|
||||
|
||||
[node name="ESCLocation" type="Position2D" parent="pegatinas"]
|
||||
position = Vector2( -99, 213 )
|
||||
script = ExtResource( 5 )
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
set_gui_visible false
|
||||
walk_block player puerta_cocina_start
|
||||
set_angle player 180
|
||||
say current_player "Alo Uli!"
|
||||
say current_player hello_start_game:"Alo Uli!"
|
||||
set_gui_visible true
|
||||
accept_input ALL
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
:action1
|
||||
say_random current_player turno_cocina_pegatinas 5 1
|
||||
|
||||
:action2
|
||||
say eneko_smoking pegatinas_action2_eneko_smoking_say:"Eh! las pegatinas no se tocan"
|
||||
Reference in New Issue
Block a user