thanks desga..that's a dumb bug..it's due that $cmdline[0]=0 error message comes after declaring the locales at $cmdline[2].. so $cmdline[0] error message couldn't know what text to use in the messagebox because there was no locale parameter passed from kmeleon
the only fix for that is that if $cmdline[0] error message uses standard english text..it's not very important..i could just assign exit if cmdline[0]=0 ...i.e. not run if executed without parameters.
i fixed it now..please download again and check
now it's like that
f $cmdline[0]=0 then
msgbox(48,"K-Meleon Extensions Manager Error", "Only execute the manager from inside k-meleon. ")
else
$inini=(@scriptDir & "\kmextensions")
$kmunext="*.ini"
$inipath=("pending")
$kmprefs=($CmdLine[1] & "\prefs.js")
$kmprof=($CmdLine[1] & "\")
;$testrun=("c:\windows\notepad.exe")
$localepath=(@scriptdir & "\locales\" & $cmdline[2] & "\kmextman.ini")
$testfile=IniRead($localepath, "kmextman", "1", "")
if $testfile=("") then
$txt1=("K-Meleon Extensions Manager Error")
$txt2=("Only execute the manager from inside k-meleon. ")
$txt3=("K-meleon Extensions Manager")
$txt4=("uninstall")
$txt5=("edit macro")
$txt6=("run installer")
$txt7=("Note: K-meleon will be restarted on an uninstall/install")
$txt8=("can't uninstall: malformed ini, please reinstall this extension or contact the author")
$txt9=("The extension: ")
$txt10=(" has been uninstalled successfully. ")
$txt11=("macro editor mode: when done remember to save and restart k-meleon for changes to take effect")
$txt12=("this extension does not include a macro")
$txt13=("You don't have any installed extensions. Would you like to download extensions?")
$txt14=("installed extensions:")
$txt15=("install date:")
else
$txt1=IniRead($localepath, "kmextman", "1", "")
$txt2=IniRead($localepath, "kmextman", "2", "")
$txt3=IniRead($localepath, "kmextman", "3", "")
$txt4=IniRead($localepath, "kmextman", "4", "")
$txt5=IniRead($localepath, "kmextman", "5", "")
$txt6=IniRead($localepath, "kmextman", "6", "")
$txt7=IniRead($localepath, "kmextman", "7", "")
$txt8=IniRead($localepath, "kmextman", "8", "")
$txt9=IniRead($localepath, "kmextman", "9", "")
$txt10=IniRead($localepath, "kmextman", "10", "")
$txt11=IniRead($localepath, "kmextman", "11", "")
$txt12=IniRead($localepath, "kmextman", "12", "")
$txt13=IniRead($localepath, "kmextman", "13", "")
$txt14=IniRead($localepath, "kmextman", "14", "")
$txt15=IniRead($localepath, "kmextman", "15", "")
endif
now cmdline[0]=0 comes first and above everything else incase user tries to run directly and not from kmeleon menu, it will display message in english..only run from kmeleon..that's makes $txt2 and $txt3 no longer needed for localisation..but they won't harm so one learns from mistakes.. please test again, download from same links.
i think the extprop function is supported by all 3.x autotits but i can't be sure, in kem it \s only for getting the install date.. not used extensively like in image properties plus..so if it gives you any problems, hash it out all it's relying statements..you just won't have an install date..but as compiled exe, it shouldn't give you problems..i've tested it on 98 as well
i've uploaded it here if you want to play with it
http://kmext.sf.net/tests/ExtProp.au3
matt, the accents seem to be lost in the ansi encoded ini..not all of them..just certain ones with the n and c.. as a work around, i added a comma
after the c so it kinda looks like the polish c with accent. a proper fix for that would be encoding the ini in utf-8 like russian but this will limit polish windows 9x versions from reading the file..so better leave it ansi and add accents as ' (commas).. for users who have no problems with unicode ini, they can type the proper letter and change the encoding to utf-8 (this problem will further be investigated on the russian front cause they know all about utf-8 problems and windows 98 and ansi cause cyrillic characters have to be specially coded for ansi in 9x)
the macro localisation is usually left for the users to make.. simpple text file with kml extension with the name of its corresponding macro and they the required english text is translated after = sign for example..kml file:
extensions manager=extensions manager in locale language
that's it
but since i know the translations for it, i added translated kml file for all languages in the packages-except for russian because i can't even see it here- so now the menu command will automatically use proper locale from the kml file
in the future..maybe we can all update every macro on kmext with a kml file with all languages supported by kmeleon..they are not many really..just few text lines for every macro..restart, cookies, convert image...set as wallpaper etc few lines..very easy
edit: desga, sorry.. no, you won't find extprop with the default installation of au3..i downloaded it separately from somewhere..don't remeber, but it was developed by someone at their forums.. there are so many 'unofficial' au3 functions..very interesting ones but must be added manually..
i found this one one day.. very powerful:
http://thorsten-willert.de/Themen/FFau3/FF.au3/FF.au3
sometimes the link doesn't work directly..try going to main page
http://thorsten-willert.de/ it's under software meny ff.au3
it adds complete control over firefox and webpage manipulation through autoit.. maybe we can talk mr thorsten into making similar one for kmeleon
Edited 1 time(s). Last edit at 10/07/2009 11:43PM by disrupted.