Tooltip Localization

Tooltip Localization

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Tooltip Localization

Post by trepan »

A fellow going by the nick "]SDF[Makhoaay" asked for some localization advice
in the lobby #moddev channel, so I told him I'd write a modified gui_tooltip.lua
to show localized info for units if he wrote the french translations. He wrote a few
translations, so here's the widget...

http://trepan.bzflag.bz/spring/gui_tooltip_l10n.zip

It would be nice to write a more general localization interface at some point.
It's a real pain to do, but nice for the non-english players.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

There's also a bug open in mantis to make Spring unicode aware.

Even more pain to do but the result in combination with localization would be even nicer :-)
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

I'd forgotten that I have my FontCharLast set to 255. This is required to
see the french accented characters. You can edit your ~/.springrc or use
regedit to change the value.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

A .reg file from ]SDF[Makhoaay to set FontCharLast:
http://makhoaay.googlepages.com/Accents ... Spring.reg
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Tooltip Localization

Post by zwzsg »

Can I have that lua file? Looks like the exemple I'd need to learn how to mod the tooltip.
Post Reply

Return to “Lua Scripts”