Scripts / [SOLVED] Other languages for UI?

Author
Message
DenZelik
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 2nd Dec 2018 10:15
Hello.
Tell me, all the functions like Prompt, Text can support other languages except English? If so, can you please explain how.

Thank you in advance.

The author of this post has marked a post as an answer.

Go to answer
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 2nd Dec 2018 19:56
Not automatically, you would have to script that yourself.

It would not be a difficult thing to though, simply create all your strings to be displayed and put them in a table keyed on the language and have the language selectable from a menu. Then everywhere you want to display some text select the appropriate string from the table.

The hardest part would be finding someone knowledgable in all the languages you want to support to translate and check for syntax and semantic meaning.

Been there, done that, got all the T-Shirts!
PM
DenZelik
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 8th Dec 2018 12:10
No, this is something I know, but the problem is that when I write text in another language (in my case in Russian) to the Text function, he does not see it at all. All features only support text in English. So I want to know if you can somehow add other languages.

Although there is an idea to make it not with text, but to make images with the necessary language in other programs (but this is already a perversion)
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 8th Dec 2018 14:30
This post has been marked by the post author as the answer.
Ahh, I see what you mean. If you need special characters I think you will have tomake you're own font and load it.
From global.lua:
"SetFont: SetFont ( "myFont : 1) To change in game font. Fonts 1-3 are the default ones used.
NOTE: You can place your texture atlas bitmap font file in the Files\fontbank\ folder with the name FPSCR-Font-XX.png where XX is the unique name for your font. When you want to use it, simply call the command SetFont ( "XX", YY ) where XX is the unique name above and YY is the index you want to 'overwrite'. Remember to include the 'FPSCR-Font-XX-Subimages.fnt' file which describes the coordinates within the texture atlas image for the specific bitmap fonts contained therein."

I believe that works now.

Also you may find this interesting:
https://forum.game-guru.com/thread/219811#msg2602351
Been there, done that, got all the T-Shirts!
PM
DenZelik
6
Years of Service
User Offline
Joined: 4th Sep 2018
Location: Novoaltaisk
Posted: 11th Dec 2018 15:32
Thank you very much!

Login to post a reply

Server time is: 2024-12-22 14:49:41
Your offset time is: 2024-12-22 14:49:41