﻿// 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.Url_HeadingImage = "Images/vi.jpg";
    this.Txt_Title = "BẢNG GIÁ ONLINE";
    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 KL giao dịch: ";
    this.Txt_TotalTradeValue = "Tổng GT 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<br>nhất";
    this.Txt_TblCol_Lowest = "Thấp<br>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_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";
    
    
    // Filter section
    this.Txt_FilterMenuCaption = "Chọn chứng khoán: ";
    this.Txt_FilterShowBtn = "Chọn chứng khoán";
    this.Txt_FilterHideBtn = "Ẩn chọn chứng khoán";
    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";
    
    // 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.Url_HeadingImage = "Images/EN1.jpg";
    this.Txt_Title = "HSC PRICE ONLINE";
    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_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";

    // Filter section
    this.Txt_FilterMenuCaption = "Stock symbol filter: ";
    this.Txt_FilterShowBtn = "Stock selection";
    this.Txt_FilterHideBtn = "Hide stock 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";
    
    // Auto scroll
    this.Txt_Scroll = "Auto scroll";
    this.Txt_StopScrolling = "Stop scrolling";
}

