﻿// JScript File
// Classes for multi-lingual support

/*****************************************************************************
* The base class with default values for Vietnamese.
*****************************************************************************/

function JSLanguageBase()
{
    // Page Heading section
    this.Url_HeadingImage = "Images/vi.jpg";
    this.Txt_Title = "BẢNG GIÁ ONLINE";
    this.Txt_MrkStat_S1Period    = "Phiên giao dịch 1 - Định kỳ";
    this.Txt_MrkStat_S2ContMatch = "Phiên giao dịch 2 - Liên tục";
    this.Txt_MrkStat_S3Period    = "Phiên giao dịch 3 - Định kỳ";
    this.Txt_MrkStat_S4Negotiate = "Giao dịch thỏa thuận";
    this.Txt_MrkStat_S5Close     = "Thị trường đóng cửa";
    this.Txt_LnkLanguege = "Tiếng Việt";
    
    // Market Info section
    this.Txt_TradeAmount = "Số GD: ";
    this.Txt_TotalTradeVolume = "Tổng khối lượng giao dịch: ";
    this.Txt_TotalTradeValue = "Tổng giá trị giao dịch: ";
    
    // Stock price table header
    this.Txt_TblCol_No = "T<br>T";
    this.Txt_TblCol_StockSymbol = "Chứng khoán";
    this.Txt_TblCol_Ref = "Giá TC";
    this.Txt_TblCol_Ceil = "Giá trần";
    this.Txt_TblCol_Floor = "Giá sàn";
    this.Txt_TblCol_FRoom = "Room NN";
    this.Txt_TblCol_FRoomDev = "NN<br>Mua";
    this.Txt_TblCol_TotalMatch = "Tổng KLTH";
    this.Txt_TblCol_Highest = "Cao nhất";
    this.Txt_TblCol_Lowest = "Thấp nhất";    
    this.Txt_TblCol_OpenPrice = "Mở cửa";
    this.Txt_TblCol_High = "Cao";
    this.Txt_TblCol_Low = "Thấp";    
    this.Txt_TblCol_Trade = "Giao dịch";
    this.Txt_TblCol_Bid = "Mua";
    this.Txt_TblCol_Offer = "Bán";
    this.Txt_TblCol_BidEx = "Dư Mua";
    this.Txt_TblCol_OfferEx = "Dư Bán";    
    this.Txt_TblCol_Price1 = "Giá 1";
    this.Txt_TblCol_Price2 = "Giá 2";
    this.Txt_TblCol_Price3 = "Giá 3";
    this.Txt_TblCol_Vol1 = "KL 1";
    this.Txt_TblCol_Vol2 = "KL 2";
    this.Txt_TblCol_Vol3 = "KL 3";
    this.Txt_TblCol_Session1 = "Đợt 1";
    this.Txt_TblCol_Session2 = "Đợt 2";
    this.Txt_TblCol_Session3 = "Đợt 3";
    this.Txt_TblCol_Price = "Giá";
    this.Txt_TblCol_Change = "Thay&nbsp;đổi";
    this.Txt_TblCol_Vol = "KL";
    this.Txt_TblCol_TempMatchPrice = "Giá";
    this.Txt_TblCol_MatchVol = "KL<br>khớp";
    
    
    // Put through advertisement
    this.Txt_PutthroughAd = "Giao dịch thỏa thuận ";
    this.Txt_PutthroughBid   = "Mua";
    this.Txt_PutthroughOffer = "Bán";
    this.Txt_PutthroughBroker = "Số hiệu";
    
    // Put through exec
    this.Txt_PutthroughExec = "Giao dịch thỏa thuận khớp ";
    
    // Filter section
    this.Txt_FilterMenuCaption = "Chọn lọc mã chứng khoán: ";
    this.Txt_FilterShowBtn = "Chọn mã chứng khoán";
    this.Txt_FilterHideBtn = "Ẩn chọn mã chứng khoán";
    this.Txt_FilterCheckAll   = "Chọn tất cả";
    this.Txt_FilterUncheckAll = "Xóa tất cả";
    this.Txt_FilterCheckDefault = "Chọn mã mặc định 1";
    this.Txt_FilterUncheckDefault = "Xóa mã mặc định 1";
    this.Txt_FilterCheckDefault2 = "Chọn mã mặc định 2";
    this.Txt_FilterUncheckDefault2 = "Xóa mã mặc định 2";
    
    // Auto scroll
    this.Txt_Scroll = "Tự động cuộn";
    this.Txt_StopScrolling = "Dừng tự động cuộn";
}

