FireFox Posted September 15, 2009 Posted September 15, 2009 (edited) Sorry, I didn't see your PM, I have to set my new email. Great work, but you should put the comment near the strings substitute to remember what stand for. Add comments if you want, personally I open the language file, and, as you can see the number of the $a_lng array correspond to the language file line number. You should check if the files of language exist, otherwise it gives an error. Dim $a_lng[_FileCountLines(@ScriptDir & '\language\040C.lng')], $f_ff, $f_nf, $s_lng _filecountlines gives -1 and the array cannot exist. No, because the default language (english) is installed when compiled. btw : I see what you mean, if you just have italian language (for example) then replace the Dim line by that : $f_ff = FileFindFirstFile(@ScriptDir & '\language\*.lng') If $f_ff = -1 Then Exit Msgbox(16, 'Error', 'No language file found !') Dim $a_lng[_FileCountLines(@ScriptDir & '\language\' & FileFindNextFile($f_ff))] Excuse me if you get an error, I wrote this on my iPod Cheers, FireFox. Edited September 15, 2009 by FireFox
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now