Jump to content
Korean Random
goofy67

GUI.Text and helpers.i18n

Recommended Posts

Is there a way to make this work?

import GUI
from helpers import i18n

message = i18n.makeString('#settings:DECALS_QUALITY')
gui_text = GUI.Text(message)
GUI.addRoot(gui_text)

As long as message contains only ascii-characters (english client), everything is fine. With unicode (as eg. russian, german, french,.. ) all non-ascii-characters are messed up.

Share this post


Link to post

Short link
Share on other sites

As long as message contains only ascii-characters (english client), everything is fine. With unicode (as eg. russian, german, french,.. ) all non-ascii-characters are messed up.

There is a font problem. Only characters, existing in BW font, could be used. Russian supported on RU client, as well as Latin characters, but umlaut need to be replaced manually. Try to open textures from system/font.

Use Flash instead. There is full unicode support, if your font have required characters, of course.

Share this post


Link to post

Short link
Share on other sites

Use Flash instead. There is full unicode support, if your font have required characters, of course.

 

Thank you for youe answer. But I think it is not worth the effort to create an extra flash-file for just a single line of text in a tiny script..

 

Or is there another way to create a simple text-message in lobby? (besides message-center, I know that)

Share this post


Link to post

Short link
Share on other sites

Or is there another way to create a simple text-message in lobby

What you mean about simple message? In lobby you can append text to some other text... sometimes HTML is supported.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...