General > AdrenalineX Development
Help translate AdrenalineX
[MAF]mooman:
--- Quote from: [UK]Rac3r on June 04, 2010, 02:57:41 pm ---Script is massive, too much text puts me off attempting if. Needs to be done though, I want to.
--- End quote ---
i'd be happy to help with replacing text with references (or whatever they're called)
if we could have a text file for every language and then we gave each text file to one of our admins who's fluent in that language, i think we could quickly have it done. together with the country detector thing and a menu that lets people choose the language from their local language(s) or english, i'm sure we'd have wayyy more players. i don't think text files really use resources.
examples:
English.txt:
--- Code: ---1=Hello %s!
etc
--- End code ---
French.txt
--- Code: ---1=Bonjour %s!
etc
--- End code ---
then when someone joins the %s would (hopefully) get replaced with their name.
[FSR]Ush:
eek mooman is a french guy
[MAF]Rac3r:
Nearly 5,000 posts Ush :P
Loading from a file, 1 line at a time, for all, does seem a bit too much. I would load the files you mentioned, for each country. Store to an array. The menu you mentioned, but give values of 0-6 (total languages support). Label it COUNTRY_ID
Then... this is the long pain the arse bit... give each SendClientMessage(, all dialog text an increase value.
TEXT_D
SecondClientMessage( player, colour, getArrayText[ COUNTRY_ID ] [ TEXT_D ]
It's big.
[MAF]mooman:
eek. couldn't it only read from the text file when it needs to?
[MAF]Rac3r:
I think so, I'll try it with the main text, see how handles. Don't really want to edit too much, just in case
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version