rubywarrior-i18n 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,38 +1,40 @@
1
- 0.1.3 (April 28, 2012)
1
+ # 0.0.3 *(August 14, 2012)*
2
2
 
3
- * Making specs pass with latest RSpec.
3
+ * Japanese translation
4
4
 
5
- * Lowering ace score for Beginner Level 6.
5
+ # 0.0.2 *(June 26, 2012)*
6
6
 
7
- * Store relative tower paths in Profile so files can be moved.
7
+ * Fixing i18n files load path
8
8
 
9
- * Other minor bug fixes (see commit history for details)
9
+ # 0.0.1 *(June 26, 2012)*
10
10
 
11
+ * Ruby Warrior i18n-ed version was born
12
+ * Resetting 0.1.3 version
13
+ * Implementing i18n using the R18n-desktop gem
14
+ * Translating into spanish
15
+
16
+ # 0.1.3 *(April 28, 2012)*
11
17
 
12
- 0.1.2 (September 23, 2010)
18
+ * Making specs pass with latest RSpec.
19
+ * Lowering ace score for Beginner Level 6.
20
+ * Store relative tower paths in Profile so files can be moved.
21
+ * Other minor bug fixes (see commit history for details)
13
22
 
14
- * Adding intermediate level 9 with distance_of ability
23
+ # 0.1.2 *(September 23, 2010)*
15
24
 
25
+ * Adding intermediate level 9 with distance_of ability
16
26
  * Adding intermediate level 8 with look and detonate abilities
17
-
18
27
  * Raising an exception when performing an ability with a bad direction.
19
-
20
28
  * Hard wrapping clue text to 80 characters
21
-
22
29
  * Mention direction when ability is performed
23
30
 
24
-
25
- 0.1.1 (Jan 3, 2010)
31
+ # 0.1.1 *(Jan 3, 2010)*
26
32
 
27
33
  * Speeding up play speed a little
28
-
29
34
  * Ticking captive explosion now kills everything on the floor, adjusting level 6 to compensate
30
-
31
35
  * Adding intermediate level 7
32
-
33
36
  * Keep track of last level played in profile and go back to normal mode when level is added
34
37
 
35
-
36
- 0.1.0 (Jan 2, 2010)
38
+ # 0.1.0 *(Jan 2, 2010)*
37
39
 
38
40
  * initial release
data/README.md CHANGED
@@ -22,8 +22,25 @@ If you want to translate `ruby-warrior-i18n` to your native language feel free t
22
22
  * Fork this repo
23
23
  * Create a topic branch named after the name of your language in english (ie. japanese, german, french)
24
24
  * Create a yml file in the `i18n/` folder named after your languages' [two-letter code](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes#Partial_ISO_639_table)
25
+ * Run `rubywarrior` using your language, e.g. `$ LANG=es ./bin/rubywarrior`
25
26
  * Make a pull request
26
27
 
28
+ ruby-warrior-i18n takes advantage of the R18n-desktop gem to select the language from the user locales, if you want to test with a different language without specifying the `LANG` environment variable, here's how to change them:
29
+
30
+ ### Mac OS X
31
+
32
+ Drag the language to the top of the list in:
33
+
34
+ System Preferences > Languages and Text > Language tab
35
+
36
+ ### Linux
37
+
38
+ ?
39
+
40
+ ### Windows
41
+
42
+ ?
43
+
27
44
  ## Getting Started
28
45
 
29
46
  First install the gem.
