What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [(pre-)release] Advanced PSM Chat

[(pre-)release] Advanced PSM Chat
Author: Message:
Plan-1130
Full Member
***

I keep askin' myself: why?

Posts: 142
73 / Male / –
Joined: Feb 2005
O.P. Cool  RE: [(pre-)release] Advanced PSM Chat
I've decided to rewrite Advanced PSM Chat, and it's nearly finished.

One of the cool new features is, that it has Language packs!
Currently it now has a Dutch and an English translation.
It comes in the form of a script file, so do not download from any other sources but the first post of this thread.

See the attachment for the English translation, and how to translate, and then post it back here so I can include it in the new release.
Also if you don't want your accountname to be used in the About window, be sure to include it in your post ;)

Happy translating! :D

code:
/**
*        Please translate this into your language, and post it on http://shoutbox.menthix.net/showthread.php?tid=67394
*        Read carefully what to translate. This is a real script. Download languages only from the link above.
*       
*/


//Translate the strings
var PSM_IDLE                        = "Your text here? Type !psm <message>";
var RESPONSE_WAIT                    = "Thank you. Your message is placed inline.";
var RESPONSE_NOWAIT                    = "Thank you. Your message is displayed.";
var COMMAND_NOT_RECOGNIZED_TITLE    = "An error occurred:";
var COMMAND_NOT_RECOGNIZED            =  "The command you just typed had not been recognized.\n";
    COMMAND_NOT_RECOGNIZED            += "Try '/apsm help'.";
   
//Translate every second string
function translateAbout(PlusWnd){
    PlusWnd.SetControlText("BtnCancel",        "Cancel");
    PlusWnd.SetControlText("Lblversion",    "Version:");
    PlusWnd.SetControlText("Lblwho",        "by Sander Koning");
    PlusWnd.SetControlText("Lblother",        "Key functions:");
    PlusWnd.SetControlText("Lblf1",            "- Everyone can chat through your PSM");
    PlusWnd.SetControlText("Lblf2",            "- Command-based configuration");
    PlusWnd.SetControlText("Lblf3",            "- Queueing of messages");
}

function translateConfig(PlusWnd){
    PlusWnd.SetControlText("Enabled",                        "Enable");
    PlusWnd.SetControlText("lblMAXLENGTHSENDER",            "Characters to truncate the name:");
    PlusWnd.SetControlText("lblTIMEELAPSEMESSAGE",            "Seconds to display a psm:");
    PlusWnd.SetControlText("BtnReset",                         "Reset");
    PlusWnd.SetControlText("BtnSave",                         "Save");
    PlusWnd.SetControlText("BtnCancel",                     "Cancel");
}

//Translate the phrases in the tags (not the attributes)
function OnGetScriptMenu(Location){
    var ScriptMenu = "<ScriptMenu>";
    if(DISABLED)
        ScriptMenu += "<MenuEntry Id=\"MnuOn\">Turn On</MenuEntry>";
    else
        ScriptMenu += "<MenuEntry Id=\"MnuOff\">Turn Off</MenuEntry>";
   
    if(Location >= 2){
        ScriptMenu += "<Separator/>";
        ScriptMenu += "<MenuEntry Id=\"MnuBlock\">Block contacts</MenuEntry>";
        ScriptMenu += "<MenuEntry Id=\"MnuUnblock\">Unblock contacts</MenuEntry>";
    }
   
    ScriptMenu += "<Separator/>";
    ScriptMenu += "<MenuEntry Id=\"MnuReset\">Reset</MenuEntry>";
    ScriptMenu += "<Separator/>";
    ScriptMenu += "<MenuEntry Id=\"MnuConf\">Configure</MenuEntry>";
    ScriptMenu += "<MenuEntry Id=\"MnuAbout\">About</MenuEntry>";
    ScriptMenu += "</ScriptMenu>";
    return ScriptMenu;
}

// Translate everything in the Description tags
function OnGetScriptCommands(){
    var ScriptCommands =     "<ScriptCommands>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm on</Name>";
    ScriptCommands        +=         "<Description>Turns Advanced PSM Chat ON</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm off</Name>";
    ScriptCommands         +=         "<Description>Turns Advanced PSM Chat OFF</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm reset</Name>";
    ScriptCommands         +=         "<Description>Empties the queue, and the PSM</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm config</Name>";
    ScriptCommands         +=         "<Description>Opens the Configuration window</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm about</Name>";
    ScriptCommands         +=         "<Description>Opens the About window</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm block</Name>";
    ScriptCommands         +=         "<Description>Puts all the people in the convo on the blocklist</Description>";
    ScriptCommands         +=         "<Parameters></Parameters>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "<Command>";
    ScriptCommands         +=         "<Name>apsm unblock</Name>";
    ScriptCommands         +=         "<Description>Removes all the people in the convo from the blocklist</Description>";
    ScriptCommands         +=     "</Command>";
    ScriptCommands         +=     "</ScriptCommands>";
   
    return ScriptCommands;
}


This post was edited on 12-25-2009 at 11:30 AM by Plan-1130.
My Scripts: UltimatFlooder, Advanced PSM Chat, PlusPrivacy, PlusRemote

[Image: Plan-1130.png]
12-21-2009 11:21 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[(pre-)release] Advanced PSM Chat - by Plan-1130 on 10-16-2006 at 08:50 PM
RE: [(pre-)release] Advanced PSM Chat - by bauer on 03-19-2007 at 06:01 PM
RE: [(pre-)release] Advanced PSM Chat - by CookieRevised on 03-19-2007 at 06:40 PM
RE: [(pre-)release] Advanced PSM Chat - by Menthix on 03-19-2007 at 06:45 PM
RE: [(pre-)release] Advanced PSM Chat - by Plan-1130 on 12-21-2009 at 11:21 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On