ash47 / Frota

An addon for Dota 2, I intend for it to contain several sub game modes such as Legends of Dota and Random OMG
65 stars 73 forks source link

Hello! How to change the language file #190

Closed hyyyp closed 10 years ago

hyyyp commented 10 years ago

-console ILocalize::AddFile() failed to load file "resource/addon_english.txt". ILocalize::AddFile() failed to load file "resource/addon_schinese.txt".

Language files call fails?

ash47 commented 10 years ago

Is this on the server or a client? Have you got the latest version, or an old one? (language files were renamed around a month ago)

hyyyp commented 10 years ago

New Frota, using both server and client are the latest Frota, discovered resource folder prefix: addon_, how to I change the language?

ash47 commented 10 years ago

Oh, I see. The only way I know is via steam. Steam Settings --> Interface --> Language

I think it may ask you to restart steam, after that, Frota (and all of dota) will be in your chosen language.

hyyyp commented 10 years ago

Oh, you mean the service side of the steam needed to set the language for the language I want to change? Thus Frota language change?

ash47 commented 10 years ago

Yes, Frota is hooked into the steam / dota language system. Translations, etc, happen automatically if you set your strings up nicely like they are in Frota :D (for the most part)

hyyyp commented 10 years ago

After I changed and found Frota or use the default English

ash47 commented 10 years ago

Hell, if you really want to use a different language without screwing around in Steam, just rename the language files (and possibly change the first line)

hyyyp commented 10 years ago

OK Frota called language I really want to change, but the console was prompt:

Ignoring non-unicode close caption file resource/addon_schinese.txt ILocalize::AddFile() failed to load file "resource/addon_schinese.txt". Loading custom UI: CDOTA_SF_Hud_Custom::Init frota

about AddFile() ?

ash47 commented 10 years ago

Ah, encodings -- we've had tons of trouble with encoding these language files. When you save it, you need to ensure it's being saved as unicode.

If you're using windows (and using notepad on windows), you'll see something like this: http://i.imgur.com/t3KHGmo.png

hyyyp commented 10 years ago

Oh, I'm trying to change

ash47 commented 10 years ago

Looks like there are saved incorrectly in github -- I have fixed them 1000000 times, guess they are broken again, I'll see if i have an old copy to replace the broken ones with.

hyyyp commented 10 years ago

Your language file, the default is UTF8 encoding

ash47 commented 10 years ago

There we go -- Just pushed something that should change chinese to be using unicode again --- siiiiggghhhh

hyyyp commented 10 years ago

https://github.com/ash47/Frota/tree/master/resource/addon_schinese.txt

ash47 commented 10 years ago

Ya, I just updated...

hyyyp commented 10 years ago

Thank you for your help, I successfully modified the language file

ash47 commented 10 years ago

Awesome, if you have any more issues -- you know where to find me -- This project is basically dead though, all I'm interested in doing is keeping it running -- Working on newer mods now :P