﻿// I18N constants -- Chinese GB
// by Dave Lo -- dlo@interactivetools.com
var I18N = {
    format : function () {
        var reault = arguments[0];
        for (var i = 0; i < arguments.length - 1; i++) {
            reault = reault.replace("{" + i + "}", arguments[i + 1]);
        }
        return reault;
    },
    lang:           "en-US",
    langCode:           9,
	edit:           "Edit",
	video:          "Video",
	CurrentOnlineTime: "Current on-line time",
	NamesCanNotEmpty:    "Names can not be empty!",
	In:             "In",
	Say:            "Say",
	Send:           "Send",
	And:            "And",
	Conversation:   "Conversation",
	DataLoading:    "Data Loading",
	NoResultsFound: "No results found!",
	Talking:        "Reading",
	Online:         "Online",
	
	
Change:"Change",
Yuan:"Yuan",
Engage:"Book",
Person:"Person",
Unknow:"Unknow",
Video:"Video",
Web_site:"Web site",
Email:"Email",
Airline_photo:"Airline photo",
Introduced:"Introduced",

//eatersearch.aspx
ReVideo:"Restaurant Video",
Guangdong_dish:"Guangdong dish",
Friend_dines:"Friend dines",
Simple_dish:"Simple dish",
Roast_duck:"Roast duck",
Korea:"Korea",
Commerce:"Commerce",
Appointment:"Appointment",
Teahouse:"Teahouse",
Family:"Family",
Snack:"Snack",
Midnight_snack:"Midnight snack",
Hot_pot:"Hot pot",
Stuffed_dumpling:"Stuffed dumpling",
Sichuan_cuisine:"Sichuan cuisine",
Wedding_banquet:"Wedding banquet",
Old_shop:"Old shop",
Fast_food:"Fast-food",
Individual:"Individual",
Northeast_China:"Northeast China",
Chicken_wing:"Chicken wing",
Leisure:"Leisure",
Seafood:"Sea food",
Home_cooking:"Home cooking",
Earthenware_cooking:"Earthenware cooking",
Bar:"Bar",
Northwest_China:"Northwest China",
Work_meal:"Work meal",
Islamic:"Islamic",
Open_air:"Open-air",
Self_service:"Self-service",
CannotShowAll:"The results show that not too many! Please try to inquiries condition.",
Varieties:"Varieties",
Address:"Address",
Restaurant_photo:"Restaurant photo",
Consumption_level:"Consumption level",

//entertainsearch.aspx
AmusementVideo:"Entertain Video",
Pleasure_ground:"Pleasure ground",
Resort:"Resort",
Theater:"Theater",
Theater1:"Theater",
Cinema:"Cinema",
Dance_Hall:"Dance Hall",
Coliseum:"Coliseum",
Zoo:"Zoo",
Net_cafe:"Net cafe",
Nightclub:"Nightclub",
Kara_OK:"Kara OK",
Cafe:"Cafe",
Club:"Club",
Price:"Price",
Contact:"Contact",
Entertain_photo:"Entertain photo",



//flightsearch.aspx
//Airline:"航空公司",
//Flight:"航班",
//AirlineType:"机型",
//Airdrome:"机场",
//DepartArrive:"开往 抵达",
//StopDepartTime:"站|飞行时间",

Airline:"Airlines<br>Flight No.",
FlightModel:"Model",
Airports:"Arrived from <br>the airport",
DepartArrTime:"Arrived from<br>time",
FlyTime:"Lasted",
Meal:"Meals",
Stops:"Stops",
ElectronTicket:"Electron Ticket",
MinPrice:"Price",
AllPrice:"All Price",
Booking:"Booking",
Hour:"Hour",
Minute:"Minute",



//healthysearch.aspx
Healthy_Video:"Healthy Video",
Bath:"Bath",
Sauna:"Sauna",
Massage:"Massage",
Bottom_massage:"Bottom massage",
Healthy_body:"Healthy body",
Healthy:"Healthy",
The_foot_cures:"The foot cures",
Cosmetology:"Cosmetology",
SPA:"SPA",
Protect_a_skin:"Protect a skin",
Reduce_weight:"Reduce weight",
Healthy_photo:"Healthy photo",

//hotelsearch.aspx
Dining_Room:"Dining-Room",
Metting:"Meeting",
Gymnasium:"Gymnasium",
Business_Center:"Business Center",
Map:"Map",
Postcode:"Postcode",
Tel:"Tel",
Linkman:"Linkman",
Television:"Television",
Telephone:"Telephone",
Air_condition:"Air condition",
Toilet:"Toilet",
Network:"Network",
Picture:"Picture",
House_type:"Room type",
Salesroom_price:"Salesroom priceadmin",
Member_price:"Member price",
Breakfast:"Breakfast",
Bed_type:"Bed type",
Configure:"Configure",
Online_client:"Helpdesk",
Hotel_photo:"Hotel photo",
Lowest_price:"Lowest price",


//Scenicsearch.aspx
ScenicVideo:"Scenic Video",
Level:"Level",
Particular:"Detail",
Scenic_Spot:"Scenic Spot",
Service:"Service",
ServiceType:"Service type",
MinimumCon: "Minimum consumption",
Scenic_Photo:"Scenic Photo",


//Shopsearch.aspx
Shop_Video:"Shop Video",
Dress:"Dress",
Ornament:"Ornament",
Import:"Import",
Management_variety:"Management variety",
Shop_photo:"Shop photo",
Yuan_Person:"Yuan/Person",

//Travelsearch.aspx
Travel_Video:"Travel Video",
Fax:"Fax",
Handphone:"Handphone",
Contacter:"Contact",
Travel_circuitry:"Travel circuitry",
Detail:"Detail",
Travel_photo:"Travel photo",
Travel_web_site:"Travel web site",




//ifmsearch.aspx
Query_Ticket:"Query Ticket",
Query_Hotel:"Query Hotel",
Query_Travel:"Query Travel",
Query_Scenic:"Query Scenic",
Query_Entertain:"Query Entertain",
Query_Gymnasium:"Query Gymnasium",
Query_Cate:"Query Cate",
Query_Shop:"Query Shop",
Query_Line:"Query Line",


//show360.aspx
Close:"Close",


//en_hotelsearch.aspx
Bathroom:"Bathroom",
Broadband:"Broadband",
Matchs:"Matchs",
Details:"Details",
Room_Type:"Room Type",
Book:"Book",
Hotel_Picture:"Hotel Picture",
Lowest:"Lowest",


//eaterbooking.aspx
NameNeed:"Name can not be empty",
NameNotLess:"Name Must be less than 60 characters",
ContactNeed:"Contact can not be empty",
ContactNotLess:"Contact Must be less than 60 characters",
HandphoneNeed:"Phone can not be empty",
HandphoneNotLess:"Phones must be greater than 8 and is less than 20 figures",
HandphoneError:"Handphone Format is not correct",
EmailNeed:"E-mail can not be empty",
EmailNotLess:"Email Must be less than 100 characters",
EmailError:"Email Format is not correct",


//flightbespeak.aspx
Passenger:"Passenger",
Adult:"Adult",
Children:"Children",
Infant:"Infant",
IDCard:"ID Card",
Passport:"Passport",
Officer:"Officer Card",
Foreign:"Foreign permanent residence permit",
Other:"Other",
Whether_insurance:"Whether insurance",
CardNeed:"Document number is not empty",
CardLess:"ust be less than 50 characters",
CardError:"Wrong ID card format",
PhoneError:"Contact telephone incorrect format",
PhoneNeed:"Contact telephones not empty",
EmPhone:"Emergency contact telephone incorrect format",
EAddressNeed:"Excursion addresses can not be empty",
EAddressLess:"Must be less than 100 characters",
EDateNeed:"Excursion date can not be empty",
EDateError:"Data Format is not correct",
EPostcode:"Mail delivery can not be empty Zip",
EPostcodeError:"Mail delivery Zip format is not correct",
TAddressNeed:"Send Mail Address Not empty",
TAddressLess:"Send Mail Address Must be less than 100 characters",
TDateNeed:"Mail delivery date Not empty",
TDateError:"Mail delivery date Format is not correct",
TPostcode:"Mail delivery Zip Not empty",
TPostcodeError:"Mail delivery Zip Format is not correct",


//hotelbespeak.aspx
CheckinNeed:"The number can not be empty",
CheckinError:"Only number",
CheckinLess:"The number of rooms for less than a few, please verify!",
CheckinNotLess:"Check the registration number should not be less than the number of scheduled Check (please fill in the order for reference, and more fill the items will not be recorded)",
Latest:"Please fill in the latest time to shop",
EmailUsed:"This e-mail address has been registered, please try for a",
HNameNeed:"Registration name can not be empty",
HIndateLess1:"Check-out date date must be less than",
HIndateLess2:"Check the date can not be less than the current date",


//hotelbespeakconfirm.aspx
CannotSubmit:"No matter the attention of not submitting a form",
//SelectCity.UI.js
China: "China",
BeiJing: "BeiJing",
Of: "of",
Matches: "matches",
Peoples: "Surplus population",
LineType: "Line type",
Tag: "Tag",
TravelDays: "Travel Days",
Display: "Show",
Home: "",
Total: "A total of",

//user_register.aspx
ErrorUsername:  "Username begins with an invalid character",
ErrorPwd:   "Passwords must be at least seven letters long and contain only numbers and letters",
ErrorEmail: "Email address is not valid",
ErrorMobile:    "Mobile number is not valid",
ErrorTel:   "Telephone number is not valid",
ErrorPost:  "Zip code is not valid",
ErrorIDCard:    "ID card number is not valid", 
CanUse:"You can use the user name",
SorryNotUse:"Sorry, the user has been registered",
PFillName:"Please enter username",

//LoginUI.js
lPleaseCheck:"Please confirm your identity",
lUeeeuMember:"Ueeeu Member",
lAccount:"Account",
lPassword:"Password",
lRegNewAccount:"The registration of a new account",
lConfirmPassword:"Confirm password",
lEmail:"Email",
lMobile:"Mobile",
lQuestion:"Question",
lAnswer:"Answer",
lNext:"Skip, is scheduled to continue",
lNeedNamePwd:"Please enter the user name and password",
PleaseDo:"Please correct the following error",
NotConsistant:"Passwords and confirmed inconsistencies",
lNeedQA:"questions and answers can not be empty",

//FlightBespeak.aspx
RepeatNum:"Identity card numbers repeat",

//TicketBooking.aspx
DataNeed:"Date can not be empty",
ErrorData:"Incorrect date format",

//TravalQuoto.aspx
BackDateGreater:"Back to the date of departure, date more than necessary",
Need:"Not empty",
FormatError:"Incorrect format",
StartDate:"Departure Date",
BackDate:"Return date",

//control/startvoting
InProccess:"Data Processing...",
VotTotal:"Scores:",
VotNum:"Numbers:",
VotAvg:"Average:",
YoursVot:"Your score:",
Voted:"You have been a score",
NoVType:"The types of businesses do not exist",

//control/fexosearch4 groups
Wrongformat:" is not valid",
Wrongempty:" cannot be empty",
Wrongcheckindate:"Checkin date has to be later than today\n",
WrongCompare:" has to be greater than ",
Checkindate:"Checkin date",
Checkoutdate:"Checkout date",
Departuredate:"Departure date",
Wrongdeparturedate:"Departure date has to be later than today\n",
Carstartdate:"Start date",
Carenddate:"End date",
Wrongcardate:"Start date has to be later than today\n",




//admin by wm
GlobalHotelRetailingSystem: "Global hotel retailing system",


Orders:"Orders",
DeleteConfirm:"Are you sure to delete this record?",
AddNewLine:"Add a new line",

RoomStatusAvailable:"Available",
RoomStatusHold:"Hold",
RoomStatusOccupied:"Occupied",
RoomStatusBooked:"Booked",

RoomStatusByMonth:"Back to monthly statistics",
RoomType:"Room Type",
RoomNumber:"Numbers",
RoomsAvailable:"Rooms available",
DateSelectError:"The date you selected should not be earlier than the current date",
ServiceList:"Service List",
OrderList:"Order List",
BtnSearchOrders:"Check",

RoomManage:"Room Manage",
RoomSetPrice:"Can add a new item by table below.Can click room type to set price!",
MemberPrice:"Member Price",
PleaseAddTravelAgents:"Please add a travel agents",
Country:"Country",
Province:"Province",
City:"City",
TravelAgents:"Travel Agents",
Contractor:"Contractor",
ContractTime:"Contract Time",
Remark:"Remark",
HotelManage:"Hotel Manage",
PleasAddHOtel:"Please add a hotel",
Hotel:"Hotel",
Editsuccessfully:"Edit successfully",
PlzFillInName:"Please fill in the business name",
FindBusinessEntity:"You can search to find the business entity what you want to manage.",
BtnEdit:"Edit",
PassSet:"Password",
InputPass:"Please input a new password and click update button to change it!",
ChagePass:"Change password:",
AccountWithBlank:"Account:",
PasswordWithBlank:"Password:",
CityRefresh:"You can select the city which you want to manage.Then click refresh button",
PageOverTime:"The page has been overtime.Please login again!",
AuditEntity:"You can audit a business entity via clicking auditing button.",
ManageEntity:"You can click \"Edit\" button to manage a business entity.",
AccountEntity:"You can click \"Account\" button to create a new management account for business entity",
UploadSuccess:"Upload Sucessfully!",

//new certType certNum..
CertNumNeed:"Document number is not empty",
ErrorCertNum:"Document number is not legitimate",
NeedCertDescription:"Document type for the 'other', please fill out documents describing.",

usernameinvalid:"Username is invalid!",

//travelbooking.aspx
depDataNeed:"DepartDate Not Empty",
ErrorDepData:"DepartDate Error format",
backDataNeed:"BackDate Not Empty",
ErrorBackData:"BackDate Error format",


//CommentsUI.js
CLoading:"Load...",
CPub:"Published Comments",
CView:"View the comments of",
CDp:"",
CNickName:"Name",
CComment:"Comments",
CVGood:"Very Good",
CGood:"Good",
CUsual:"General",
CSubmit:"Submit",
CIf:"If you are not a Member of UEEEU",
CWelcome:"Welcome registration",
CTo:"to",
CNone:"No comments on the commercial, you can",
CTotal:"",
CNo:" comments, ",
CCur:" pages, current",
CPage:" page,",
CPre:"&#60;&#60;Pre",
CNext:"Next&#62;&#62;",
CRefresh:"Refresh",
CSending:"Sending...",
CNeedName:"Please fill nickname",
CNeedBody:"Please fill in the content Comments",
COver:"Comments content over your limit, the biggest Volume 500",
CSuccess:"Success!",
CRepeat:"Comments released too frequent",
CFail:"Sorry, no comments success.",

// config/*
RoleValDesc: "For the role of customer service staff, who must account from a five figures",

//Register.aspx
RNeedUserName:"Please enter your user name",
RErrorUserName:"User name should begin with a letter, can include letters, numbers, and underscores",
RNameCanUse:"You can use the user name",
RNameRepeat:"The user name has been registered",
RPleaseCheck:"Please check whether the user name duplication",
RTryOther:"Your input is the user name has been registered, try other",

// bespeak
NAME:	"Name",
ADULT:	"Adult",
CHILD:	"Child",
AGE:	"Age",
PLEASE_FILL_NAME:	"Please fill in customer's name",

//xsearch
None: "None"
};

