Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend i18n #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions js/data/strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@
"explanation": "Explanation",
"override_support_chance": "Override Support Fleet Chance",
"override_support_chance_desc": "(Fleet Communication Antenna bonuses are currently unknown, these settings may be used to experiment with potential effects.)",
"balloon_acc_effects": "Barrage Balloon Airstrike Accuracy Effects",
"balloon_own_fleet": "Bonus if Attacker's Side Has Balloons (1/2/3 = Number of Ships with Balloon Equipped)",
"balloon_opposing_fleet": "Penalty if Target's Side Has Balloons (1/2/3 = Number of Ships with Balloon Equipped)",
"balloon_airstrike": "Airstrike",
"balloon_lbas": "LBAS",
"balloon_acc": "Acc",

"normal_day": "Normal (Day)",
"normal_night": "Normal (Night)",
Expand Down
6 changes: 6 additions & 0 deletions js/data/strings_ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@
"explanation": "詳細",
"override_support_chance": "支援艦隊来援率上書き",
"override_support_chance_desc": "(艦隊通信アンテナ、及び通信装置&要員は来援率上昇の法則がまだ分かっていません。想定される効果を反映させたい場合は手動で値を設定する必要があります)",
"balloon_acc_effects": "阻塞気球使用時の航空戦命中補正",
"balloon_own_fleet": "攻撃側の艦隊に気球がある場合のボーナス(1/2/3 = 装備艦数)",
"balloon_opposing_fleet": "防御側の艦隊に気球がある場合のボーナス(1/2/3 = 装備艦数)",
"balloon_airstrike": "航空戦",
"balloon_lbas": "基地航空隊",
"balloon_acc": "命中",

"normal_day": "道中支援(昼戦)",
"normal_night": "道中支援(夜戦)",
Expand Down
49 changes: 49 additions & 0 deletions simulator.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,55 @@ <h2>{{$t('settings')}}</h2>
<tr><td>{{$t('boss')}}:</td><td><input type="number" min="0" max="100" v-model="settings.overrideSupportChanceDayB" :class="getClassSetting('overrideSupportChanceDayB')"/>%</td></tr>
</table>
</div>
<div>
<div><span class="subheader"><img src="assets/items/55.png"/> {{$t('balloon_acc_effects')}}:</span></div>
<div>{{$t('balloon_own_fleet')}}:</div>
<div style="margin-left:20px;display:flex;gap:20px">
<div>{{$t('balloon_airstrike')}}:
<table>
<tr v-for="i in 3">
<th>{{i}}:</th>
<td>
({{$t('balloon_acc')}} &#215; <input type="number" min="1" max="2" step=".01" v-model="settings.balloonSelfAirMod[i-1]" :class="getClassSetting('balloonSelfAirMod',i-1)"/>)
+ <input type="number" min="0" max="99" step="1"v-model="settings.balloonSelfAirFlat[i-1]" :class="getClassSetting('balloonSelfAirFlat',i-1)"/>
</td>
</tr>
</table></div>
<div>{{$t('balloon_lbas')}}:
<table>
<tr v-for="i in 3">
<th>{{i}}:</th>
<td>
({{$t('balloon_acc')}} &#215; <input type="number" min="1" max="2" step=".01" v-model="settings.balloonSelfLBASMod[i-1]" :class="getClassSetting('balloonSelfLBASMod',i-1)"/>)
+ <input type="number" min="0" max="99" step="1"v-model="settings.balloonSelfLBASFlat[i-1]" :class="getClassSetting('balloonSelfLBASFlat',i-1)"/>
</td>
</tr>
</table></div>
</div>
<div>{{$t('balloon_opposing_fleet')}}:</div>
<div style="margin-left:20px;display:flex;gap:20px">
<div>{{$t('balloon_airstrike')}}:
<table>
<tr v-for="i in 3">
<th>{{i}}:</th>
<td>
({{$t('balloon_acc')}} &#215; <input type="number" min="0" max="1" step=".01" v-model="settings.balloonOppoAirMod[i-1]" :class="getClassSetting('balloonOppoAirMod',i-1)"/>)
+ <input type="number" min="-99" max="0" step="1" v-model="settings.balloonOppoAirFlat[i-1]" :class="getClassSetting('balloonOppoAirFlat',i-1)"/>
</td>
</tr>
</table></div>
<div>{{$t('balloon_lbas')}}:
<table>
<tr v-for="i in 3">
<th>{{i}}:</th>
<td>
({{$t('balloon_acc')}} &#215; <input type="number" min="0" max="1" step=".01" v-model="settings.balloonOppoLBASMod[i-1]" :class="getClassSetting('balloonOppoLBASMod',i-1)"/>)
+ <input type="number" min="-99" max="0" step="1" v-model="settings.balloonOppoLBASFlat[i-1]" :class="getClassSetting('balloonOppoLBASFlat',i-1)"/>
</td>
</tr>
</table></div>
</div>
</div>
</div>
</div>
<div>
Expand Down