Created the .pot and babelrc files and make it.po file with italian traductions and some modification to reset all english text

This commit is contained in:
Luca Canali 2022-08-18 12:19:13 +02:00
parent 9042005c8b
commit 07d33339cc
92 changed files with 668 additions and 222 deletions

View file

@ -30,8 +30,8 @@ margin_left = -19.374
margin_top = -5.93085
margin_right = 20.626
margin_bottom = 8.06915
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_fonts/font = ExtResource( 1 )
text = "label"
align = 1
__meta__ = {
@ -43,10 +43,7 @@ margin_left = -230.84
margin_top = 42.1225
margin_right = 231.16
margin_bottom = 68.1225
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 0.356863, 0.356863, 0.356863, 1 )
custom_fonts/font = ExtResource( 1 )
text = "label"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}

View file

@ -39,7 +39,8 @@ func draw_card(card):
new_card.id = card["id"]
new_card.command = card["command"]
new_card.description = card["description"][game.lang]
# TODO: Make better game.os_lang + "_" + game.os_lang.to_upper()
new_card.description = card["description"][game.os_lang + "_" + game.os_lang.to_upper()]
new_card.energy = 0 #card.energy
new_card.position = Vector2(rect_size.x, rect_size.y*2)
add_child(new_card)
@ -55,7 +56,7 @@ func draw(ids):
arrange_cards()
if ids.size() > 0:
game.notify(tr("YOUR_CARDS"), self, "cards")
game.notify(tr("These are your cards! Drag them to highlighted areas to play them!"), self, "cards")
func arrange_cards():
var t = Timer.new()

View file

@ -9,9 +9,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0

View file

@ -32,9 +32,6 @@ texture = ExtResource( 1 )
expand = true
stretch_mode = 6
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Particles2D" type="Particles2D" parent="."]
show_behind_parent = true

View file

@ -23,16 +23,14 @@ resource_local_to_scene = true
shader = SubResource( 2 )
shader_param/hovered = 0.0
[node name="DropArea" type="Node2D" groups=[
"drop_areas",
]]
[node name="DropArea" type="Node2D" groups=["drop_areas"]]
position = Vector2( -0.197731, 0.0673599 )
script = ExtResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
input_pickable = false
collision_layer = 0
collision_mask = 524288
input_pickable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 1 )

View file

@ -4,17 +4,12 @@
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=2]
[ext_resource path="res://styles/theme.tres" type="Theme" id=3]
[node name="FileBrowser" type="Control" groups=[
"editors",
]]
[node name="FileBrowser" type="Control" groups=["editors"]]
anchor_right = 1.0
anchor_bottom = 1.0
rect_min_size = Vector2( 0, 142 )
theme = ExtResource( 3 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="."]
anchor_right = 1.0
@ -53,19 +48,19 @@ align = 1
[node name="Breadcrumbs" type="HBoxContainer" parent="Panel/Margin/Rows"]
visible = false
margin_right = 1856.0
margin_right = 1904.0
margin_bottom = 50.0
rect_min_size = Vector2( 0, 50 )
custom_constants/separation = 8
[node name="Button" type="Button" parent="Panel/Margin/Rows/Breadcrumbs"]
margin_right = 55.0
margin_right = 61.0
margin_bottom = 50.0
text = "root"
[node name="Button2" type="Button" parent="Panel/Margin/Rows/Breadcrumbs"]
margin_left = 63.0
margin_right = 104.0
margin_left = 69.0
margin_right = 114.0
margin_bottom = 50.0
text = "dir"

View file

@ -13,9 +13,6 @@ margin_bottom = -0.0800018
rect_min_size = Vector2( 140, 140 )
mouse_filter = 1
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control" type="Control" parent="."]
anchor_left = 0.5

View file

@ -1,6 +1,6 @@
extends Node
var languages = {"en": tr("ENGLISH"), "it": tr("ITALIAN")} # Localizations allowed
var languages = {"en": tr("English"), "it": tr("Italian")} # Localizations allowed
var os_lang = OS.get_locale_language() # Variable for game localization
var tmp_prefix = OS.get_user_data_dir() + "/tmp/"

View file

@ -78,7 +78,7 @@ func load(path):
else:
repo = "yours"
var desc = tr("COMPLETE_GOAL")
var desc = tr("Complete the goal of this level")
for line in Array(config[k].split("\n")):
if line.length() > 0 and line[0] == "#":
desc = line.substr(1).strip_edges(true, true)

View file

