Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JamesD] @ Matt You asked about some Flash player controls a couple of posts back. I cannot work on the preferences system, because I don't have the technical knowledge. I have put together a macro which may be of some help. It is only an interim solution, but hopefully better than nothing. The menu shows under TOOLS - PRIVACY. Anyone who wishes may add to my macro or ask me to add a function. If we need additional languages, just add them. In that case don't forget to change the range in the error checking. I put this together fast, so if you find an error, please report so the macro can be updated. [b]F_Mgr_i.kmm[/b] [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # # ---------- F_Mgr_i.kmm # # Dependencies : main.kmm # Resources : www.macromedia.com and www.adobe.com websites # Preferences : "k-meleon_FMgri.Language.ID" # Version : 1 # Author : JamesD # -------------------------------------------------------------------------------- _F_Mgr_i_Language { $_F_Mgr_i_Error = false ; $__FL1 = "Take note of the number for your \n" ; $__FL2 = "choice of language on the remote site. \n"; $__FL3 = "Enter that number at next prompt. \n\n"; $__FL4 = "1 - en-US \n"; $__FL5 = "2 - de-DE \n"; $__FL6 = "3 - es-ES \n"; $__FL7 = "4 - fr-FR \n"; $__FL8 = "5 - pl-PL \n"; $__FL9 = "6 - ru-RU "; alert($__FL1.$__FL2.$__FL3.$__FL4.$__FL5.$__FL6.$__FL7.$__FL8.$__FL9, "Remote Language list", INFO); $_F_Mgr_i_Lang = prompt("Enter the number for your language choice", "Remote Language choice"); $_F_Mgr_i_Lang < 1 ? $_F_Mgr_i_Error = true : 0; $_F_Mgr_i_Lang > 6 ? $_F_Mgr_i_Error = true : 0; $_F_Mgr_i_Error ? &_F_Mgr_i_Language3 : _F_Mgr_i_Language2 ; } _F_Mgr_i_Language2 { setpref(INT,"k-meleon_FMgri.Language.ID",$_F_Mgr_i_Lang); if (getpref(INT, "k-meleon_FMgri.Language.ID") != 0) { $F_Mgr_iC = false; } else { $F_Mgr_iC = true ; } } _F_Mgr_i_Language3 { alert("Your choice, ".$_F_Mgr_i_Lang." is out of range", "Error - choice must be 1 to 6", EXCLAIM); &_F_Mgr_i_Language ; } _F_Mgr_i_PlayerSettings { menugrayed = $F_Mgr_iC ; $_F_Mgr_i_LangU = getpref(INT,"k-meleon_FMgri.Language.ID"); $_F_Mgr_i_LangU==1?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html":0; $_F_Mgr_i_LangU==2?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/de/flashplayer/help/settings_manager02.html":0; $_F_Mgr_i_LangU==3?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/es/flashplayer/help/settings_manager02.html":0; $_F_Mgr_i_LangU==4?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/fr/flashplayer/help/settings_manager02.html":0; $_F_Mgr_i_LangU==5?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/pl/flashplayer/help/settings_manager02.html":0; $_F_Mgr_i_LangU==6?$_F_Mgr_P_URL="www.macromedia.com/support/documentation/ru/flashplayer/help/settings_manager02.html":0; if ($kTabs) { opentab( $_F_Mgr_P_URL ); } else { opennew ( $_F_Mgr_P_URL ); } } _F_Mgr_i_ViewCookies { menugrayed = $F_Mgr_iC ; $_F_Mgr_i_LangU = getpref(INT,"k-meleon_FMgri.Language.ID"); $_F_Mgr_i_LangU==1?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_en":0; $_F_Mgr_i_LangU==2?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_de":0; $_F_Mgr_i_LangU==3?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_es":0; $_F_Mgr_i_LangU==4?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_fr":0; $_F_Mgr_i_LangU==5?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_pl":0; $_F_Mgr_i_LangU==6?$_F_Mgr_V_URL="www.adobe.com/go/settmgr_storage_ru":0; if ($kTabs) { opentab( $_F_Mgr_V_URL ); } else { opennew ( $_F_Mgr_V_URL ); } } _F_Mgr_i_BuildMenu { $_F_Mgr_i_Popm = "Flash Manager (interim)"; setmenu("&Privacy",popup,$_F_Mgr_i_Popm,-1); if (getpref(INT, "k-meleon_FMgri.Language.ID") != 0) { $F_Mgr_iC = false; } else { $F_Mgr_iC = true ; } &_F_Mgr_i_BuildMenuP; } _F_Mgr_i_BuildMenuP { setmenu($_F_Mgr_i_Popm,macro,"Flash player privacy settings",_F_Mgr_i_PlayerSettings,0); setmenu($_F_Mgr_i_Popm,macro,"View Flash Cookies or LSO",_F_Mgr_i_ViewCookies,1); setmenu($_F_Mgr_i_Popm,macro,"Remote Language choice",_F_Mgr_i_Language,2); rebuildmenu($_F_Mgr_i_Popm); } $OnInit=$OnInit."_F_Mgr_i_BuildMenu;"; $macroModules=$macroModules."F_Mgr_i;"; [/code][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development