Skip to content

Commit

Permalink
traduksistemo
Browse files Browse the repository at this point in the history
  • Loading branch information
HassanHeydariNasab committed Jul 3, 2017
1 parent ff4ff1b commit e14d13c
Show file tree
Hide file tree
Showing 15 changed files with 358 additions and 97 deletions.
8 changes: 8 additions & 0 deletions ATRIBUOJ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#Sonoj
Ondilo: http://www.freesound.org/people/BMacZero/sounds/164102/
Kanono: http://freesound.org/people/bowlingballout/sounds/151713/
Lasero: http://freesound.org/people/junggle/sounds/28912/
Morto de malamiko pro batado de la bazo: http://freesound.org/people/sforsman/sounds/274404/

#Muzikoj
Digital Soul (Utopia Mix) by Ars Sonor and Digital By Birth
25 changes: 25 additions & 0 deletions Cxenoj.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id,en
"Saluton homido,
Ni bezonas komandanton por defendi la bazon kontraux malamikoj.
Se antauxe vi helpis nin, mi ne memoras; Cxar nun estas iam antaux tiam!","Hello humankind,
We need a commander to defend the base against enemies.
If already you helped us, I don't remember; Because now is a time before that!"
Mi akceptas la defion.,I accept the challenge.
"Cxu vi sciias ke vi povas plibonigi la armilojn? kolektu samajn armilojn en la bazo.
Duoblklaku/Duoblfrapetu al kanono/lasero por sxangxi gxian strategion.
Armiloj bezonas energion por pafi al malamikoj; metu ilin je la cirklumoj.","Do you know that you can upgrade the weapons? Collect similar weapons in the base.
Double tap/Double click on cannon/laser to change its strategy.
Weapons need energy for firing at enemies; put them on the circles."
Mi estas preta.,I'm ready.
Ondo,Wave
Nova,New
MalNova,Old
Forta,Strong
MalForta,Weak
Denove,Again
Vi Venkigxis!,You Win!
Vi Malvenkigxis!,You Lose!
Ondoj,Waves
Eliri,Exit
Ludi,Play
Cxu vere vi volas eliri?,Do you really want to exit?
Binary file modified Defendiloj/Pistoloj/Lasero/fajro.ogg
Binary file not shown.
7 changes: 7 additions & 0 deletions Gvidilo-fa.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
سلام آدمیزاد،

برای دفاع از پایگاه علیه دشمنان، یک فرمانده می‌خواهیم. اگر پیش از این به ما کمک کردی، یادم نمی‌آید؛ چون اکنون زمانی پیش از آن زمان است!

- آیا می‌دانید که می‌توانید اسلحه‌ها را ارتقا دهید؟ اسلحه‌های مشابه را در پایگاه گرد هم آورید.
- بر روی توپ جنگی/لیزر دوبار بزنید تا راهبردش را تغییر دهید. (Nova: جدید، MalNova: قدیمی، Forta: قوی، MalForta: ضعیف)
- اسلحه‌ها برای شلیک به دشمنان به انرژی نیاز دارند. در دایره‌اوها بگذاریدشان.
40 changes: 40 additions & 0 deletions Komenco.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation Strings Dump.
# Created By.
# Godot Engine v2.1.3.stable.official (c) 2008-2017 Juan Linietsky, Ariel Manzur.
# From Scene:
# res://Kontroloj/Komenco.tscn

msgid ""
msgstr ""
"Report-Msgid-Bugs-To: <define>\n"
"POT-Creation-Date: 2017-7-3 18:30000\n"
"Language-Team: <define>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"


msgid "Mi akceptas la defion."
msgstr ""

msgid ""
"Cxu vi sciias ke vi povas plibonigi la pistolojn\? kolektu samajn pistolojn en la bazo.\n"
"Duoblklaku/Duoblfrapetu al kanono/lasero pro sxangxi gxian strategion.\n"
"Pistoloj bezonas energion pro pafi al la malamikoj; metu ilin je la cirklumoj."
msgstr ""

msgid ""
"Saluton homido,\n"
"Ni bezonas komandanton por defendi la bazon kontraux malamikoj.\n"
"Se antauxe vi helpis nin, mi ne memoras; Cxar nun estas iam antaux tiam!\n"
""
msgstr ""

msgid "https://github.com/HassanHeydariNasab/defendo"
msgstr ""

msgid "Mi estas preta."
msgstr ""

msgid "v2.1"
msgstr ""
20 changes: 18 additions & 2 deletions Kontroloj/Komenco.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ onready var Kasxi_gvidilon = get_node("Gvidilo/Kasxi_gvidilon")
onready var Enkonduko = get_node("Enkonduko")
onready var Gvidilo = get_node("Gvidilo")

