There are a lot of people which had problem with localeInfo because korean-characters and bad encoding, there's a clean file with refactored code.
- Removed all the code which isn't used like korean characters < bad encoding(editors problem) and more checks.
- Removed over 500 lines unused.
- Removed function mapping(**kwargs) and use constructor of dict > dict(**kwarg) which is same (**kwarg let you take arbitrary number of keyword arguments).
- Removed function CutMoneyString because is used just when locale is HongKong, CIBN.
- Removed check IsYMIR from function LoadLocaleData which load locale as locale/ymir or locale/we_korea.
- Removed GUILD_MARK_NOT_ENOUGH_LEVEL, GUILD_HEADQUARTER, GUILD_FACILITY, GUILD_OBJECT, MAP_TRENT02, MAP_WL, MAP_NUSLUCK, MAP_TREE2, LOGIN_FAILURE_WEB_BLOCK, LOGIN_FAILURE_BLOCK_LOGIN, CHANNEL_NOTIFY_FULL, now they're readed directly from locale_game.txt.
- Removed declared global variables.
- Removed checks for declaring LOCALE_FILE_NAME, FN_GM_MARK and use current path.
- Removed korean functions/lists/dictionaries/characters GetAuxiliaryWordType, JOBINFO_DATA_LIST, dictSingleWord, dictDoubleWord, etc.
- Removed unused things: locale mapping, 'all' list etc.
- Removed IN_GAME_SHOP_ENABLE declaration, should be declared inside of constInfo directly.
- Removed checks (locale path) - 949, 932 == app.GetDefaultCodePage(), IsHONGKONG, IsNEWCIBN() or IsCIBN10() from declaration of functions like (NumberToMoneyString, NumberToSecondaryCoinString, ...),now they're declared directly from old style (IsEUROPE() and not IsWE_KOREA() and not IsYMIR()).
- Added custom string Bitte melden Sie sich an, um diesen Link zu sehen. instead of Bitte melden Sie sich an, um diesen Link zu sehen. (old-style).
- Added new checks inside of LoadLocaleFile for security:
- Check if token3 (token1=original_string, token2=return-string, token3=function) function name exist in our types (SA, SNA, SAA, SAN) then try to call it.
- Check if string line have no tabs.
Diff-checker: (856 Removals + 301 Additions)
- Bitte melden Sie sich an, um diesen Link zu sehen.
Bitte melden Sie sich an, um diesen Link zu sehen.: