var i18n = { 

	'clic.here.to.move' : 'Click here to move to move the map' , 
	'clic.here.to.close' : 'Click here to close', 

	'rates.and.reservation':'价格及预订',
	'hotel.list':'返回酒店列表',
	'previous.hotel':'上一个酒店',
	'next.hotel':'下一个酒店',
	'add.to.favorites':'放入收藏夹',
	'you.are.not.identified':'You are not registered',
	'avantages':'Avantages',
	'register':'Register here',
	'already.registered':'Identify yourself'

};

var I18N = {
	
	'fh' : {
		'Click here to move to move the map' :'Click here to move to move the map' , 
		'Click here to close'                :'Click here to close', 
		'Rates and reservation'              :'价格及预订',
		'List of hotels'                     :'返回酒店列表',
		'Previous hotel'                     :'上一个酒店',
		'Next hotel'                         :'下一个酒店',
        'Previous'                           :'上一个酒店',
        'Next'                               :'下一个酒店',
		'All'               			 	 :'返回酒店列表',
		'Add to favorites'                   :'放入收藏夹',
		'You are not registered'             :'You are not registered',
		'Avantages'                          :'Avantages',
		'Register here'                      :'Register here',
		'Identify yourself'                   :'Identify yourself'

		},
		
		'meetingRoomConfigurationType' : 
		{
			'NONE'									  : 'No preference',          
			'U'                				: 'U-shaped room',
			'BOARD'              			: 'Board Room',               
			'CLASS'                   : 'Classroom',                    
			'THEATRE'                 : 'Theatre'                     
		},
		
		'bol.guestrooms' : {
				'wrongRoomNb' : 'Please select the number of rooms that you required.',
				'noSelection'	: '[TRADUCTION JS]Vous devez sélectionner les chambres pour les participants.'
		},
	
	'formval' : {
		'required checkbox'		:	"Cette case doit \u00EAtre coch\u00E9e",
		'required radio'		:	"Vous devez s\u00E9lectionner une de ces options",
		'required text'			:	"Attention, ce champ est obligatoire",
		'required select'		:	"Vous devez s\u00E9lectionner l'objet de votre demande",
		'email'					:	"Cette adresse e-mail est erron\u00E9e",
		'name'					:	"Ce champ ne doit comporter que des lettres, et les caract&egrave;res suivants : '-'" ,          
		'numbers'				:	"Ce champ ne doit comporter que des chiffres",
		'decimal'				:	"Ce champ ne doit comporter que des chiffres",
		'phonenumber'			:	"Ce champ ne doit comporter que des chiffres", 
		'phonenumber2'			:	"Veuillez v\u00E9rifier votre num\u00E9ro de t\u00E9l\u00E9phone",
		'equalsto'				:	"Ce champ doit &ecirc;tre identique au pr&eacute;c&eacute;dent" ,
		'codepostal'			:	"Ce code postal est erron\u00E9",
		'cpordep'				:	"Vous ne pouvez mettre qu'un num\u00E9ro de d\u00E9partement ou un code portal",
		'pseudo'				:	'Attention, votre pseudo doit contenir uniquement 20 caract&egrave;res, des lettres et des num\u00E9ros et les signes "_" et "-"',
		'image'					:	"Votre fichier n'est pas au bon format",
		'minimum'				:	"Vous devez remplir au moins ## champ",
		'requiredexclusif'		:	"Vous devez remplir au moins un des champs"	        
		         
	},

  'calendar_months' : {
		'January'	:	'一月',
		'February'	:	'二月',
		'March'		:	'三月',
		'April'		:	'四月',
		'May'		:	'五月',
		'June'		:	'六月',
		'July'		:	'七月',
		'August'	:	'八月',
		'September'	:	'九月',
		'October'	:	'十月',
		'November'	:	'十一月',
		'December'	:	'十二月'
	},
	
	
	'calendar_days' : {
		'Mo'	:'星期一',
		'Tu'	:'星期二',
		'We'	:'星期三',
		'Th'	:'星期四',
		'Fr' 	:'星期五',
		'Sa'	:'星期六',
		'Su'	:'星期天'
	},
	
	'common' : {
		'You request is being processed.' : "您的要求正在处理中...",
		'Please wait.' : "請稍候",
		'Show details' : "查看详情",
		'Hide details' : "隱藏詳情"
	},
		
	'calendar' : {
		'outOfMinDate' : "您的预订日期不可以在今天日期之前。",
		'outOfMaxDate' : "您不可以在以下日期之后预订： ",
		'tooManyNights': "You may book up to %x nights",
		'nightNotAvailable' : 'You cannot select a period including dates with any room available',
		'mustSelect2Dates': "请选择抵达和启程日期。",
		'date.already.clicked' : "单击您要更改的日期以便取消"
	},
	
	'popup' : {
		'Close': '关闭'                   
	},
	
	'multirates' : {
		'Back to prices' : '返回价格页面',
		'See prices for this room' : '显示此客房的价格',
		'extend_stay_dates_not_changed_error_msg' : '如您需要修改您的行程，请更改下列日期。如无更改，请点撃下列「套票」按钮。',
        'Rooms 1 and 2' : '客房 1和客房 2',
        'Rooms 1, 2 and 3' : '客房 1和客房 2和客房 3',
		'Complimentary' : '免费赠送',
		'OnRequest' : '备索',
		'For 2 rooms' : '2 个房间'
	},
  'upsale' : {
  	'2 chambres en famille' : '家庭用 2 卧房'
  },
  
  'customer-details' : {
		'Your Reservation' : '您的预订纪录'
	},
	
	'title-reservation' : {
		'title' : '搜索结果'
	},
    
    'confirmation' : {
		'Your selection' : '您的选择',
        'Your confirmed booking' : '您的预订',
    'Confirmation of your booking request' : "Confirmation of your booking request" 
	},
		"cross_selling" : {
		'euro_savetime' : '为了方便省时，可通过预填Europcar预定表保留您的姓名和联络方式。',
		'europcar' : 'Europcar 不会将此信息用于您今天所作预定之外的用途。信用卡信息将不会被传输。',
		'yes' : '好的',
		'no' : '不需要',
		'prefill' : '预填表',
		'noprefill' : '我不介意以后再次输入我的资料'
	},
	"cartography": {
		"Show on a map": "Show on a map"
	},
	
	"hotels.list": {
		"Book": "Book",
		"Request a proposal": "Request a quotation",
		"wHotels" : "酒店",
		"wHotel" : "酒店",
		"You may select a maximum": "最多可以选择 {0} 家酒店",
		"You have to select at least": "You have to select 1 hotel at least",
		"You may select up to": "You may select up to {0} hotels",
		"Compare": "Compare",
		"You should select at least to make a comparison": "您至少应选择 2 家酒店以进行比较"
	},
	
	"hotels.filter": {
	    "TOW": "市中心", 
	    "SUB": "位于郊区", 
	    "AIR": "机场",
	    "restaurant": "餐馆",
	    "swimmingPool": "游泳池",
	    "parking": "会议室",
	    "meetingRoom": "会议室",
	    "wifi": "无线上网",
	    "petAllowed": "允许携带宠物",
	    "hotels match": "家酒店符合条件",
	    "hotel match": "家酒店符合条件",
	    "Show list of hotels" : "Show list of hotels",
	    "No result": ""
	},
	
	"hotels.compare": {
		"Back": "Return to list of hotels",
		"Request a proposal": "Request a quotation",
        "You have to select one hotel at least": 'You have to select one hotel at least.',
        "you may select a maximum": "最多可以选择 {0} 家酒店"
	},
	
	"profil.comboLabel": {
		"day" : "日",
		"month" : "月",
		"year" : "年"
	},
	
	"profil.civilityLabel":{
			"R" : "先生",
			"A" : "女士",
			"M" : "小姐"
	},
	
	"profil.contextAccroche":{
			"pro" : "您是商务旅行者吗？",
			"leisure" : "您是个人旅行者？"
	},
	
	"profil.errors":{
			"generic.error.validation" : "请修改或完成输入的详细信息。 显示为红色的字段内容不正确或必须填写。",
			"generic.error.technical" : "本网站发生了技术问题，请稍后再继续访问。",
			"generic.error.service.down" : "此服务目前不可用。",
			"generic.error.server" : "此服务目前不可用。",
			
			"same card" : "您已经选择了相同类型的卡",
			"wait" : "请稍等...",
			"error.requested.invalid" : "我们无法处理您的请求：您使用的链接已失效。",
			
			"error.professionalData.get.failed" : "这些用户信息无效：请检查输入的信息。",
			"error.identifiers.missing" : "这些用户信息无效：请检查输入的信息。<br />Si vous êtes un particulier, <a href='/zh/profil/registration.shtml?context=B2C'>cliquez ici</a>",
			
			"error.email.blocked" : "入力した情報に誤りがあるか、手続きを最後まで終了されなかった可能性があります。入力した詳細情報を修正するか、最後まで入力してください。<br />A|clubアカウントをすでにお持ちのため、@accor.comまたは類似のアドレスからのEメールの受信が拒否されます。",
			"error.email.unknown" : "error.email.unknown",
			"error.email.already.exists" : '该邮件地址已注册。<br />请点击“已注册”链接登陆。',
			"error.login.failed.wrong.identifiers" : "无效身份证明。 请重试，或创建新的个人空间。",
			"error.login.failed.account.blocked" : '要取消阻止您的帐户，请单击“忘记密码？”',
			"error.login.failed.application.blocked" : "无效身份证明。 请重试，或创建新的个人空间。",

			"error.user.notIdentified" : '要访问该网页，请<a href="/zh/profil/login.shtml">单击此处</a>登录。'
	},
	
	"profil.formValues":{
		"password" :"密码",
		"true" : "是",
		"false" : "否"
	},
	
	"profil.messages":{
    "message.email.requested.valid" : "感谢您的申请：信息已发送。<br />要激活更改，请检查您的电子邮件收件箱。",
    "message.password.requested.valid" : "您的密码已更改。<br />通知邮件已发送给您。 "
  },
	
	"profil.modify":{
		'npai': "In previous newsletter mailings, your e-mail address was identified as inaccessible. Please modify if necessary.",
		'nocard':"您没有注册的忠诚度卡。",
		'nofavhotel':"您还未选择喜欢的酒店。",
		'noprefdestination' : "您还未选择喜欢的目的地。",
		'unknown' : '未输入',
		'save eMail' : "保存电子邮件地址",
		'save password' : '保存密码',
		'save' : '注册',
		'validate identifiers' : '确认我的用户信息',
		'no.subscription' : "您还未订购简讯。<br /><br />现在就订购吧，您可以享受到我们的热门促销。"
	},
	
	"profil.newsletter" : {
		
		// MAR_AEC
		"ALL_AEC" : "Accorhotels.com 电子新闻与服务",
		"SOF_AEC" : "Sofitel.com 电子新闻与服务",
		"NOV_AEC" : "Novotel.com 电子新闻与服务",
		"MER_AEC" : "Mercure.com 电子新闻与服务",
		"SUI_AEC" : "Suitehotel.com 电子新闻与服务",
		"IBI_AEC" : "Ibishotel.com 电子新闻与服务",
		"THA_AEC" : "AccorThalassa.com 电子新闻与服务",
		"ETP_AEC" : "Etaphotel.com 电子新闻与服务",
		"FOR_AEC" : "HotelFormule1.com 电子新闻与服务",
		"PUL_AEC" : "Pullmanhotels.com 电子新闻与服务",
		"ASE_AEC" : "All Seasons 网站的最新消息, 服务与特别优惠",
		
		// AEC
		"AEC" : "来自我们的电子柜台的特别服务",
		
		// PMO
		"PMO" : "Accorhotels.com 电子新闻",
		
		"PMO_AEC" : "Accorhotels.com 电子新闻、推广优惠与服务",
		
		// Marque
		"ALL" : "Accorhotels.com 电子新闻",
		"SOF" : "Sofitel.com 电子新闻",
		"NOV" : "Novotel.com 电子新闻",
		"MER" : "Mercure.com 电子新闻",
		"SUI" : "Suitehotel.com 电子新闻",
		"IBI" : "Ibishotel.com 电子新闻",
		"THA" : "AccorThalassa.com 电子新闻",
		"ETP" : "Etaphotel.com 电子新闻",
		"FOR" : "HotelFormule1.com 电子新闻",
		"PUL" : "Pullmanhotels.com 电子新闻",
		"ASE" : "All Seasons 网站的最新消息与特别优惠",
		"MGA" : "MGallery.com 电子新闻",
		
		// PRO
		"BUS" : "Business traveler E-news",
		"MEE" : "Meetingataccorhotels.com E-news",
		
		// Autres
		"BRE" : "巴西雅高酒店的推广优惠",
		"ASI" : "Accorhotels.com 亞洲",
		"AUS" : "Accorhotels.com 澳大利亚",
		"BOT" : "雅高水疗网上商店电子新闻",
		"TRA" : "Travel agencies E-news",
		"LEI" : "Leisure Professionals E-news"
	},
	
	"freenight" : {"paper.needed" : "需要纸质证明"},
	
	"leasure.form" : {"welcome" : "Welcome to "},
  _ : function (cat,str) {
		return I18N.gettext(cat,str);
	},

	gettext : function (cat,str) {
		if (I18N[cat] && I18N[cat][str]) str = I18N[cat][str];
		return str;
	},
	
	/**
	 * Methode permettant d'afficher des textes a tous.
	 * exemple:
	 * I18N.getFormatedText("categety", "key", param0, param1, param2, ...., paramN)
	 * dant le texte a trou de "key", il sera remplacé {0} par param0, {1} par param1,
	 * .., {N} par paramN
	 * concretement:
	 * "test": {
	 *      "test": "This is the {0} time I'm {1} today"
	 *  }
	 *  I18N.getFormatedText("test", "test", "7th", "eating") 
	 * affichera: "This is the 7th time I'm eating today"
	 * @see http://javascript.internet.com/miscellaneous/message-format.html
	 */
	getFormatedText : function (cat,str) {
	    var str;
	    var i=2;
	    if (I18N[cat] && I18N[cat][str]) str = I18N[cat][str];
	    while(i<arguments.length) str=str.replace("{"+(i-2)+"}",arguments[i++]);
	    return str;
	}
}