var agordejo = "user://agordejo.cfg"
onready var Agordejo = ConfigFile.new()
const lingvoj = ["eo", "en"]

func _ready():
Agordejo.load(agordejo)
var lingvo_indekso = Agordejo.get_value("Lingvo", "lingvo")
if lingvo_indekso == null:
get_tree().change_scene("res://Kontroloj/Lingvo.tscn")
elif TranslationServer.get_locale() != lingvoj[lingvo_indekso]:
TranslationServer.set_locale(lingvoj[lingvo_indekso])
get_tree().reload_current_scene()

Kasxi_enkondukon.interpolate_property(Enkonduko,
"visibility/opacity",1,0,0.6,
Tween.TRANS_QUAD, Tween.EASE_OUT)
Expand All @@ -18,11 +30,11 @@ func _ready():
Kasxi_enkondukon.interpolate_property(Gvidilo,
"transform/pos",Gvidilo.get_global_pos()+Vector2(0,-200),Gvidilo.get_global_pos(),0.6,
Tween.TRANS_QUAD, Tween.EASE_OUT,1)

Kasxi_gvidilon.interpolate_property(Gvidilo,
"visibility/opacity",1,0,0.6,
Tween.TRANS_QUAD, Tween.EASE_OUT)

func _on_Akcepti_pressed():
Kasxi_enkondukon.start()

Expand All @@ -33,3 +45,7 @@ func _on_Ludi_pressed():

func _on_Kasxi_gvidilon_tween_complete( object, key ):
get_tree().change_scene("res://Radiko.tscn")


func _on_Lingvo_pressed():
get_tree().change_scene("res://Kontroloj/Lingvo.tscn")
63 changes: 44 additions & 19 deletions Kontroloj/Komenco.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 56.0
margin/top = 140.0
margin/right = 1243.0
margin/bottom = 873.0
margin/top = 254.0
margin/right = 1280.0
margin/bottom = 987.0
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Cxu vi sciias ke vi povas plibonigi la pistolojn? kolektu samajn pistolojn en la bazo.
Duoblklaku/Duoblfrapetu al kanono pro sxangxi gxian strategion.
Pistoloj bezonas energion pro pafi al la malamikoj; metu ilin je la cirklumoj."
text = "Cxu vi sciias ke vi povas plibonigi la armilojn? kolektu samajn armilojn en la bazo.
Duoblklaku/Duoblfrapetu al kanono/lasero por sxangxi gxian strategion.
Armiloj bezonas energion por pafi al malamikoj; metu ilin je la cirklumoj."
autowrap = true
percent_visible = 1.0
lines_skipped = 0
Expand Down Expand Up @@ -74,7 +74,7 @@ margin/right = 754.0
margin/bottom = 1273.0
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "v2.1"
text = "v2.2"
autowrap = true
percent_visible = 1.0
lines_skipped = 0
Expand All @@ -87,10 +87,10 @@ focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 128.0
margin/top = 704.0
margin/right = 885.0
margin/bottom = 890.0
margin/left = 150.0
margin/top = 768.0
margin/right = 865.0
margin/bottom = 954.0
custom_styles/hover = ExtResource( 3 )
custom_styles/pressed = ExtResource( 4 )
custom_styles/normal = ExtResource( 5 )
Expand Down Expand Up @@ -121,15 +121,14 @@ focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = 64.0
margin/top = 192.0
margin/top = 306.0
margin/right = 1231.0
margin/bottom = 775.0
margin/bottom = 889.0
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Saluton homido,
Ni bezonas komandanton por defendi la bazon kontraux malamikoj.
Se antauxe vi helpis nin, mi ne memoras; Cxar nun estas iam antaux tiam!
"
Se antauxe vi helpis nin, mi ne memoras; Cxar nun estas iam antaux tiam!"
autowrap = true
percent_visible = 1.0
lines_skipped = 0
Expand All @@ -142,10 +141,10 @@ focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 128.0
margin/top = 704.0
margin/right = 885.0
margin/bottom = 890.0
margin/left = 150.0
margin/top = 768.0
margin/right = 865.0
margin/bottom = 954.0
custom_styles/hover = ExtResource( 3 )
custom_styles/pressed = ExtResource( 4 )
custom_styles/normal = ExtResource( 5 )
Expand All @@ -159,10 +158,36 @@ shortcut = null
text = "Mi akceptas la defion."
flat = false

[node name="Lingvo" type="Button" parent="Enkonduko"]

