View Issue Details

IDProjectCategoryView StatusLast Update
0002783The Dark ModCodingpublic23.06.2011 18:53
Reportertels Assigned Totels  
Status resolvedResolutionfixed 
Product VersionTDM 1.06 
Target VersionTDM 1.07Fixed in VersionTDM 1.07 
Summary0002783: Support translated HUD (weapon names, inventory groups), shopitems, messages etc.
DescriptionThe code that shows the weapons on the HUD, as well as the code that displays items in the shop does not load translated strings for "#str_12345", instead it shows the raw "#str_12345" string. This needs a call to

common->GetLanguageDict()->GetString( stringhere );

in between.
TagsNo tags attached.


child of 0002779 confirmed Translate the menu and HUD into different languages 




20.06.2011 17:08

reporter   ~0003888

Translation of shop items and their description has been added with revision 0004896.


20.06.2011 17:35

reporter   ~0003890

Translation of objectives works now with revision 0004897.


20.06.2011 19:30

reporter   ~0003891

"Game Saved" is now translated on the HUD, too.

Also found that our code does around line 529 in game/game_local.cpp:

const char *szLang = cvarSystem->GetCVarString( "sys_lang" );
 renderSystem->RegisterFont( va( "fonts/%s/%s", szLang, "an" ), font_an );
 renderSystem->RegisterFont( va( "fonts/%s/%s", szLang, "bank" ), font_bank );
 renderSystem->RegisterFont( va( "fonts/%s/%s", szLang, "micro" ), font_micro );

We might implement a fall-back to English here.


23.06.2011 14:05

reporter   ~0003899

Weapon names on the HUD, item names upon pickup, location names as well as "Corpse" and "Body" on things you shoulder are now translateable.


23.06.2011 18:53

reporter   ~0003900

Cycling through categories with translated names (via to key bind), using items with names like '#str_01234" work now, as well as a few other small things like GUI message boxes.

So the code side is now complete, unless we find some more untranslated strings. But in this case these things are easily fixed.

Issue History

Date Modified Username Field Change
19.06.2011 21:34 tels New Issue
19.06.2011 21:34 tels Status new => assigned
19.06.2011 21:34 tels Assigned To => tels
19.06.2011 21:34 tels Relationship added child of 0002779
20.06.2011 17:08 tels Note Added: 0003888
20.06.2011 17:35 tels Note Added: 0003890
20.06.2011 19:30 tels Note Added: 0003891
23.06.2011 11:13 tels Summary Support translated HUD strings, shopitems etc => Support translated HUD (weapon names, inventory groups), shopitems, messages etc.
23.06.2011 14:05 tels Note Added: 0003899
23.06.2011 18:53 tels Note Added: 0003900
23.06.2011 18:53 tels Status assigned => resolved
23.06.2011 18:53 tels Fixed in Version => TDM 1.07
23.06.2011 18:53 tels Resolution open => fixed