@ -57,7 +57,7 @@ func reload():
level_list.add_child(hb)
if badge.active:
game.notify(tr("GOLDEN_BADGE"), badge, "cli-badge")
game.notify(tr("You get a golden badge for each level you solve without using the playing cards! Can you solve them all using the command line?"), badge, "cli-badge")
level_id += 1
chapter_id += 1

View file

@ -17,9 +17,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScrollContainer" type="ScrollContainer" parent="."]
anchor_right = 1.0
@ -77,29 +74,30 @@ __meta__ = {
}
[node name="Back" type="Button" parent="HBoxContainer"]
margin_right = 75.0
margin_right = 65.0
margin_bottom = 39.0
text = "BACK"
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Reload" type="Button" parent="HBoxContainer"]
margin_left = 80.0
margin_right = 188.0
margin_left = 70.0
margin_right = 158.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
text = "RELOAD"
text = "Reload"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Toggle_Music" parent="HBoxContainer" instance=ExtResource( 4 )]
margin_left = 193.0
margin_left = 163.0
margin_top = 0.0
margin_right = 282.0
margin_right = 309.0
margin_bottom = 39.0
text = "Toggle music"
[connection signal="pressed" from="HelpLabel/Button3" to="." method="onSurveyPressed"]
[connection signal="pressed" from="HBoxContainer/Back" to="." method="back"]

View file

@ -36,9 +36,6 @@ margin_bottom = -8.0
mouse_filter = 2
theme = ExtResource( 6 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = -1
@ -122,9 +119,6 @@ size_flags_vertical = 3
bbcode_enabled = true
bbcode_text = "Level description here!"
text = "Level description here!"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LevelCongrats" type="RichTextLabel" parent="Rows/Columns/RightSide/LevelInfo/LevelPanel/Text"]
visible = false
@ -189,9 +183,9 @@ position = Vector2( 68.6342, 59.1206 )
script = ExtResource( 9 )
[node name="Area2D" type="Area2D" parent="Cursor"]
input_pickable = false
collision_layer = 524288
collision_mask = 0
input_pickable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Cursor/Area2D"]
shape = SubResource( 1 )
@ -202,27 +196,24 @@ margin_top = 5.13129
margin_right = 636.864
margin_bottom = 44.1313
custom_constants/separation = 8
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Back" type="Button" parent="Menu"]
margin_right = 75.0
margin_right = 65.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
text = "BACK"
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Reload" type="Button" parent="Menu"]
margin_left = 83.0
margin_right = 191.0
margin_left = 73.0
margin_right = 161.0
margin_bottom = 39.0
focus_mode = 0
enabled_focus_mode = 0
text = "RELOAD"
text = "Reload"
__meta__ = {
"_edit_use_anchors_": false
}
@ -252,27 +243,28 @@ __meta__ = {
}
[node name="Toogle_Music" parent="Menu" instance=ExtResource( 11 )]
margin_left = 199.0
margin_left = 169.0
margin_top = 0.0
margin_right = 288.0
margin_right = 315.0
margin_bottom = 39.0
text = "Toggle music"
[node name="CLIBadge" parent="Menu" instance=ExtResource( 10 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 296.0
margin_right = 341.0
margin_left = 323.0
margin_right = 368.0
margin_bottom = 39.0
[node name="NextLevelButton" type="Button" parent="Menu"]
margin_left = 349.0
margin_right = 501.0
margin_left = 376.0
margin_right = 493.0
margin_bottom = 39.0
focus_mode = 0
custom_styles/hover = SubResource( 2 )
custom_styles/normal = ExtResource( 4 )
enabled_focus_mode = 0
text = "NEXT_LEVEL"
text = "Next level"
__meta__ = {
"_edit_use_anchors_": false
}

View file

@ -9,10 +9,7 @@ margin_right = 387.005
margin_bottom = 97.856
focus_mode = 0
enabled_focus_mode = 0
text = "MUSIC"
text = "Toggle music"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="." to="." method="toggle_music"]

View file

@ -28,8 +28,8 @@ margin_left = 797.196
margin_top = 545.117
margin_right = 1138.2
margin_bottom = 601.117
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.533333, 0.392157, 0.392157, 1 )
custom_fonts/font = ExtResource( 5 )
text = "by bleeptrack & blinry"
align = 1
__meta__ = {
@ -41,8 +41,8 @@ margin_left = 716.131
margin_top = 572.398
margin_right = 1216.13
margin_bottom = 628.398
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.533333, 0.392157, 0.392157, 1 )
custom_fonts/font = ExtResource( 5 )
text = "Original score by winniehell"
align = 1
__meta__ = {
@ -62,7 +62,7 @@ __meta__ = {
visible = false
margin_right = 351.0
margin_bottom = 39.0
text = "LEVELS"
text = "Levels"
[node name="Button3" type="Button" parent="VBoxContainer"]
visible = false
@ -73,7 +73,7 @@ text = "Sandbox"
[node name="Install" type="Button" parent="VBoxContainer"]
margin_right = 351.0
margin_bottom = 39.0
text = "INSTALL"
text = "Install"
[node name="Sprite" type="Sprite" parent="."]

View file

@ -80,7 +80,7 @@ func type_set(new_type):
$Sprite.texture = preload("res://nodes/tree.svg")
"commit":
$Sprite.texture = preload("res://nodes/commit.svg")
game.notify(tr("DRAG_AROUND"), self, "drag-nodes")
game.notify(tr("You can drag these around with your mouse!"), self, "drag-nodes")
"tag":
$Sprite.texture = preload("res://nodes/blob.svg")
"ref":

View file

@ -50,8 +50,8 @@ margin_left = -19.9265
margin_top = -12.0097
margin_right = 129.073
margin_bottom = 40.9903
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_fonts/font = ExtResource( 1 )
text = "object_id"
__meta__ = {
"_edit_use_anchors_": false
@ -75,9 +75,9 @@ margin_left = -22.057
margin_top = 31.1738
margin_right = -12.057
margin_bottom = 66.1738
custom_styles/normal = SubResource( 2 )
custom_fonts/font = ExtResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_fonts/font = ExtResource( 1 )
custom_styles/normal = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}

View file

@ -2,16 +2,16 @@ extends Node2D
var text setget _set_text
var button_texts = [
tr("GOT_IT"),
tr("INTERESTING"),
tr("VERY_USEFULL"),
tr("COOL"),
tr("NICE"),
tr("THANKS"),
tr("WHATEVER"),
tr("OKAY"),
tr("YAY"),
tr("AWESOME") ]
tr("Got it!"),
tr("Interesting!"),
tr("Very useful!"),
tr("Cool!"),
tr("Nice!"),
tr("Thanks!"),
tr("Whatever..."),
tr("Okay!"),
tr("Yay!"),
tr("Awesome!") ]
func _ready():
button_texts.shuffle()

View file

@ -22,9 +22,6 @@ margin_right = 492.0
margin_bottom = 170.0
theme = ExtResource( 2 )
custom_styles/panel = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="Panel"]
anchor_right = 1.0
@ -36,9 +33,6 @@ margin_bottom = -15.0
custom_fonts/font = ExtResource( 1 )
text = "This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint! This is a hint!"
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="Panel"]
anchor_top = 1.0