rect/scale = Vector2( 0.55, 0.55 )
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 50.0
margin/right = 545.0
margin/bottom = 232.0
custom_styles/hover = ExtResource( 3 )
custom_styles/pressed = ExtResource( 4 )
custom_styles/normal = ExtResource( 5 )
custom_fonts/font = ExtResource( 2 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Language/Lingvo"
flat = false

[connection signal="tween_complete" from="Gvidilo/Kasxi_gvidilon" to="." method="_on_Kasxi_gvidilon_tween_complete"]

[connection signal="pressed" from="Gvidilo/Ludi" to="." method="_on_Ludi_pressed"]

[connection signal="pressed" from="Enkonduko/Akcepti" to="." method="_on_Akcepti_pressed"]

[connection signal="pressed" from="Enkonduko/Lingvo" to="." method="_on_Lingvo_pressed"]


18 changes: 18 additions & 0 deletions Kontroloj/Lingvo.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
extends Node2D

var agordejo = "user://agordejo.cfg"
onready var Agordejo = ConfigFile.new()
const lingvoj = ["eo", "en"]

func _ready():
Agordejo.load(agordejo)

func _on_EO_pressed():
Agordejo.set_value("Lingvo", "lingvo", 0)
Agordejo.save(agordejo)
get_tree().change_scene("res://Kontroloj/Komenco.tscn")

func _on_EN_pressed():
Agordejo.set_value("Lingvo", "lingvo", 1)
Agordejo.save(agordejo)
get_tree().change_scene("res://Kontroloj/Komenco.tscn")
129 changes: 129 additions & 0 deletions Kontroloj/Lingvo.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[gd_scene load_steps=6 format=1]

[ext_resource path="res://Kontroloj/Lingvo.gd" type="Script" id=1]
[ext_resource path="res://Temoj/Butono_sxveda.tres" type="StyleBox" id=2]
[ext_resource path="res://Temoj/Butono_premita.tres" type="StyleBox" id=3]
[ext_resource path="res://Temoj/Butono.tres" type="StyleBox" id=4]
[ext_resource path="res://Tiparoj/roboto.fnt" type="BitmapFont" id=5]

[node name="Node2D" type="Node2D"]

script/script = ExtResource( 1 )

[node name="EO" type="Button" parent="."]

focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 750.0
margin/right = 550.0
margin/bottom = 900.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Elektu min!"
flat = false

[node name="Polygon2D" type="Polygon2D" parent="EO"]

transform/pos = Vector2( 299.213, 131.545 )
polygon = Vector2Array( 39.6666, -13.6667, -80.3334, -0.333374, -80.3334, 79.6666, 106.333, 106.333, 199.667, 79.6666, 222.333, 12.9999, 119.667, -13.6667 )
uv = Vector2Array( )
color = Color( 0.917647, 0.917647, 0.917647, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
texture/offset = Vector2( 0, 0 )
texture/scale = Vector2( 1, 1 )
texture/rotation = 0.0
invert/enable = false
invert/border = 100.0

[node name="Label" type="Label" parent="EO/Polygon2D"]

rect/scale = Vector2( 0.6, 0.6 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -20.0
margin/top = 17.0
margin/right = 267.0
margin/bottom = 94.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "Esperanto"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[node name="EN" type="Button" parent="."]

focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 350.0
margin/right = 550.0
margin/bottom = 500.0
custom_styles/hover = ExtResource( 2 )
custom_styles/pressed = ExtResource( 3 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
text = "Choose me!"
flat = false

[node name="Polygon2D" type="Polygon2D" parent="EN"]

transform/pos = Vector2( 299.213, 131.545 )
polygon = Vector2Array( 39.6666, -13.6667, -80.3334, -0.333374, -80.3334, 79.6666, 106.333, 106.333, 199.667, 79.6666, 222.333, 12.9999, 119.667, -13.6667 )
uv = Vector2Array( )
color = Color( 0.917647, 0.917647, 0.917647, 1 )
vertex_colors = ColorArray( )
offset = Vector2( 0, 0 )
texture/texture = null
texture/offset = Vector2( 0, 0 )
texture/scale = Vector2( 1, 1 )
texture/rotation = 0.0
invert/enable = false
invert/border = 100.0

[node name="Label" type="Label" parent="EN/Polygon2D"]

rect/scale = Vector2( 0.6, 0.6 )
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -2.0
margin/top = 17.0
margin/right = 285.0
margin/bottom = 94.0
custom_fonts/font = ExtResource( 5 )
custom_colors/font_color = Color( 0, 0, 0, 1 )
text = "English"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[connection signal="pressed" from="EO" to="." method="_on_EO_pressed"]

[connection signal="pressed" from="EN" to="." method="_on_EN_pressed"]


Loading

0 comments on commit e14d13c

Please sign in to comment.