data/i18n/ja.yml ADDED
@@ -0,0 +1,232 @@
1
+ runner:
2
+ options:
3
+ banner: "使い方: rubywarrior [オプション]"
4
+ directory: 指定ディレクトリで実行
5
+ level: 英雄経験レベル
6
+ skip: 入力スキップ
7
+ time: 毎回指定秒おくらす
8
+ help: このヘルプを表示する
9
+ welcome: ようこそRubyウォリアーへ
10
+ directory:
11
+ not_found: rubywarrior ディレクトリが見つかりません。新しく作くりますか?
12
+ cannot_continue: ディレクトリがないと、続けることができません。
13
+ practice_level:
14
+ unable_not_in_epic_mode: 英雄モードでないとレベルを指定することはできません。。-l オプションを外してください。
15
+ first_level_generated: はじめの レベルの準備ができました。rubywarrior/%1/README ファイルに書いてある説明を読んでください。
16
+ mode:
17
+ back_to_normal: 英雄をはじめてから ほかのレベルが追加されました。ノーマルモードにもどります。
18
+ level:
19
+ level: レベル
20
+ number: "レベル %1:"
21
+ starting: レベル%1はじめ
22
+ failed: 残念。レベル%1に失敗した。スクリプトをかえて、もう一度挑戦しよう。
23
+ clues: このレベルのヒントを読む?
24
+ continue_next: 次のレベルを続ける?
25
+ continue_epic_mode: 英雄モードを続ける?
26
+ staying_on_current: レベルアップしなかった。次はより多くのポイントを かく得しよう。
27
+ to_practice: "レベルを えらぶ ときは、 -l オプションを使う: rubywarrior -l 3"
28
+ score: レベルスコア
29
+ grade: レベルグレード
30
+ beginner: 初心者
31
+ intermediate: 中級者
32
+ short: ショート
33
+ tower: タワー
34
+ profile:
35
+ profile: プロフィール
36
+ new: 新しいプロフィール
37
+ replace_existing_for_tower: このタワーのプロフィールをかえます。よろしいですか?
38
+ replace_existing: プロフィールの変更。
39
+ not_replacing: プロフィールの変更なし。
40
+ stairs:
41
+ stairs: 階段
42
+ found: やった!階段だ。
43
+ end_of_game: おめでとう! タワーの頂上だ。そして、美しいおとめのルビーを助けだす ことが できた。
44
+ readme:
45
+ see_updated: 新しい rubywarrior/%1 ディレクトリのREADME を読もう。
46
+ to_play_epic_mode: rubywarrior をもう一度動かして英雄モードをやろう。
47
+ game:
48
+ tower: タワー
49
+ average_grade_for_tower: "平均グレード: %1 "
50
+ warrior:
51
+ warrior: warrior
52
+ enter_name: "戦士の名前を入力: "
53
+ earns_points: "は %1ポイントかく得"
54
+ does_nothing: は何もしない
55
+ abilities: 戦士の能力
56
+ score:
57
+ score: スコア
58
+ epic: 英雄スコア
59
+ first: 最初のスコア
60
+ total: 総合スコア
61
+ answer:
62
+ yes_no: yn
63
+ yes_initial: y
64
+ no_initial: n
65
+ item:
66
+ choose_typing_number: "数字を入力して%1を選ぶ: "
67
+ turn: 回
68
+ only_one_turn: 一回にひとつの動作だけしかできない。
69
+ bonus:
70
+ time: タイムボーナス
71
+ clear: クリアボーナス
72
+ wall: かべ
73
+ nothing: なにもない
74
+ sludge:
75
+ name: ドロドロモンスター
76
+ first_letter: m
77
+ archer:
78
+ name: 射手
79
+ first_letter: i
80
+ thicksludge:
81
+ name: 巨大ドロドロモンスター
82
+ first_letter: M
83
+ captive:
84
+ name: 味方
85
+ first_letter: C
86
+ wizard:
87
+ name: 魔法使い
88
+ first_letter: w
89
+ golem:
90
+ name: ゴーレム
91
+ first_letter: G
92
+ abilities: ゴーレムの能力
93
+ take_damage_health_left: "は%1ダメージを受けた。 残り%2ヘルスパワー"
94
+ player:
95
+ dies: は たおれた
96
+ released_from_bonds: は開放された
97
+ direction:
98
+ unknown: "%1という方向は知らない。方向は、 :forward(前), :backward(後), :left(左) または :right(右)でないとならない。"
99
+ move_forward_default: あたえられた方向に歩く(方向をあたえないとforward(前))。
100
+ bumps_into: は次のものにぶつかる:
101
+ forward: 前
102
+ backward: 後
103
+ left: 左
104
+ right: 右
105
+ walk:
106
+ walk: は次の方向へ歩く:
107
+ s: は次の方向へ歩く:
108
+ attack:
109
+ in_given_direction: あたえられた方向の敵などのユニットをこうげきする(方向をあたえないとforward(前))。
110
+ and_hits: "は%1をこうげき。%2に命中"
111
+ and_hits_nothing: "は%1をこうげき。命中しない"
112
+ feel:
113
+ description: あたえられた方向の1つの区域を返す。(方向をあたえないとforward(前))。
114
+ rest:
115
+ description: 最大ヘルスの10%を取りもどす。ほかは なにもしない。
116
+ receives_health: "休けいで%1ヘルス受け取る。最大ヘルス%2まで"
117
+ fit_fiddle: は最大ヘルスになった
118
+ health:
119
+ description: ヘルス数を返えす。
120
+ look:
121
+ description: あたえられた方向の最大3区域の配列を返す。(方向をあたえないとforward(前))。
122
+ shoot:
123
+ description: あたえれた方向にうち放つ(方向をあたえないとforward(前))。
124
+ and_hits: "は%1に向けてうち放つ。%2に命中"
125
+ and_hits_nothing: "はうち放つ。命中しない"
126
+ rescue:
127
+ description: あたえられた方向にいる味方を開放して20ポイントかく得する(方向をあたえないとforward(前))。
128
+ unbinds_and_rescues: は%1の くさりをとく。%2を開放
129
+ unbinds_and_rescues_nothing: は%1の くさりをとく。何も開放しない
130
+ rotate:
131
+ description: :left(左) :right(右) または :backward(後:方向をあたえないとき)に、向きをかえる。
132
+ pivots: は次の方向へ向きをかえる:
133
+ distance_of:
134
+ description: 区域を引数としてわたすと、その区域までの距離が返る。
135
+ bind:
136
+ description: あたえられた方向の敵などのユニットをしばって動けなくする(方向をあたえないとforward(前))。
137
+ and_restricts: は%1のユニットをしばる。%2をこう束
138
+ and_restricts_nothing: は%1のユニットをしばる。何もこう束できない
139
+ listen:
140
+ description: 敵や味方などのユニットがあるすべての区域の配列を返す。
141
+ direction_of_stairs:
142
+ description: 階段のある方向を返す (:left(左), :right(右), :forward(前), :backward(後))。
143
+ direction_of:
144
+ description: 区域を引数としてわたすと、その区域への方向(:left(左), :right(右), :forward(前), :backward(後ろ))が返る。
145
+ explode:
146
+ description: まわりの敵などのユニットと一緒に自滅してたおれる。こうは ならないことを望む。
147
+ collapsing_the_ceiling: の時限爆弾が爆発。天井が崩れて、敵をふくむ すべてのユニットがダメージを受ける
148
+ is_ticking: の時限爆弾がカチカチしている
149
+ detonate:
150
+ description: あたえられた方向へ爆弾を爆発させる。戦士を含めてまわりの4つの区域がダメージを受ける(方向があたえられないとForward(前))。
151
+ bomb_deadly_explosion: は%1を爆破
152
+ ticking_explosive: は爆発に巻き込まれる
153
+ form:
154
+ description: ヘルスの半分を使い、あたえられた方向に ゴーレム(泥の魔神)を作る。ゴーレムの回ごとに、ブロックが実行される。
155
+ golem_gives_health: "は%1に ゴーレムを作る。 ヘルスの半分(%2)をゴーレムにあたえる"
156
+ fails: 何かがじゃまして ゴーレムを作るのに失敗した。
157
+ tip: ヒント
158
+ hp: HP(ヘルスポイント)
159
+ when_you_are_done_run_rubywarrior: player.rbを編集し終わったら、もう一度 rubywarrior コマンドを動かそう。
160
+ add_your_code_here: この後にコードを追加
161
+ towers:
162
+ beginner:
163
+ level_001:
164
+ description: 目の前に長い廊下がある。その廊下の先に階段だ。階段まで さえぎるものは ない。
165
+ tip: Player 'play_turn'メソッドの中から、warrior.walk! を呼び出して前へ進む。
166
+ level_002:
167
+ description: 暗くて何も見えない。でも近くにドロの においがする。
168
+ tip: warrior.feel.empty? を使うと、前に何かが あるか どうかが わかる。warrior.attack! で それと戦うことができる。1回に1度の動作(!で終わる命令)しかできないことを忘れないように。
169
+ clue: warrior.feel.empty?を使ったif/else条件で、warrior.attack!するか、warrior.walk!するかを えらべる。
170
+ level_003:
171
+ description: 前よりもっと じめじめ した空気に なってきた。モンスターの大群にちがいない。
172
+ tip: 命を落とすな! warrior.healthで、君のヘルスを見守る。warrior.rest! で、休けいする。休けいすると最大ヘルスの10%を取りもどせる。
173
+ clue: 敵がいないときは、ヘルスが みちる まで、warrior.rest!を呼ぶ。それから前へ歩きだす。
174
+ level_004:
175
+ description: 弓の引かれる音だ。
176
+ tip: 今はまだ新しい能力がない。でも、ダメージを 受けているときに休んでは だめだと いうことに注意しよう。 @healthインスタンス変数をほぞんして、毎回くらべる。そしてダメージを受けたかどうかを確かめる。
177
+ clue: 回の終わりで、@healthに、今のヘルスをセットする。これが、次の回のヘルスよりも大きかったらダメージを受けている。このときは休んではだめだ。
178
+ level_005:
179
+ description: 助けを呼ぶ声だ。味方を助けだそう。
180
+ tip: warrior.feel.captive? で とらわれた味方が いるか どうかを確かめる。いたら、warrior.rescue! で助けだす。味方を攻撃しては いけない。
181
+ clue: ダメージを受けたか どうかを いつも確かめると いうことを わすれては だめだ。ダメージを受けていないときに、ヘルスがみちるまで、休むんだ。
182
+ level_006:
183
+ description: この部屋では、後ろの壁が遠くにあるような気がする。そして、たくさんの助けを呼ぶ声が聞こえる。
184
+ tip: "':backward'を引数としてwalk!へ渡すと、後ろへ歩くことができる。feel、rescue! や attack!でも同じだ。矢は遠くまではとどかない。"
185
+ clue: はなれたところからダメージを受けたときや、攻撃するだけの十分なヘルスがないときは、後ろへ歩く。warrior.feel(:backward).wall?まで後ろへ歩けることも考えたい。
186
+ level_007:
187
+ description: 真正面にかべが、後ろにはすき間があるようだ。
188
+ tip: 後ろへの攻撃は ききめが ない。向きをかえるには、warrior.feel.wall? と warrior.pivot! を使う。
189
+ level_008:
190
+ description: 魔法使(まほうつかい)いの呪文(じゅもん)が聞こえる。魔法のつえから うち放たれる 魔力に気をつけろ!運よく、弓矢を見つけて手に入れることができた。
191
+ tip: warrior.lookであたりをたしかめる。warrior.shoot!で矢を放つ。
192
+ clue: 魔法使いは命取りだが、ヘルスは低い。魔法使いが攻撃できるようになる前に、たおすことだ。
193
+ level_009:
194
+ description: 腕前をみがき、身につけたすべてを使う時がきた。
195
+ tip: 後ろを見ろ。
196
+ clue: 後ろから攻撃されているときに、矢を放ち続けるだけではだめだ。
197
+ intermediate:
198
+ level_001:
199
+ description: なにも聞こえない。とても広そうな部屋だ。部屋にはなにもない。幸運なことに、このタワーの地図を持っている。この地図でタワーの頂上に上るための階段を見つけられそうだ。
200
+ tip: 階段の方向を得るには、warrior.direction_of_stairsを使う。得た方向を、warrior.walk!にわたすと、その方向へ歩くことができる。
201
+ level_002:
202
+ description: ここも広い部屋だ。敵が階段に行かせないようにじゃましてる。
203
+ tip: 歩いた時と同じように、attack!(攻撃する)と feel(感じる)が、いろいろな方向(:forward(前)、 :left(左) :right(右) :backward(後))にできる。
204
+ clue: warrior.feel(方向).enemy?を、それぞれの方向で呼んで、敵がそばにいないことを確かめる。もしいたら、攻撃(attack)する。ヘルスが低く、敵がいないときは、warrior.rest!を呼んで休けいする。
205
+ level_003:
206
+ description: ベトベトしたものに かこまれたようだ!
207
+ tip: warrior.bind!(方向)を呼んで、敵をしばりあげることができる。しばられた敵は、とらわれた味方と見分けがつかない。
208
+ clue: まわりの敵の数を数える。2以上なら、敵をしばりあげる。
209
+ level_004:
210
+ description: 耳がとぎすまされ、まわりの状況がわかるようになってきた。耳を立てて、敵と 味方を探すんだ!
211
+ tip: 敵や味方がいる区域を見つけるために、warrior.listenを使う。どの方向にいるのかをwarrior.direction_ofで確かめる。
212
+ clue: warrior.walk!(warrior.direction_of(warrior.listen.first))で敵または 味方の方向に歩く。warrior.listen.empty?になったら階段に向かう。
213
+ level_005:
214
+ description: すぐ近くに階段がある。でも すぐに上って いいのかな?
215
+ tip: より多くのポイントをかく得して、このレベルをクリアする。warrior.feel.stairs? と warrior.feel.empty? でどこに行くのかを決める。
216
+ clue: 向かおうとしている敵などのユニットと階段のある方向が同じときは、階段にぶつからないで敵に向かうことが できる ところまで、他のなにもない方向へ行く。
217
+ level_006:
218
+ description: カチカチカチ。なんだ? 足に時限爆弾が付けられた味方たちが、とらわれている!
219
+ tip: space.ticking?がある味方たちを急いで助けだす。時間はない!
220
+ clue: まずは、敵との戦いをさける。warrior.listen と space.ticking? を使う。そして、急いで味方たちを助ける。
221
+ level_007:
222
+ description: カチカチカチ。まただ。今度はモンスターが行く手をはばんでいる。
223
+ tip: すばやくモンスターをたおす。そして、味方を助ける。爆弾が爆発する前にだ。モンスターをさけるのは、むずかしい。
224
+ clue: カチカチしている味方の方向を見つける。行く手をはばむ敵をたおす。まずは君を取り囲んでいる敵をしばりあげる ひつようが ある。
225
+ level_008:
226
+ description: 爆弾の入ったバックを見つけた。これは敵の大群に立ち向かうのに役立つ。
227
+ tip: 2つの敵が前にいたら(warrior.look)、爆弾を爆発させる。君のヘルスにも気をつける。
228
+ clue: warrior.lookを呼ぶと、区域の配列が返る。最初の2つに敵がいたら、warrior.detonate!で爆弾を爆発させる。
229
+ level_009:
230
+ description: こんなの見たことない。部屋がモンスターでいぱいだ。花火大会のはじまり!
231
+ tip: カチカチしている味方を炎に巻き込まないように注意する。warrior.distance_ofで味方をよける。
232
+ clue: 戦う前に、まわりの敵をしばり上げる。爆弾を爆発させる前に、ヘルスを確認すること。
@@ -35,7 +35,7 @@ module RubyWarrior
35
35
  private
