pokerogue
pokerogue copied to clipboard
add simplifed chinese locale, translation is complete now.
only for the code part and a small portion of text testing.
I think it would be better to precise if it is traditional Chinese or simplifed Chinese, including not just naming it "cn" both in the name of the folder and in the code
Hello! I can offer assistance with localizing games into Chinese. I have experience in localizing Pokémon fan games!
I think it would be better to precise if it is traditional Chinese or simplifed Chinese, including not just naming it "cn" both in the name of the folder and in the code
I am not 100% on this but the locales for simplified Chinese should be zh-cn while Traditional should be zh-tw
#592 I localized the skill names and traits into Chinese.
I think it would be better to precise if it is traditional Chinese or simplifed Chinese, including not just naming it "cn" both in the name of the folder and in the code
I am not 100% on this but the locales for simplified Chinese should be zh-cn while Traditional should be zh-tw
^ Thoughts on this?
src/system/settings.ts
have just been modified. The names of languages are now labeled in their repsective languages and not just in English, so you may need to edit it
- Normalized category fixes for supportedLngs lists
Currently the language codes in "supportedLngs" are all abbreviated, which leads to an error in the automatic language detect (i18next-browser-languagedetector #362 ) , at least for zh-CN recognition, which does not fall back to zh or so-called chs correctly.
- Replace similar pixel fonts to display GBK characters correctly.
The pokemon-emerald-pro.ttf does not contain GBK characters, causing Phaser to process GBK characters with the font being displayed on the user's side. For this reason, I replaced pokemon-emerald-pro.ttf with MuZaiPixel
- Fixed the vast majority of display overflow errors in translations due to inappropriate text lengths.
#670 Add wordwrap to Chinese words
I did not have envirement to do this... Who can modify the text.ts to change the font-family and font-size for chinese.
Code as below:
fontFamily: localStorage.getItem('prLang')==="zh_CN"?'simhei':'emerald',
styleOptions.fontFamily = localStorage.getItem('prLang')==="zh_CN"?'MuZaiPixel':'pkmnems';
and same judgement logic for changing font-size, let the size is smaller.