var init_i18n = setInterval(function () {
    if (document.body) {
        clearInterval(init_i18n);
        document.body.lang = I18N.lang;
        document.body.page = location.pathname.split('/')[location.pathname.split('/').length - 1];
        document.body.website = location.host;
        
            //alert(document.styleSheets[0].cssRules[0].cssText);
        for (var i = 0; i < document.styleSheets.length; i++) {
            if (typeof ActiveXObject!="undefined") {
                // IE 5.5+
                for (var j = 0; j < document.styleSheets[i].imports.length; j++) {
                    var jsUrl = document.styleSheets[i].imports[j].href;
                    if (jsUrl.split('.')[jsUrl.split('.').length - 1] == "js") {
                        var obj = document.createElement("SCRIPT");
                        obj.src = jsUrl;
                        obj.type = "text/javascript";
                        document.body.appendChild(obj);
                        alert(_);
                    }
                }
            } else {
                // FireFox
                for (var j = 0; j < document.styleSheets[i].ownerNode.childNodes.length; j++) {
                    (/\s*@import\s*url\s*\(([^)]+)\);\s*/igm).exec(document.styleSheets[i].ownerNode.childNodes[j].textContent);
                    for (var k = 1; k <=  9; k++) {
                        eval("var jsUrl = RegExp.$" + k);
                        if (jsUrl != null && jsUrl != "") {
                            if (jsUrl.split('.')[jsUrl.split('.').length - 1] == "js") {
                                var obj = document.createElement("SCRIPT");
                                obj.src = jsUrl;
                                obj.type = "text/javascript";
                                obj.onreadystatechange = function () {
                                        alert(window.create);
                                    if (document.readyState=="complete") {
                                        window.eval(obj.textContent, "javascript");
                                    }
                                }
                                document.body.appendChild(obj);
                                //        window.eval(obj.textContent, "javascript");
                            }
                        }
                    }
                }
            }
        }
    }
}, 60);