36
36
 
37
37
  def read_template(path)
38
- ERB.new(File.read(path), nil, '-').result(binding)
38
+ ERB.new(File.read(path, :encoding => Encoding::UTF_8), nil, '-').result(binding)
39
39
  end
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module RubyWarrior
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubywarrior-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-26 00:00:00.000000000Z
13
+ date: 2012-08-14 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: r18n-desktop
17
- requirement: &70258565850180 !ruby/object:Gem::Requirement
17
+ requirement: &70254282753180 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - =
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70258565850180
25
+ version_requirements: *70254282753180
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &70258565849800 !ruby/object:Gem::Requirement
28
+ requirement: &70254282752700 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70258565849800
36
+ version_requirements: *70254282752700
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rspec
39
- requirement: &70258565849240 !ruby/object:Gem::Requirement
39
+ requirement: &70254282752140 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - =
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 2.8.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70258565849240
47
+ version_requirements: *70254282752140
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: cucumber
50
- requirement: &70258565848740 !ruby/object:Gem::Requirement
50
+ requirement: &70254282751640 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - =
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.2.1
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *70258565848740
58
+ version_requirements: *70254282751640
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: mocha
61
- requirement: &70258565848280 !ruby/object:Gem::Requirement
61
+ requirement: &70254282751140 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - =
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: 0.11.4
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *70258565848280
69
+ version_requirements: *70254282751140
70
70
  description: You play as a warrior climbing a tall tower. On each floor you need to
71
71
  write a Ruby script to instruct the warrior to battle enemies, rescue captives,
72
72
  and reach the stairs.
@@ -80,6 +80,7 @@ extra_rdoc_files: []
80
80
  files:
81
81
  - i18n/en.yml
82
82
  - i18n/es.yml
83
+ - i18n/ja.yml
83
84
  - lib/ruby_warrior/abilities/attack.rb
84
85
  - lib/ruby_warrior/abilities/base.rb
85
86
  - lib/ruby_warrior/abilities/bind.rb
@@ -193,7 +194,7 @@ files:
193
194
  - templates/player.rb
194
195
  - templates/README.erb
195
196
  - bin/rubywarrior
196
- - CHANGELOG.rdoc
197
+ - CHANGELOG.md
197
198
  - Gemfile
198
199
  - Gemfile.lock
199
200
  - LICENSE