Commit Graph

15 Commits

Author SHA1 Message Date
Secretboy-SMR
1f7f13ffe1 It will use the english as default rather than tell you the value is not exist if there's no translation for currently language 2022-05-11 11:50:53 -07:00
Secretboy-SMR
98066f5015 Removed invalid code in getLanguageFileDescription,When the language is not discovered, it will use the built-in language fallback mechanism to fall back,At the same time, we also fix the issue that using language in the server does not save the settings of the server side locale 2022-05-11 03:11:10 -07:00
Secretboy-SMR
6be39eafd2 fixed language not found prompt 2022-05-11 01:18:10 -07:00
KingRainbow44
6894ab8aae Convert to the far superior config system 2022-05-11 00:30:07 -04:00
KingRainbow44
a25eb631c4 my poor, poor, language system (Formatting refactor) 2022-05-10 20:00:47 -04:00
Secretboy
b133825dd4 add /language command (#780)
* Fix the following issues:
1. HashMap non-thread-safe issus
2. Fix the same problem in pr621, but use a better implementation

Add the following functions:
1. There is now a language cache inside getLanguage to prepare for different languages corresponding to different time zones where the accounts in the server are located

* add /language command,each account has their own Locate
2022-05-10 05:33:45 -07:00
Secretboy-SMR
cba16f2868 Fix the following issues:
1. HashMap non-thread-safe issus
2. Fix the same problem in pr621, but use a better implementation

Add the following functions:
1. There is now a language cache inside getLanguage to prepare for different languages corresponding to different time zones where the accounts in the server are located
2022-05-09 23:15:58 -07:00
KingRainbow44
392ce26e32 Add warning for language fallback 2022-05-08 13:19:23 -07:00
KingRainbow44
1234a88c67 Fallback to the fallback fallback 2022-05-08 13:19:23 -07:00
KingRainbow44
330427f5a5 Simplify the language fallback system 2022-05-07 18:12:53 -04:00
Secretboy
22ebf35e69 Update Language.java 2022-05-06 21:54:07 -07:00
KingRainbow44
a93371a0d0 Fix for translation errors 2022-05-06 21:52:10 -04:00
KingRainbow44
e6cb97a437 Bug fixes 2022-05-06 21:04:39 -04:00
KingRainbow44
686df18b74 Ensure we have a fallback for localization 2022-05-06 18:57:49 -04:00
KingRainbow44
023c5baffe Convert to the superior language system. (pt. 1) 2022-05-05 23:57:55 -04:00