I asked this exact same question literally yesterday with a title "Localization Files Issue", go check it out in the archives.
Simply put, it's a bug in the engine. I was reluctant to say so before but now that there's a second person I don't feel alone :) You can put the call to AddFile anywhere you want, really, as long as it gets called at least once before the weapon selection menu is drawn. I personally put it in the CHudWeaponSelection constructor, which seemed most appropriate at the time. On Thu, 09 Dec 2004 20:30:54 -0600, Matthew Lewis <[EMAIL PROTECTED]> wrote: > I have been trying to get the localization to work in my mod without any > success. I added a token file into my mod's resource directory per > instructions given in the vgui SDK docs, but for whatever reason it > seems to ignore it. The game directory is "mymod", so I named the file > "mymod_english.txt". Nothing happened. I also tried "hl2_english.txt" as > well. That didn't work either. I'm sure it's something simple, but it > has me stumped. I also tried using an existing token file just in case I > had some typo that was keeping it from working. HL2 ignored it as well. > > Also, the vgui docs mention that you can use localize()->AddFile() to > add additional token files, but it failed to mention where you should do > this. I tried putting this call in the VGUI initialization code in an > effort to fix the above problem, but I'm not sure if that's the right > place for it. > > Thanks. > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

