Moho internatiolization

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Moho internatiolization

Post by maxic »

Hello everyone. I've got a question.
I'm trying to translate parts of Moho into Russian language via editing Moho.5.0.strings file. But as soon as I write smth in Russian there (in cp1251 charset), I get nothing readable in the menus, because ISO-8859-1 charset seems to be used there. How can I change the charset or recode my Russian strings to be shown properly? I'll be grateful for any advice.
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Sorry, but Moho cannot make use of two-byte characters, so that makes it impossible to translate the Moho interface into Cyrillic characters.
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Post by maxic »

MoHo uses the font system (OS) or Built - in?
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

By default, Moho uses a built-in font, but can be made to use the system font, or any other font you choose.

However, this won't fix the problem. It's the way Moho's user interface library works - it won't make use of two-byte characters no matter which font is used.
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Post by maxic »

How to choose other font?


Then I could create a font in which English symbols has replaced with cyrillics.
User avatar
Lost Marble
Site Admin
Posts: 2347
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Hmm, interesting idea. However, if you replace the english letters then any Moho tutorial or example files you open will display strange things for layer names and such.

Anyway, if you want to go ahead and try this, here's how to set the font Moho uses:

Open the file Moho.user.settings in a text editor like Notepad. On Windows, this file is located at C:\Documents and Settings\*username*\Application Data\Lost Marble\Moho\Moho.user.settings (the exact location may vary a bit depending on your version of Windows).

Add the following lines to this file:

"SmallFontSize" "8"
"LargeFontSize" "10"
"RegularFont" "times.ttf"
"BoldFont" "timesbd.ttf"
"ItalicFont" "timesi.ttf"

This is just an example - change the actual font names to the fonts you wish to use, and if you wish, adjust the font sizes as well. Good luck!
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Post by maxic »

Thanks for the help. English symbols certainly should be let alone. I shall replace bad (sample - Ôàéë) on good. :D
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Post by maxic »

All works!!! :lol:
Once again many thanks!
It are necessary to transfer scripts and files of the help. Then it will be possible to write instal.exe
Image
GusM
Posts: 19
Joined: Thu Aug 05, 2004 5:25 pm
Location: Valencia - Spain
Contact:

Post by GusM »

I would like to do the spanish translation for the Moho UI, were can I find the "Moho.5.string" file? I am on MacOsX 10.3.6, have made a system search and it doesn´t find anyone...

Thank you in advance,
Gustavo Muñoz
User avatar
maxic
Posts: 64
Joined: Wed Sep 22, 2004 8:24 am
Location: Moscow, Russian Federation
Contact:

Post by maxic »

Take an English file here:
http://www.lostmarble.com/moho/extras/t ... ions.shtml
And then translate. :wink:
GusM
Posts: 19
Joined: Thu Aug 05, 2004 5:25 pm
Location: Valencia - Spain
Contact:

Post by GusM »

Thank you very much :)

Gustavo Muñoz
Post Reply