mkxp-sunshine/scripts/i18n_English.rb
mshirt 8b086c9985 Setting default char input for jap
for the japanese release the default character input for names and
passwords is now romaji
2017-09-04 19:56:39 -07:00

59 lines
2.7 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Default English localization settings
Font.default_name = Language::FONT_WESTERN
class Language
def self.create_input
if Font.default_name == FONT_J
input = Window_NameInput.new
input.ok_text = '決定'
input.set_mode_buttons [['英字', 'かな', 'カナ']]
input.character_tables = {
[0] => [ # Latin
"A","B","C","D","E","F","G","H","I","a","b","c","d","e","f","g","h","i",
"J","K","L","M","N","O","P","Q","R","j","k","l","m","n","o","p","q","r",
"S","T","U","V","W","X","Y","Z"," ","s","t","u","v","w","x","y","z"," ",
"0","1","2","3","4","+","-","=","&","!","?","'",'"',".",",",":",";","$",
"5","6","7","8","9","*","/","#","|","[","]","(",")","<",">","{","}","@",
],
[1] => [ # Hiragana
"","","","","","","","","","","","","","","","","","",
"","","","","","","",""," ",""," ","","","","","","","",
"","","","","","","","","","","","","","","","","","",
"","","","","","","",""," ",""," ","","","","","","","",
"","","","","","","","","","","","","","","","","","",
],
[2] => [ # Katakana
"","","","","","","","","","","","","","","","","","",
"","","","","","","",""," ",""," ","","","","","","","",
"","","","","","","","","","","","","","","","","","",
"","","","","","","",""," ",""," ","","","","","","","",
"","","","","","","","","","","","","","","","","","",
],
}
input.index = 17 # Start on あ
input.table_height = 5
input.init
else
input = Window_NameInput.new
input.set_mode_buttons [[tr('Upper'), tr('Lower')]]
input.character_tables = {
[0] => [ # Case: Upper
"A","B","C","D","E","F","G","H","I","J",
"K","L","M","N","O","P","Q","R","S","T",
"U","V","W","X","Y","Z"," ",".",",","-",
"0","1","2","3","4","5","6","7","8","9",
"!","?",'"',"'","/","&","[","]","(",")",
],
[1] => [ # Case: Lower
"a","b","c","d","e","f","g","h","i","j",
"k","l","m","n","o","p","q","r","s","t",
"u","v","w","x","y","z"," ",".",",","-",
"0","1","2","3","4","5","6","7","8","9",
"!","?",'"',"'","/","&","[","]","(",")",
],
}
input.table_height = 5
input.init
end
end
end