﻿// 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_TradeSession = "Phiên GD: ";
    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 = "STT";
    this.Txt_TblCol_StockSymbol = "Chứng khoán";
    this.Txt_TblCol_Ref = "Giá<br>TC";
    this.Txt_TblCol_Ceil = "Giá<br>trần";
    this.Txt_TblCol_Floor = "Giá<br>sàn";
    this.Txt_TblCol_FRoom = "Room NN";
    this.Txt_TblCol_FRoomDev = "GD<br>NDT<br>NN";
    this.Txt_TblCol_TotalMatch = "Tổng<br>KLTH";
    this.Txt_TblCol_Highest = "Cao nhất";
    this.Txt_TblCol_Lowest = "Thấp nhất";
    this.Txt_TblCol_Trade = "Giao dịch";
    this.Txt_TblCol_Bid = "Mua";
    this.Txt_TblCol_Offer = "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_Vol4 = "KL 4+";
    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 đổi";
    this.Txt_TblCol_Vol = "KL";
    
    // 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 ";
    this.Txt_PutthroughValue = "Giá trị";
    
    // 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";
    this.Txt_FilterUncheckDefault = "Xóa mã mặc định";
    
    // Auto scroll
    this.Txt_Scroll = "Tự động cuộn";
    this.Txt_StopScrolling = "Dừng tự động cuộn";
    
    // Note
    this.Txt_NoteUnit = "(Đơn vị giá: 1000 đồng &nbsp;&nbsp;&nbsp;Đơn vị khối lượng: 10 cổ phiếu)";
    this.Txt_NoteUnitPT = "(Đơn vị giá: 1 đồng &nbsp;&nbsp;&nbsp;Đơn vị khối lượng: 1 cổ phiếu)";
}

/*****************************************************************************
* 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_TradeSession = "Session: ";
    this.Txt_TradeAmount = "Trading Amount: ";
    this.Txt_TotalTradeVolume = "Trading Volume: ";
    this.Txt_TotalTradeValue = "Trading Value: ";
    
    // Stock price table header
    this.Txt_TblCol_No = "&nbsp;No&nbsp;";
    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<br>Room";
    this.Txt_TblCol_FRoomDev = "Foreign<br>Trade";
    this.Txt_TblCol_TotalMatch = "Total Match";
    this.Txt_TblCol_Highest = "Highest";
    this.Txt_TblCol_Lowest = "Lowest";
    this.Txt_TblCol_Trade = "Trade";
    this.Txt_TblCol_Bid = "Bid";
    this.Txt_TblCol_Offer = "Offer";
    this.Txt_TblCol_Price1 = "Price 1";
    this.Txt_TblCol_Price2 = "Price 2";
    this.Txt_TblCol_Price3 = "Price 3";
    this.Txt_TblCol_Vol1 = "Vol 1";
    this.Txt_TblCol_Vol2 = "Vol 2";
    this.Txt_TblCol_Vol3 = "Vol 3";
    this.Txt_TblCol_Vol4 = "Vol 4+";
    
    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";
    
    // 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 ";
    this.Txt_PutthroughValue = "Value";

    // 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";
    this.Txt_FilterUncheckDefault = "Uncheck default";
    
    // Auto scroll
    this.Txt_Scroll = "Auto scroll";
    this.Txt_StopScrolling = "Stop scrolling";
    
    // Note
    this.Txt_NoteUnit = "(Price unit: VND1000 &nbsp;&nbsp;&nbsp;Volume Unit: 10 shares)";
    this.Txt_NoteUnitPT = "(Price unit: VND1 &nbsp;&nbsp;&nbsp;Volume Unit: 1 shares)";
}