/*****************************************************************************
* The JSVietnam is the derived class for Vietnamese
* inherit exactly the same JSLanguageBase 
* (bacause base class already provided values for Vietnamese).
*****************************************************************************/
JSVietnam.prototype = new JSLanguageBase();
JSVietnam.prototype.constructor = JSVietnam;
JSVietnam.prototype.baseClass = JSLanguageBase.prototype.constructor;

function JSVietnam()
{
}

/*****************************************************************************
* The JSEnglish is the derived class for English
* inherit JSLanguageBase and override with English values
*****************************************************************************/
JSEnglish.prototype = new JSLanguageBase();
JSEnglish.prototype.constructor = JSEnglish;
JSEnglish.prototype.baseClass = JSLanguageBase.prototype.constructor;

function JSEnglish()
{
    // Page Heading section
    this.Url_HeadingImage = "Images/EN1.jpg";
    this.Txt_Title = "HSC PRICE ONLINE";
    this.Txt_MrkStat_S1Period    = "Session 1 - Period";
    this.Txt_MrkStat_S2ContMatch = "Session 2 - Continuous Matching";
    this.Txt_MrkStat_S3Period    = "Session 3 - Period";    
    this.Txt_MrkStat_S4Negotiate = "Negotiated Deal";
    this.Txt_MrkStat_S5Close     = "Market Closed";
    this.Txt_LnkLanguege = "English";

    // Market Info section
    this.Txt_TradeAmount = "Trading Amount: ";
    this.Txt_TotalTradeVolume = "Trading Volume: ";
    this.Txt_TotalTradeValue = "Trading Value: ";

    // Stock price table header
    this.Txt_TblCol_No = "No";
    this.Txt_TblCol_StockSymbol = "Stock Symbol";
    this.Txt_TblCol_Ref = "Ref.";
    this.Txt_TblCol_Ceil = "Ceil.";
    this.Txt_TblCol_Floor = "Fl.";
    this.Txt_TblCol_FRoom = "Foreign Room";
    this.Txt_TblCol_FRoomDev = "Foreign<br>Buy";
    this.Txt_TblCol_TotalMatch = "Total Match";
    this.Txt_TblCol_Highest = "Highest";
    this.Txt_TblCol_Lowest = "Lowest";
    this.Txt_TblCol_OpenPrice = "Open";
    this.Txt_TblCol_High = "High";
    this.Txt_TblCol_Low = "Low";
    this.Txt_TblCol_Trade = "Trade";
    this.Txt_TblCol_Bid = "Bid";
    this.Txt_TblCol_Offer = "Offer";
    this.Txt_TblCol_BidEx = "Bid";
    this.Txt_TblCol_OfferEx = "Offer";    
    this.Txt_TblCol_Price1 = "Pri.1";
    this.Txt_TblCol_Price2 = "Pri.2";
    this.Txt_TblCol_Price3 = "Pri.3";
    this.Txt_TblCol_Vol1 = "Vol.1";
    this.Txt_TblCol_Vol2 = "Vol.2";
    this.Txt_TblCol_Vol3 = "Vol.3";
    this.Txt_TblCol_Session1 = "Session 1";
    this.Txt_TblCol_Session2 = "Session 2";
    this.Txt_TblCol_Session3 = "Session 3";
    this.Txt_TblCol_Price = "Price";
    this.Txt_TblCol_Change = "Change";
    this.Txt_TblCol_Vol = "Vol";
    this.Txt_TblCol_TempMatchPrice = "Match price";
    this.Txt_TblCol_MatchVol = "Match volume";

    
    // Put through advertisement
    this.Txt_PutthroughAd = "Put through ";
    this.Txt_PutthroughBid   = "Bid";
    this.Txt_PutthroughOffer = "Offer";
    this.Txt_PutthroughBroker = "Broker No";
    
    // Put through exec
    this.Txt_PutthroughExec = "Put through approved ";
        
    // Filter section
    this.Txt_FilterMenuCaption = "Stock symbol filter: ";
    this.Txt_FilterShowBtn = "Stock selection";
    this.Txt_FilterHideBtn = "Hide stock selection";
    this.Txt_FilterCheckAll   = "Check All";
    this.Txt_FilterUncheckAll = "Uncheck All";
    this.Txt_FilterCheckDefault = "Check default 1";
    this.Txt_FilterUncheckDefault = "Uncheck default 1";
    this.Txt_FilterCheckDefault2 = "Check default 2";
    this.Txt_FilterUncheckDefault2 = "Uncheck default 2";
    
    // Auto scroll
    this.Txt_Scroll = "Auto scroll";
    this.Txt_StopScrolling = "Stop scrolling";
}

