home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
problemy
/
problemy.exe
/
M2Combo.exe
/
Plugin
/
lan.js
< prev
next >
Wrap
Text File
|
2003-12-18
|
6KB
|
135 lines
/**********************************************************************
*=======================================================================
* This script is design for MyIE2 sidebar plugin
* Requirements:
* Windows Media Player 9 Series or later;
* IE 6.0;
* MyIE2 0.8 Version or later.
* Author:
* Ptma (or AKing)
* Mailto:ptma@163.net
*=======================================================================
* ┤╦╜┼▒╛╙├╙┌MyIE2▓α▒▀└╕▓σ╝■
* ╧╡═│╨Φ╟≤ú║
* Windows Media Player 9 Series ╗≥╕ⁿ╨┬╡─░µ▒╛ú╗
* IE 6.0ú╗
* MyIE2 0.8 ╗≥╕ⁿ╨┬╡─░µ▒╛íú
* ╫≈╒▀╨┼╧óú║
* Ptma (╙╓ú║AKing)
* ╡τ╫╙╙╩╝■:ptma@163.net
*=======================================================================
**********************************************************************/
var language;
language=window.external.m2_readIni('WMP Player','config.ini','General','language','');
function findLngFiles() //┤╙language─┐┬╝╝╙╘╪╙∩╤╘╬─╝■╡╜╧┬└¡▓╦╡Ñ
{
var f1,fc,s;
//fso = new ActiveXObject("Scripting.FileSystemObject");
fo = fso.GetFolder('plugin\\WMP\\language');
fc = new Enumerator(fo.files);
for (; !fc.atEnd(); fc.moveNext())
if ((fc.item().name.substr(fc.item().name.lastIndexOf('.')))=='.ini')
{ s=window.external.m2_readIni('WMP Player','language/'+fc.item().name,'General','lngName','');
if (s.length>0)
lngOption.options[lngOption.options.length] = new Option(s,fc.item().name);
}
}
function setLng(v) //╔Φ╓├╙∩╤╘
{
window.external.m2_writeIni('WMP Player','config.ini','General','language',v);
language=v;
}
function lngStr(section,item) //┤╙╡▒╟░╡─╙∩╤╘╬─╝■╓╨╚í╓╞╢¿╨í╜┌╡─╓╡
{
var s=window.external.m2_readIni('WMP Player','language/'+language,section,item,'');
if (s.length<=0)
s=window.external.m2_readIni('WMP Player','language/English.ini',section,item,''); //╚τ╣√╒╥▓╗╡╜ini╓╨╕├╨í╜┌╡─╓╡ú¼╘≥╖╡╗╪English.ini╓╨╡─╓╡
return s;
}
function pStats()
{
var NewState=Player.playState;
var mytext='';
switch (NewState)
{
case 1:{mytext = ' '+lngStr("State","Stoped");break;}
case 2:{mytext = ' '+lngStr("State","Paused");break;}
case 3:{mytext = ' '+lngStr("State","Playing");break;}
case 6:{mytext = ' '+lngStr("State","Buffering")+'...';break;}
case 7:{mytext = ' '+lngStr("State","Waiting");break;}
case 9:{mytext = ' '+lngStr("State","Transitioning...");break;}
case 10:{mytext = ' '+lngStr("State","Ready");break;}
default:mytext = "";
}
disp1.innerHTML=mytext;
mdisp1.innerHTML=mytext;
}
function applyLng() //╙ª╙├╙∩╤╘╬─╝■
{
//lngOption.value=language; //╤í╓╨╡▒╟░╙∩╤╘
controlpanel.innerHTML=lngStr("Control","Control Panel");
CortrolUp.alt=lngStr("Control","Hide Control Panel");
CortrolDown.alt=lngStr("Control","Show Control Panel");
vol.alt=lngStr("Control","Volume")+': '+VolumePos+'%';
bal.alt=lngStr("Control","Balance")+': '+balancePos;
sound.alt=lngStr("Control","Mute");
seek.alt=lngStr("Control","Postion");
fulls.alt=lngStr("Control","Full screen");
sinfo.alt=lngStr("Control","Show current media informations");
loop.alt=lngStr("Control","loop");
shuff.alt=lngStr("Control","shuff");
MediaLib.alt=lngStr("MediaLibrary","Media Library");
WMPOption.alt=lngStr("Control","WMP Options")+' ...';
play.alt=lngStr("Control","Play");
stop.alt=lngStr("Control","Stop");
pause.alt=lngStr("Control","Pause");
prev.alt=lngStr("Control","Previous");
next.alt=lngStr("Control","Next");
of.alt=lngStr("Control","Open files...");
af.alt=lngStr("Control","Add files...");
adf.alt=lngStr("Control","Add Folder...");
ou.alt=lngStr("Control","Open URL...");
micmute.alt=lngStr("Control","Mute");
micinfo.alt=lngStr("Control","Show current media informations");
micloop.alt=lngStr("Control","loop");
micshuff.alt=lngStr("Control","shuff");
miclib.alt=lngStr("MediaLibrary","Media Library");
micoption.alt=lngStr("Control","WMP Options")+' ...';
micplay.alt=lngStr("Control","Play");
micstop.alt=lngStr("Control","Stop");
micpause.alt=lngStr("Control","Pause");
micprev.alt=lngStr("Control","Previous");
micnext.alt=lngStr("Control","Next");
micopen.alt=lngStr("Control","Open files...");
micadd.alt=lngStr("Control","Add files...");
micdir.alt=lngStr("Control","Add Folder...");
micurl.alt=lngStr("Control","Open URL...");
imgmic.alt=lngStr("Control","Micro-view");
imgnormal.alt=lngStr("Control","Normal view");
screenpanel.innerHTML=lngStr("Screen","Screen Panel");
ScreenUp.alt=lngStr("Screen","Hide Screen Panel");
ScreenDown.alt=lngStr("Screen","Show Screen Panel");
lyricpanel.innerHTML=lngStr("Lyric","Lyric Panel");
SmiUp.alt=lngStr("Lyric","Hide Lyric Panel");
SmiDown.alt=lngStr("Lyric","Show Lyric Panel");
capText1.innerHTML=lngStr("Lyric","Show Lyric Here(Lrc)");
PLpanel.innerHTML=lngStr("Playlist","Playlist Panel");
PLUp.alt=lngStr("Playlist","Hide Playlist Panel");
PLDown.alt=lngStr("Playlist","Show Playlist Panel");
imgReload.title=lngStr("Playlist","Reload Playlist");
imgMoveup.title=lngStr("Playlist","Move up");
imgMovedown.title=lngStr("Playlist","Move down");
imgDelete.title=lngStr("Playlist","Delete Selected Item");
imgDeleteAll.title=lngStr("Playlist","DeleteAll");
imgItemInfo.title=lngStr("Playlist","Show Informations of Selected Item");
imgAssociate.title=lngStr("Other","Associate Lyric");
pStats();
}