View file

@ -89,7 +89,7 @@ func set_label(new_label):
$Rows/RepoVis/SeparatorLine/DropArea.queue_free()
$Rows/RepoVis/SeparatorLine.hide()
else:
game.notify(tr("INTERACT"), self, "remote")
game.notify(tr("This is the time machine of another person! To interact with it, you need special commands!"), self, "remote")
label_node.text = new_label
func random_position():

View file

@ -12,9 +12,6 @@ rect_clip_content = true
mouse_filter = 2
theme = ExtResource( 2 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Rows" type="HSplitContainer" parent="."]
anchor_right = 1.0
@ -38,9 +35,6 @@ anchor_bottom = 1.0
margin_top = -4.0
mouse_filter = 2
color = Color( 0.196078, 0.184314, 0.435294, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DropArea" parent="Rows/RepoVis/SeparatorLine" instance=ExtResource( 4 )]
position = Vector2( 71.6342, -29.3427 )
@ -54,9 +48,6 @@ margin_right = 229.063
margin_bottom = -8.50476
custom_fonts/font = ExtResource( 3 )
text = "Repo name"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IndexLabel" type="Label" parent="Rows/RepoVis"]
visible = false

View file

@ -48,4 +48,5 @@ margin_left = 961.0
margin_right = 1910.0
margin_bottom = 1070.0
size_flags_horizontal = 3
[connection signal="command_done" from="Columns/Terminal" to="." method="update_repo"]

View file

@ -13,9 +13,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
@ -41,8 +38,8 @@ margin_left = 774.698
margin_top = 297.059
margin_right = 1115.7
margin_bottom = 353.059
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0.533333, 0.392157, 0.392157, 1 )
custom_fonts/font = ExtResource( 5 )
text = "by bleeptrack & blinry"
align = 1
__meta__ = {
@ -61,9 +58,6 @@ anchor_bottom = 1.0
margin_left = -175.997
margin_top = -183.0
margin_right = 175.997
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button2" type="Button" parent="VBoxContainer"]
margin_right = 351.0
@ -106,5 +100,6 @@ text = "To the survey /o/"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="VBoxContainer/Button2" to="." method="quit"]
[connection signal="pressed" from="VBoxContainer2/Button" to="." method="on_survey_pressed"]

View file

@ -104,7 +104,7 @@ func command_done(cmd):
if cmd.output.length() <= 1000:
output.text = output.text + "$ " + cmd.command + "\n" + cmd.output
game.notify(tr("YOUR_TERMINAL"), self, "terminal")
game.notify(tr("This is your terminal! All commands are executed here, and you can see their output. You can also type your own commands here!"), self, "terminal")
else:
$Pager/Text.text = cmd.output
$Pager.popup()

View file

@ -34,9 +34,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 1
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Rows" type="VBoxContainer" parent="."]
anchor_right = 1.0
@ -56,12 +53,9 @@ anchor_bottom = 1.0
margin_top = -1.92206
margin_bottom = -1.92212
size_flags_vertical = 3
custom_styles/normal = SubResource( 1 )
custom_fonts/normal_font = ExtResource( 3 )
custom_styles/normal = SubResource( 1 )
scroll_following = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Completions" type="Tree" parent="Rows/TopHalf"]
anchor_top = 1.0

View file

@ -3,9 +3,7 @@
[ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1]
[ext_resource path="res://scenes/text_editor.gd" type="Script" id=2]
[node name="TextEditor" type="TextEdit" groups=[
"editors",
]]
[node name="TextEditor" type="TextEdit" groups=["editors"]]
anchor_right = 1.0
anchor_bottom = 1.0
custom_colors/background_color = Color( 0, 0, 0, 1 )
@ -48,5 +46,6 @@ text = "x"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="SaveButton" to="." method="save"]
[connection signal="pressed" from="CloseButton" to="." method="close"]

