How can I add new Language Code ?

More
4 years 1 month ago #1040 by yuewah
I need the language code, zh-Hant (Tranditional Chinese), zh-Hans ( Simpified Chinese), and maybe en-HK ...

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #1045 by Frank
Hi,
Whenever you add a language in the editor, you can select any from the dropdown list or you can type your custom Language name / Language code.

However, if you want the language/code to show in the dropdown list, just add an entry for each new combination in the GoogleLanguages.cs file.
There you will find a list of all the languages, with their code and the code used by google translator (as not all codes/variations are supported by google)

e.g. You can add this
{"Chinese/New Simplified", 	new LanguageCodeDef(){Code="zh-Hans", GoogleCode="zh-CN"}},
{"Chinese/New Tranditional", 	new LanguageCodeDef(){Code="zh-Hant", GoogleCode="zh-TW"}},

That will update the dropdown lists and whenever you click to autotranslate with Google Translator, it will get redirected to the supported language codes (zh-CN, zh-TW)

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

Time to create page: 0.179 seconds
Template by JoomlaShine