This was posted by Alfred from valve in another thread ..

--

 Alfred Reynolds  <[EMAIL PROTECTED]> to hlcoders Dec 7

(...)
Note that hl2_english.txt will NOT be loaded
by your mod by default (we may change this behavior). If you need it to
be loaded you can simply add this to your client.dll:

       vgui::localize()->AddFile( vgui::filesystem(),
"Resource/hl2_%language%.txt" );

This will cause all of the hl2 strings to be loaded.

- Alfred
---


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

Reply via email to