TextAutoLanguage.cs 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. using TMPro;
  7. /* 自定义多语言组件 */
  8. public class TextAutoLanguage : MonoBehaviour
  9. {
  10. [SerializeField] int textID;
  11. [SerializeField] RectTransform layoutRebuildObject;
  12. static LanguageEnum currentLanguageEnum = LanguageEnum.Chinese;
  13. static LanguageDefault language = null;
  14. static HashSet<TextAutoLanguage> textAutoLanguages = new HashSet<TextAutoLanguage>();
  15. public string[] textFormatArgs = {};
  16. [SerializeField] LanguageFontSize[] languageFontSizes = {};
  17. private static bool inited = false;
  18. public static void Init()
  19. {
  20. if (inited) return;
  21. inited = true;
  22. int id = PlayerPrefs.GetInt("Language", 0);
  23. ChangeLanguage((LanguageEnum) id);
  24. }
  25. public static void ChangeLanguage(LanguageEnum languageEnum)
  26. {
  27. currentLanguageEnum = languageEnum;
  28. if (languageEnum == LanguageEnum.English)
  29. {
  30. language = new LanguageEnglish();
  31. }
  32. else if (languageEnum == LanguageEnum.Japan) {
  33. language = new LanguageJapan();
  34. }
  35. else
  36. {
  37. language = new LanguageDefault();
  38. }
  39. PlayerPrefs.SetInt("Language", ((int)languageEnum));
  40. foreach (var textAutoLanguage in textAutoLanguages)
  41. {
  42. try {
  43. textAutoLanguage.ApplyText();
  44. } catch (Exception e) { Debug.LogError(e.Message); }
  45. }
  46. }
  47. public static LanguageEnum GetLanguage()
  48. {
  49. Init();
  50. if (language is LanguageEnglish)
  51. {
  52. return LanguageEnum.English;
  53. }
  54. else if (language is LanguageJapan) {
  55. return LanguageEnum.Japan;
  56. }
  57. return LanguageEnum.Chinese;
  58. }
  59. void Awake()
  60. {
  61. Init();
  62. }
  63. void Start()
  64. {
  65. textAutoLanguages.Add(this);
  66. ApplyText();
  67. }
  68. void OnDestroy()
  69. {
  70. textAutoLanguages.Remove(this);
  71. }
  72. /**记录组件的默认字体大小 */
  73. private int defaultFontSize = -1;
  74. public void SetText(int textID)
  75. {
  76. this.textID = textID;
  77. string text = language.GetType().GetField("text" + textID).GetValue(language).ToString();
  78. if (textFormatArgs.Length > 0)
  79. {
  80. text = String.Format(text, textFormatArgs);
  81. }
  82. Text textComp = GetComponent<Text>();
  83. if (textComp != null)
  84. {
  85. textComp.text = text;
  86. //如果有指定当前语言的字体大小,就更新字体大小,否则恢复默认字体大小
  87. if (defaultFontSize == -1)
  88. { //首次记录组件的默认字体大小
  89. defaultFontSize = textComp.fontSize;
  90. }
  91. else
  92. {
  93. textComp.fontSize = defaultFontSize;
  94. }
  95. if (languageFontSizes.Length > 0)
  96. {
  97. foreach (var languageFontSize in languageFontSizes)
  98. {
  99. if (languageFontSize.language == currentLanguageEnum)
  100. {
  101. textComp.fontSize = languageFontSize.fontSize;
  102. }
  103. }
  104. }
  105. //重置指定节点的布局
  106. if (layoutRebuildObject)
  107. {
  108. LayoutRebuilder.ForceRebuildLayoutImmediate(layoutRebuildObject);
  109. }
  110. return;
  111. }
  112. ApplyLocalizationToTmpText(text);
  113. if (layoutRebuildObject)
  114. {
  115. LayoutRebuilder.ForceRebuildLayoutImmediate(layoutRebuildObject);
  116. }
  117. }
  118. /// <summary>
  119. /// 与 <see cref="TextAutoLanguage2"/> 一致:同物体上的 <see cref="TMP_InputField"/> 优先写 placeholder(提示语)或 textComponent;否则写 <see cref="TextMeshProUGUI"/>。
  120. /// </summary>
  121. static TMP_Text ResolveTmpTextTarget(TMP_InputField inputField, TextMeshProUGUI tmpOnSameObject)
  122. {
  123. if (inputField != null)
  124. {
  125. if (inputField.placeholder != null && inputField.placeholder is TMP_Text placeholderTmp)
  126. return placeholderTmp;
  127. if (inputField.textComponent != null)
  128. return inputField.textComponent;
  129. return tmpOnSameObject;
  130. }
  131. return tmpOnSameObject;
  132. }
  133. void ApplyLocalizationToTmpText(string text)
  134. {
  135. TMP_InputField tmpInput = GetComponent<TMP_InputField>();
  136. TextMeshProUGUI tmpUgUi = GetComponent<TextMeshProUGUI>();
  137. TMP_Text tmpTarget = ResolveTmpTextTarget(tmpInput, tmpUgUi);
  138. if (tmpTarget == null)
  139. return;
  140. tmpTarget.text = text;
  141. if (defaultFontSize == -1)
  142. {
  143. defaultFontSize = (int)tmpTarget.fontSize;
  144. }
  145. else
  146. {
  147. tmpTarget.fontSize = defaultFontSize;
  148. }
  149. if (languageFontSizes.Length > 0)
  150. {
  151. foreach (var languageFontSize in languageFontSizes)
  152. {
  153. if (languageFontSize.language == currentLanguageEnum)
  154. {
  155. if (languageFontSize.fontSize > 0) tmpTarget.fontSize = languageFontSize.fontSize;
  156. if (languageFontSize.lineSpacing > 0) tmpTarget.lineSpacing = languageFontSize.lineSpacing;
  157. break;
  158. }
  159. }
  160. }
  161. }
  162. public int GetTextID()
  163. {
  164. return this.textID;
  165. }
  166. void ApplyText()
  167. {
  168. SetText(textID);
  169. }
  170. }
  171. class LanguageDefault {
  172. public string text0 = "";
  173. public string text1 = "昵 称 :";
  174. public string text2 = "手 机 号 :";
  175. public string text3 = "性 别 :";
  176. public string text4 = "出生日期 :";
  177. public string text5 = "国 籍 :";
  178. public string text6 = "所在地区 :";
  179. public string text7 = "保存";
  180. public string text8 = "男";
  181. public string text9 = "女";
  182. public string text10 = "未填写";
  183. public string text11 = "昵称不能为空";
  184. public string text12 = "保存成功";
  185. public string text13 = "我的";
  186. public string text14 = " 连接 ";
  187. public string text15 = "正在连接";
  188. public string text16 = "连接成功";
  189. public string text17 = "断开连接";
  190. public string text18 = "神弓";
  191. public string text19 = "神箭";
  192. public string text20 = "设置";
  193. public string text21 = "教程";
  194. public string text22 = "商城";
  195. public string text23 = "设备";
  196. public string text24 = "账 号 :";
  197. public string text25 = "密 码 :";
  198. public string text26 = "找回密码";
  199. public string text27 = "新用户注册";
  200. public string text28 = "账 号 :";
  201. public string text29 = "密 码 :";
  202. public string text30 = "确认密码 :";
  203. public string text31 = "昵 称 :";
  204. public string text32 = "性 别 :";
  205. public string text33 = "登录";
  206. public string text34 = "手 机 号 :";
  207. public string text35 = "验 证 码 :";
  208. public string text36 = "新 密 码 :";
  209. public string text37 = "确认密码 :";
  210. public string text38 = "获取";
  211. public string text39 = "账 号";
  212. public string text40 = "手机号";
  213. public string text41 = "请输入账号";
  214. public string text42 = "请输入密码";
  215. public string text43 = "登录成功";
  216. public string text44 = "密码错误";
  217. public string text45 = "该用户尚未注册";
  218. public string text46 = "账号长度至少6位";
  219. public string text47 = "密码长度至少6位";
  220. public string text48 = "两次输入的密码不一致";
  221. public string text49 = "请输入游戏昵称";
  222. public string text50 = "该用户无法重复注册";
  223. public string text51 = "注册成功";
  224. public string text61 = "请连接设备";
  225. public string text62 = "关闭";
  226. public string text63 = "商品";
  227. public string text64 = "背包";
  228. public string text65 = "已装备";
  229. public string text66 = "购买";
  230. public string text67 = "属性";
  231. public string text68 = "操作难度 : ";
  232. public string text69 = "设备教程";
  233. public string text70 = "游戏教程";
  234. public string text71 = "角色选择";
  235. public string text72 = "玩家1";
  236. public string text73 = "玩家2";
  237. public string text74 = "开始游戏";
  238. public string text87 = "本轮玩家";
  239. public string text88 = "继续";
  240. public string text89 = "主页";
  241. public string text90 = "分享";
  242. public string text91 = "再来";
  243. public string text92 = "友谊赛";
  244. public string text93 = "当前玩家";
  245. public string text94 = "选择距离";
  246. public string text95 = "得分:";
  247. public string text96 = "新手教程";
  248. public string text97 = "返回主页";
  249. public string text98 = "完成";
  250. public string text99 = "闯关";
  251. public string text100 = "限时";
  252. public string text101 = "排行榜";
  253. public string text102 = "游戏";
  254. public string text103 = "绑定";
  255. public string text104 = "结束";
  256. public string text105 = "胜利";
  257. public string text106 = "失败";
  258. public string text107 = "已售罄";
  259. public string text108 = "使用";
  260. public string text109 = "使用中";
  261. public string text110 = "取消";
  262. public string text111 = "需要装备倍镜";
  263. public string text112 = "需要装备射速卡";
  264. public string text113 = "弓";
  265. public string text114 = "箭";
  266. public string text115 = "第 {0} 局";
  267. public string text117 = "长度{0}~{1}位,限英文和数字";
  268. public string text118 = "靶子已超出当前射程,请加大拉距或去商城装备射速卡!";
  269. public string text119 = "长度{0}~{1}位,可使用中文";
  270. //设备页面
  271. public string text500 = "陀螺仪初始化";
  272. public string text501 = "地磁计初始化";
  273. public string text502 = "视角回正";
  274. public string text503 = "16G加速计";
  275. public string text504 = "64G加速计";
  276. //主页面
  277. public string text122 = "排行榜";
  278. public string text123 = "好友";
  279. public string text124 = "开始游戏";
  280. public string text125 = "联机游戏";
  281. //我的
  282. public string text126 = "编 号 :";
  283. //开始游戏
  284. public string text133 = "开始游戏";
  285. public string text127 = "闯关游戏";
  286. public string text128 = "限时游戏";
  287. public string text129 = "PK游戏";
  288. //PK模式选择页面
  289. public string text132 = "PK模式";
  290. public string text130 = "静止靶PK";
  291. public string text131 = "闯关PK";
  292. public string text401 = "选择关卡";
  293. //关卡选择
  294. public string text134 = "游戏模式";
  295. public string text135 = "野兔关卡";
  296. public string text136 = "野鸡关卡";
  297. public string text137 = "野狼关卡";
  298. //设置页面
  299. public string text302 = "背景音乐";
  300. public string text303 = "音效";
  301. public string text304 = "语言";
  302. public string text305 = "简体中文";
  303. public string text306 = "十字准心";
  304. public string text307 = "开";
  305. public string text308 = "关";
  306. public string text309 = "射箭难度";
  307. public string text310 = "简单";
  308. public string text311 = "普通";
  309. public string text312 = "困难";
  310. public string text313 = "实际箭重";
  311. public string text314 = "{0}克";
  312. //SetUpView1
  313. public string text315 = "游戏设置";
  314. public string text318 = "新手引导";
  315. public string text301 = "关于我们";
  316. public string text316 = "用户协议";
  317. public string text317 = "隐私政策";
  318. public string text300 = "退出登录";
  319. public string text400 = "退出游戏";
  320. //设备校准页面
  321. public string text76 = "视角归位";
  322. public string text77 = "上一步";
  323. public string text78 = "下一步";
  324. public string text79 = "完成";
  325. public string text80 = "视角回正";
  326. public string text81 = "实体弓指向正前方,然后点击视角回正。";
  327. public string text82 = "开始初始化";
  328. public string text83 = "停止初始化";
  329. public string text84 = "尽量尝试多角度旋转模块,直到XYZ三个象限中多点形成圆形为止。";
  330. public string text85 = "开始初始化";
  331. public string text86 = "校准时需要将瞄准模块静止放在桌面上。";
  332. public string text116 = "重新初始化";
  333. public string text120 = "校准效果不理想,请重新校准!";
  334. public string text121 = "取消初始化";
  335. //游戏场景通用UI信息
  336. public string text200 = "引导";
  337. public string text201 = "开镜";
  338. public string text202 = "加速";
  339. public string text203 = "视角归位";
  340. public string text204 = "查看靶子";
  341. public string text205 = "关闭";
  342. // 游戏规则
  343. public string text1000 = "在固定的时间内尽量射更多的箭。";
  344. public string text1001 = "总环数逐渐增加,挑战自己的纪录。";
  345. public string text2000 = "两个人轮流射箭,使用奥运会的规则进行PK。";
  346. public string text2001 = "比赛最多为5局,每局3支箭,交替射箭。";
  347. public string text2002 = "获胜者获得积分2分,打平各1分,输者不得积分。";
  348. public string text2003 = "先得6分者胜利,如5局打完是平局,则加赛一箭定胜负。";
  349. //道具名称
  350. public string text101000 = "{0}倍镜";
  351. public string text101001 = "{0}倍射速卡";
  352. // 道具介绍
  353. public string text111000 = "射箭瞄准时,视距放大{0}倍。";
  354. public string text111001 = "射箭时,射速增加{0}倍。";
  355. //设备名称
  356. public string text200000 = "反曲弓";
  357. public string text201000 = "18磅反曲弓";
  358. public string text201001 = "25磅反曲弓";
  359. public string text201002 = "碳纤维箭";
  360. // 设备介绍
  361. public string text211000 = "奥运比赛专用比赛弓";
  362. public string text211001 = "奥运比赛专用比赛弓";
  363. public string text211002 = "奥运比赛专用比赛箭";
  364. //审核时用到的临时文字-设置页面
  365. public string text1234560 = "基础设置";
  366. public string text1234561 = "退出应用";
  367. public string text1234562 = "开始";
  368. public string text1234563 = "联机";
  369. }
  370. class LanguageEnglish : LanguageDefault {
  371. public new string text1 = "Name :";
  372. public new string text2 = "Phone :";
  373. public new string text3 = "Gender :";
  374. public new string text4 = "Birthday :";
  375. public new string text5 = "Country :";
  376. public new string text6 = "Region :";
  377. public new string text7 = "Save";
  378. public new string text8 = "Male";
  379. public new string text9 = "Female";
  380. public new string text10 = "Not Filled In";
  381. public new string text11 = "Name Cannot Be Empty";
  382. public new string text12 = "Saved Successfully";
  383. public new string text13 = "My";
  384. public new string text14 = "Connect";
  385. public new string text15 = "Connecting";
  386. public new string text16 = "Connected";
  387. public new string text17 = " Break ";
  388. public new string text18 = "Bow";
  389. public new string text19 = "Arrow";
  390. public new string text20 = "SetUp";
  391. public new string text21 = "Course";
  392. public new string text22 = "Shop";
  393. public new string text23 = "Device";
  394. public new string text24 = "Account:";
  395. public new string text25 = "Password:";
  396. public new string text26 = "Retrieve Password";
  397. public new string text27 = "New User Register";
  398. public new string text28 = "Account :";
  399. public new string text29 = "Password :";
  400. public new string text30 = "Confirm Password :";
  401. public new string text31 = "Nickname :";
  402. public new string text32 = "Gender :";
  403. public new string text33 = "Login";
  404. public new string text34 = "Phone :";
  405. public new string text35 = "Code :";
  406. public new string text36 = "Password :";
  407. public new string text37 = "Confirm Password :";
  408. public new string text38 = "Get";
  409. public new string text39 = "Account";
  410. public new string text40 = "Phone Number";
  411. public new string text41 = "Please Enter Account";
  412. public new string text42 = "Please Enter Password";
  413. public new string text43 = "Login Successful";
  414. public new string text44 = "Wrong Password";
  415. public new string text45 = "User Not Register";
  416. public new string text46 = "Account At Least 6 Digits";
  417. public new string text47 = "Password At Least 6 Digits";
  418. public new string text48 = "Two Passwords Are Inconsistent";
  419. public new string text49 = "Please Enter Nickname";
  420. public new string text50 = "Unable To Re Register";
  421. public new string text51 = "Register Successful";
  422. public new string text61 = "Please Connect Device";
  423. public new string text62 = "Close";
  424. public new string text63 = "Products";
  425. public new string text64 = "Bag";
  426. public new string text65 = "Equipped";
  427. public new string text66 = "Buy";
  428. public new string text67 = "Property";
  429. public new string text68 = "Difficulty : ";
  430. public new string text69 = "Device Course";
  431. public new string text70 = "Game Course";
  432. public new string text71 = "Select PFP";
  433. public new string text72 = "Player1";
  434. public new string text73 = "Player2";
  435. public new string text74 = "Start";
  436. public new string text87 = "Current Round Player";
  437. public new string text88 = "Continue";
  438. public new string text89 = "Home";
  439. public new string text90 = "Share";
  440. public new string text91 = "Again";
  441. public new string text92 = "PvP";
  442. public new string text93 = "Player";
  443. public new string text94 = "Select Range";
  444. public new string text95 = "Score:";
  445. public new string text96 = "New Player Guide";
  446. public new string text97 = "Back";
  447. public new string text98 = "Complete";
  448. public new string text99 = "Challenge";
  449. public new string text100 = "Limit";
  450. public new string text101 = "Rank";
  451. public new string text102 = "Game";
  452. public new string text103 = "Bind";
  453. public new string text104 = "Over";
  454. public new string text105 = "Win";
  455. public new string text106 = "Lose";
  456. public new string text107 = "SoldOut";
  457. public new string text108 = "Use";
  458. public new string text109 = "Inuse";
  459. public new string text110 = "Cancel";
  460. public new string text111 = "Multiple Mirrors Is Required";
  461. public new string text112 = "Shoot Card Is Required";
  462. public new string text113 = "Bow";
  463. public new string text114 = "Arrow";
  464. public new string text115 = "Round {0}";
  465. public new string text117 = "Limit {0}~{1} Bit, English And Figures";
  466. public new string text118 = "The target has exceeded the current range, please increase the pull distance or go to the shop to equip the shoot card!";
  467. public new string text119 = "Limit {0}~{1} Bit, Can Use Chinese";
  468. //设备页面
  469. public new string text500 = "Gyr Init";
  470. public new string text501 = "Mag Init";
  471. public new string text502 = "ResetView";
  472. public new string text503 = "16G Acc";
  473. public new string text504 = "64G Acc";
  474. //主页面
  475. public new string text122 = "Rank";
  476. public new string text123 = "Friend";
  477. public new string text124 = "Start";
  478. public new string text125 = "Online";
  479. //我的
  480. public new string text126 = "ID :";
  481. //开始游戏
  482. public new string text133 = "Stand Alone";
  483. public new string text127 = "Hunting";
  484. public new string text128 = "Target";
  485. public new string text129 = "1 v 1";
  486. //PK模式选择页面
  487. public new string text132 = "Dart Game";
  488. public new string text130 = "TARGET";
  489. public new string text131 = "HUNTING";
  490. public new string text401 = "Select Level";
  491. //关卡选择
  492. public new string text134 = "Hunting";
  493. public new string text135 = "Hare";
  494. public new string text136 = "Pheasant";
  495. public new string text137 = "Wild Wolf";
  496. //设置页面
  497. public new string text302 = "BGM";
  498. public new string text303 = "Sound";
  499. public new string text304 = "Language";
  500. public new string text305 = "English";
  501. public new string text306 = "CrossHair";
  502. public new string text307 = "ON";
  503. public new string text308 = "OFF";
  504. public new string text309 = "ShootLevel";
  505. public new string text310 = "Easy";
  506. public new string text311 = "Normal";
  507. public new string text312 = "Hard";
  508. public new string text313 = "ArrowWeight";
  509. public new string text314 = "{0}Gram";
  510. //SetUpView1
  511. public new string text315 = "Game Settings";
  512. public new string text318 = "Novice Guidance";
  513. public new string text301 = "About Us";
  514. public new string text316 = "User Agreement";
  515. public new string text317 = "Privacy Policy";
  516. public new string text300 = "Quit Login";
  517. public new string text400 = "Quit Game";
  518. //设备校准页面
  519. public new string text76 = "ResetView";
  520. public new string text77 = "Back";
  521. public new string text78 = "Next";
  522. public new string text79 = "Complete";
  523. public new string text80 = "ResetView";
  524. public new string text81 = "Point the solid bow to the front, and then click \nthe angle of view to return to the front.";
  525. public new string text82 = "Calibrate";
  526. public new string text83 = "Stop";
  527. public new string text84 = "Try to rotate the module at multiple angles until \nmultiple points in the three quadrants of XYZ form a circle.";
  528. public new string text85 = "Calibrate";
  529. public new string text86 = "During calibration, the aiming module needs to be placed on the desktop.";
  530. public new string text116 = "Redo";
  531. public new string text120 = "The calibration effect is not ideal, please recalibrate!";
  532. public new string text121 = "Cancel";
  533. //游戏场景通用UI信息
  534. public new string text200 = "Tips";
  535. public new string text201 = "Scope";
  536. public new string text202 = "Acc";
  537. public new string text203 = "Aim Reset";
  538. public new string text204 = "Target";
  539. public new string text205 = "Close";
  540. // 游戏规则
  541. public new string text1000 = "Shoot as many arrows as you can at a fixed time.";
  542. public new string text1001 = "The total number of rings gradually increased, \nchallenging their own records.";
  543. public new string text2000 = "Two people arched in turn, using the rules of the Olympic Games PK.";
  544. public new string text2001 = "The maximum number of games is 5, 3 arrows in each game, \nshooting arrows alternately.";
  545. public new string text2002 = "The winner will get 2 points and 1 draw each. \nThe loser will not get points.";
  546. public new string text2003 = "If the first 6 points win, \nif it is a draw at the end of the 5 innings, \nthe game will be decided by one arrow.";
  547. //道具名称
  548. public new string text101000 = "{0}X Mirrors";
  549. public new string text101001 = "{0}X Shoot";
  550. // 道具介绍
  551. public new string text111000 = "When shooting, the sight distance is enlarged by {0} times.";
  552. public new string text111001 = "In archery, the speed increases by {0} times.";
  553. //设备名称
  554. public new string text200000 = "Recurve Bow";
  555. public new string text201000 = "18 Pound Bow";
  556. public new string text201001 = "25 Pound Bow";
  557. public new string text201002 = "Carbon Giber Arrow";
  558. // 设备介绍
  559. public new string text211000 = "Special bow for Olympic Games.";
  560. public new string text211001 = "Special bow for Olympic Games.";
  561. public new string text211002 = "Special competition arrow for Olympic Games.";
  562. //审核时用到的临时文字-设置页面
  563. public new string text1234560 = "Base Settings";
  564. public new string text1234561 = "Quit App";
  565. public new string text1234562 = "Start";
  566. public new string text1234563 = "Online";
  567. }
  568. class LanguageJapan: LanguageDefault
  569. {
  570. public new string text0 = "";
  571. public new string text1 = "ニックネーム :";
  572. public new string text2 = "携帯番号 :";
  573. public new string text3 = "性別 :";
  574. public new string text4 = "生年月日 :";
  575. public new string text5 = "国籍 :";
  576. public new string text6 = "地域 :";
  577. public new string text7 = "保存";
  578. public new string text8 = "男性";
  579. public new string text9 = "女性";
  580. public new string text10 = "未入力";
  581. public new string text11 = "ニックネームは必須です";
  582. public new string text12 = "保存に成功しました";
  583. public new string text13 = "マイページ";
  584. public new string text14 = "接続";
  585. public new string text15 = "接続中";
  586. public new string text16 = "接続成功";
  587. public new string text17 = "接続解除";
  588. public new string text18 = "神弓";
  589. public new string text19 = "神箭";
  590. public new string text20 = "設定";
  591. public new string text21 = "チュートリアル";
  592. public new string text22 = "ショップ";
  593. public new string text23 = "デバイス";
  594. public new string text24 = "アカウント :";
  595. public new string text25 = "パスワード :";
  596. public new string text26 = "パスワードを忘れた";
  597. public new string text27 = "新規登録";
  598. public new string text28 = "アカウント :";
  599. public new string text29 = "パスワード :";
  600. public new string text30 = "パスワード確認 :";
  601. public new string text31 = "ニックネーム :";
  602. public new string text32 = "性別 :";
  603. public new string text33 = "ログイン";
  604. public new string text34 = "携帯番号 :";
  605. public new string text35 = "認証コード :";
  606. public new string text36 = "新しいパスワード :";
  607. public new string text37 = "確認パスワード :";
  608. public new string text38 = "取得";
  609. public new string text39 = "アカウント";
  610. public new string text40 = "携帯番号";
  611. public new string text41 = "アカウントを入力してください";
  612. public new string text42 = "パスワードを入力してください";
  613. public new string text43 = "ログイン成功";
  614. public new string text44 = "パスワードが間違っています";
  615. public new string text45 = "ユーザーが登録されていません";
  616. public new string text46 = "アカウントは6文字以上必要です";
  617. public new string text47 = "パスワードは6文字以上必要です";
  618. public new string text48 = "2回のパスワードが一致しません";
  619. public new string text49 = "ゲームのニックネームを入力してください";
  620. public new string text50 = "このユーザーはすでに登録されています";
  621. public new string text51 = "登録成功";
  622. public new string text61 = "デバイスを接続してください";
  623. public new string text62 = "閉じる";
  624. public new string text63 = "商品";
  625. public new string text64 = "バッグ";
  626. public new string text65 = "装備中";
  627. public new string text66 = "購入";
  628. public new string text67 = "属性";
  629. public new string text68 = "操作難易度 : ";
  630. public new string text69 = "デバイスチュートリアル";
  631. public new string text70 = "ゲームチュートリアル";
  632. public new string text71 = "キャラクター選択";
  633. public new string text72 = "プレイヤー1";
  634. public new string text73 = "プレイヤー2";
  635. public new string text74 = "ゲーム開始";
  636. public new string text87 = "今回のプレイヤー";
  637. public new string text88 = "続ける";
  638. public new string text89 = "ホーム";
  639. public new string text90 = "共有";
  640. public new string text91 = "もう一度";
  641. public new string text92 = "フレンド戦";
  642. public new string text93 = "現在のプレイヤー";
  643. public new string text94 = "距離を選択";
  644. public new string text95 = "得点:";
  645. public new string text96 = "初心者チュートリアル";
  646. public new string text97 = "ホームへ戻る";
  647. public new string text98 = "完了";
  648. public new string text99 = "ステージモード";
  649. public new string text100 = "タイムアタック";
  650. public new string text101 = "ランキング";
  651. public new string text102 = "ゲーム";
  652. public new string text103 = "連携";
  653. public new string text104 = "終了";
  654. public new string text105 = "勝利";
  655. public new string text106 = "失敗";
  656. public new string text107 = "売り切れ";
  657. public new string text108 = "使用";
  658. public new string text109 = "使用中";
  659. public new string text110 = "キャンセル";
  660. public new string text111 = "スコープを装備してください";
  661. public new string text112 = "射速カードを装備してください";
  662. public new string text113 = "弓";
  663. public new string text114 = "矢";
  664. public new string text115 = "第 {0} ラウンド";
  665. public new string text117 = "{0}~{1}文字、英数字のみ使用可能";
  666. public new string text118 = "的が射程外です。引きを強くするか、ショップで射速カードを購入してください!";
  667. public new string text119 = "{0}~{1}文字、中国語も使用可能";
  668. // デバイスページ
  669. public new string text500 = "ジャイロ初期化";
  670. public new string text501 = "地磁気センサー初期化";
  671. public new string text502 = "視点リセット";
  672. public new string text503 = "16G加速度計";
  673. public new string text504 = "64G加速度計";
  674. // メインページ
  675. public new string text122 = "ランキング";
  676. public new string text123 = "フレンド";
  677. public new string text124 = "ゲーム開始";
  678. public new string text125 = "オンライン対戦";
  679. // マイページ
  680. public new string text126 = "ID :";
  681. // ゲーム開始
  682. public new string text133 = "ゲーム開始";
  683. public new string text127 = "ステージモード";
  684. public new string text128 = "タイムアタック";
  685. public new string text129 = "PKゲーム";
  686. // PKモード選択
  687. public new string text132 = "PKモード";
  688. public new string text130 = "静止ターゲットPK";
  689. public new string text131 = "ステージPK";
  690. public new string text401 = "ステージ選択";
  691. // ステージ選択
  692. public new string text134 = "ゲームモード";
  693. public new string text135 = "ウサギステージ";
  694. public new string text136 = "ニワトリステージ";
  695. public new string text137 = "オオカミステージ";
  696. // 設定ページ
  697. public new string text302 = "BGM";
  698. public new string text303 = "効果音";
  699. public new string text304 = "言語";
  700. public new string text305 = "簡体字中国語";
  701. public new string text306 = "クロスヘア";
  702. public new string text307 = "オン";
  703. public new string text308 = "オフ";
  704. public new string text309 = "射撃難易度";
  705. public new string text310 = "簡単";
  706. public new string text311 = "普通";
  707. public new string text312 = "難しい";
  708. public new string text313 = "実際の矢の重さ";
  709. public new string text314 = "{0}グラム";
  710. // 設定ページその2
  711. public new string text315 = "ゲーム設定";
  712. public new string text318 = "初心者ガイド";
  713. public new string text301 = "私たちについて";
  714. public new string text316 = "利用規約";
  715. public new string text317 = "プライバシーポリシー";
  716. public new string text300 = "ログアウト";
  717. public new string text400 = "ゲーム終了";
  718. // デバイスキャリブレーション
  719. public new string text76 = "視点リセット";
  720. public new string text77 = "前へ";
  721. public new string text78 = "次へ";
  722. public new string text79 = "完了";
  723. public new string text80 = "視点回正";
  724. public new string text81 = "実際の弓を正面に向け、「視点回正」を押してください。";
  725. public new string text82 = "初期化開始";
  726. public new string text83 = "初期化停止";
  727. public new string text84 = "XYZ三軸の円形ができるまで多角度で回転させてください。";
  728. public new string text85 = "初期化開始";
  729. public new string text86 = "キャリブレーション中はデバイスを静止させてください。";
  730. public new string text116 = "再初期化";
  731. public new string text120 = "キャリブレーションがうまくいきません。再試行してください!";
  732. public new string text121 = "初期化をキャンセル";
  733. // ゲーム共通UI
  734. public new string text200 = "ガイド";
  735. public new string text201 = "スコープON";
  736. public new string text202 = "加速";
  737. public new string text203 = "視点リセット";
  738. public new string text204 = "的を確認";
  739. public new string text205 = "閉じる";
  740. // ゲームルール
  741. public new string text1000 = "制限時間内にできるだけ多くの矢を射ちましょう。";
  742. public new string text1001 = "総得点が徐々に増え、自分の記録に挑戦します。";
  743. public new string text2000 = "2人で交互に矢を放ち、オリンピックルールで対戦します。";
  744. public new string text2001 = "最大5ラウンド、各ラウンド3本の矢を交互に射ちます。";
  745. public new string text2002 = "勝者に2点、引き分けは各1点、敗者は0点です。";
  746. public new string text2003 = "先に6点を取った方が勝利。5ラウンド終了で同点の場合、1本勝負で決着します。";
  747. // アイテム名
  748. public new string text101000 = "{0}倍スコープ";
  749. public new string text101001 = "{0}倍射速カード";
  750. // アイテム説明
  751. public new string text111000 = "照準時、視野が{0}倍に拡大されます。";
  752. public new string text111001 = "矢を射つ速度が{0}倍に上がります。";
  753. // デバイス名
  754. public new string text200000 = "リカーブボウ";
  755. public new string text201000 = "18ポンド リカーブボウ";
  756. public new string text201001 = "25ポンド リカーブボウ";
  757. public new string text201002 = "カーボンアロー";
  758. // デバイス説明
  759. public new string text211000 = "オリンピック競技用のリカーブボウ";
  760. public new string text211001 = "オリンピック競技用のリカーブボウ";
  761. public new string text211002 = "オリンピック競技用の矢";
  762. // 審査用一時テキスト
  763. public new string text1234560 = "基本設定";
  764. public new string text1234561 = "アプリ終了";
  765. public new string text1234562 = "開始";
  766. public new string text1234563 = "オンライン";
  767. }