View file

@ -1,6 +1,5 @@
extends Control
#onready var popup = $VBoxContainer/Language
func _ready():
#check_correct_lang_item()
@ -10,9 +9,11 @@ func _ready():
#make_popup_items()
func quit():
get_tree().quit()
func levels():
get_tree().change_scene("res://scenes/level_select.tscn")
@ -25,39 +26,3 @@ func sandbox():
game.current_chapter = levels.chapters.size() - 1
game.current_level = levels.chapters[game.current_chapter].levels.size() -1
get_tree().change_scene("res://scenes/main.tscn")
# Check the apropriate locale
#func check_correct_lang_item():
# for i in game.langs.keys():
# if game.lang == game.langs[i]:
# popup.get_popup().set_item_checked(i, true)
# Set all items to unchecked
#func uncheck_all_item():
# for i in game.langs.keys():
# popup.get_popup().set_item_checked(i, false)
# Create popup items width allowed locales
#func make_popup_items():
# for i in game.langs.keys():
# popup.get_popup().add_radio_check_item(game.langs[i], i)
#
# uncheck_all_item()
#
# check_correct_lang_item()
#
# popup.get_popup().connect("id_pressed", self, "_on_item_pressed")
# Change the translations and localizations of the cards and strings
#func _on_item_pressed(id):
# uncheck_all_item()
# popup.get_popup().set_item_checked(id, true)
# game.lang = popup.get_popup().get_item_text(id)
# TranslationServer.set_locale(game.os_lang)

View file

@ -11,9 +11,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="."]
margin_left = 790.778
@ -24,9 +21,6 @@ custom_colors/font_color = Color( 0.533333, 0.392157, 0.392157, 1 )
custom_fonts/font = ExtResource( 5 )
text = "by bleeptrack & blinry"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label3" type="Label" parent="."]
margin_left = 709.713
@ -53,7 +47,7 @@ __meta__ = {
[node name="Button" type="Button" parent="VBoxContainer"]
margin_right = 351.0
margin_bottom = 39.0
text = "LEVELS"
text = "Levels"
[node name="Button3" type="Button" parent="VBoxContainer"]
margin_top = 44.0
@ -65,13 +59,13 @@ text = "Sandbox"
margin_top = 88.0
margin_right = 351.0
margin_bottom = 127.0
text = "QUIT"
text = "Quit"
[node name="Language" type="MenuButton" parent="VBoxContainer"]
margin_top = 132.0
margin_right = 351.0
margin_bottom = 171.0
text = "LANGUAGE"
text = "Language"
flat = false
script = ExtResource( 4 )