﻿// JScript File
// Classes for multi-lingual support

/*****************************************************************************
* The base class with default values for Vietnamese.
*****************************************************************************/

function JSLanguageBase()
{
    this.Param = "?lang=vi";

    // Page Heading section
    this.Btn_Bookmark = "LƯU LẠI ĐỊA CHỈ";
    this.Url_HeadingImage = "Images/vi.jpg";
    this.Txt_Title_HoSE = "BẢNG GIAO DỊCH HOSE";
    this.Txt_Title_HNX = "BẢNG GIAO DỊCH HNX";
    this.Txt_Title_UPCOM = "BẢNG GIAO DỊCH UPCOM";
    this.Txt_LnkLanguege = "Tiếng Việt";

    // Market Info section
    this.Txt_MrkStat_S1Period = "Phiên 1 - Định kỳ";
    this.Txt_MrkStat_S2ContMatch = "Phiên 2 - Liên tục";
    this.Txt_MrkStat_S3Period = "Phiên 3 - Định kỳ";
    this.Txt_MrkStat_S4Negotiate = "Giao dịch thỏa thuận";
    this.Txt_MrkStat_Intermission = "Tạm nghỉ";
    this.Txt_MrkStat_Close = "Thị trường đóng cửa";
    this.Txt_TradeSession = "Phiên GD: ";
    this.Txt_TradeAmount = "Số GD: ";
    this.Txt_TotalTradeVolume = "Tổng khối lượng: ";
    this.Txt_TotalTradeValue = "Tổng giá trị: ";
    
    // 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 = "NN<br>Mua";
    this.Txt_TblCol_TotalMatch = "Tổng<br>KLTH";
    this.Txt_TblCol_Highest = "Cao";
    this.Txt_TblCol_Lowest = "Thấp";
    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_Session1 = "Đợt 1";
    this.Txt_TblCol_Session2 = "Đợt 2";
    this.Txt_TblCol_Session3 = "Đợt 3";
    this.Txt_TblCol_Price = "Giá";
    this.Txt_TblCol_Change = "+/-";
    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 ";


    // Filter section
    this.Txt_FilterMenuCaption = "Chọn chứng khoán: ";
    this.Txt_FilterShowBtn = "Chọn&nbsp;mã&nbsp;CK";
    this.Txt_FilterHideBtn = "Ẩn&nbsp;chọn&nbsp;mã&nbsp;CK";
    this.Txt_FilterType_Industry = "Chọn theo ngành";
    this.Txt_FilterType_Stock = "Chọn theo chứng khoán";    
    this.Txt_FilterTypeHRef_Industry = "PriceIndustry.aspx";
    this.Txt_FilterTypeHRef_Stock = "Price.aspx";
    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";

    // Paging
    this.Txt_Pager = "Chuyển&nbsp;trang";
    
    // 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()
{
    this.Param = "?lang=en";

    // Page Heading section
    this.Btn_Bookmark = "BOOKMARK THIS PAGE";
    this.Url_HeadingImage = "Images/EN1.jpg";
    this.Txt_Title_HoSE = "HOSE TRADING";
    this.Txt_Title_HNX = "HNX TRADING";
    this.Txt_Title_UPCOM = "UPCOM TRADING";
    this.Txt_LnkLanguege = "English";

    // Market Info section
    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_Intermission = "Intermission";
    this.Txt_MrkStat_Close = "Market Closed";
    this.Txt_TradeSession = "Session: ";
    this.Txt_TradeAmount = "Trade: ";
    this.Txt_TotalTradeVolume = "Total volume: ";
    this.Txt_TotalTradeValue = "Total 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>Buy";
    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_Session1 = "Session 1";
    this.Txt_TblCol_Session2 = "Session 2";
    this.Txt_TblCol_Session3 = "Session 3";
    this.Txt_TblCol_Price = "Price";
    this.Txt_TblCol_Change = "+/-";
    this.Txt_TblCol_Vol = "Vol";

    // Put through advertisement
    this.Txt_PutthroughAd = "Putthrough ";
    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&nbsp;selection";
    this.Txt_FilterHideBtn = "Hide&nbsp;stock&nbsp;selection";
    this.Txt_FilterType_Industry = "Filter on industry";
    this.Txt_FilterType_Stock = "Filter on stock";    
    this.Txt_FilterCheckAll   = "Check All";
    this.Txt_FilterUncheckAll = "Uncheck All";
    this.Txt_FilterCheckDefault = "Check default";
    this.Txt_FilterUncheckDefault = "Uncheck default";

    // Paging
    this.Txt_Pager = "Paging";
    
    // Auto scroll
    this.Txt_Scroll = "Auto scroll";
    this.Txt_StopScrolling = "Stop scrolling";
}


