var i18n = { 
        'clic.here.to.move' : '地図を移動するにはここをクリック' , 
        'clic.here.to.close' : '閉じるにはここをクリック', 
	'rates.and.reservation':'料金および予約',
	'hotel.list':'ホテル一覧',
	'previous.hotel':'前のホテル',
	'next.hotel':'次のホテル',
	'add.to.favorites':'お気に入りに追加',
	'you.are.not.identified':'登録されていません',
	'avantages':'特長',
	'register':'登録',
	'already.registered':'ログイン情報を入力してください。'
};

var I18N = {
	'fh' : {
		'Click here to move to move the map' :'地図を移動するにはここをクリック' , 
		'Click here to close'                :'閉じるにはここをクリック', 
		'Rates and reservation'              :'料金および予約',
		'List of hotels'                     :'ホテル一覧',
		'Previous hotel'                     :'前のホテル',
		'Next hotel'                         :'次のホテル',
        'Previous'                           :'Previous',
        'Next'                               :'Next',
		'All'               			 	 :'All hotels',
		'Add to favorites'                   :'お気に入りに追加',
		'You are not registered'             :'登録されていません',
		'Avantages'                          :'特長',
		'Register here'                      :'登録',
		'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'	:	'1 月',
		'February'	:	'2 月',
		'March'		:	'3 月',
		'April'		:	'4 月',
		'May'		:	'5 月',
		'June'		:	'6 月',
		'July'		:	'7 月',
		'August'	:	'8 月',
		'September'	:	'9 月',
		'October'	:	'10 月',
		'November'	:	'11 月',
		'December'	:	'12 月'
	},
	
	
	'calendar_days' : {
		'Mo'	:'M',
		'Tu'	:'T',
		'We'	:'W',
		'Th'	:'T',
		'Fr' 	:'F',
		'Sa'	:'S',
		'Su'	:'S'
	},
	
	'common' : {
		'You request is being processed.' : "リクエストを処理しています...",
		'Please wait.' : "しばらくお待ちください",
		'Show details' : "詳細を表示",
		'Hide details' : "詳細を非表示"
	},
		
	'calendar' : {
		'outOfMinDate' : "今日の日付より前の日付で予約することはできません。",
		'outOfMaxDate' : "予約可能な最終日付： ",
		'tooManyNights': "予約できるのは%x 泊までです。",
		'nightNotAvailable' : '予約できない日付が含まれている期間は選択できません。',
		'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' : 'On request',
		'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' : 'お預かりした個人情報は、本日の予約作成目的以外に利用されることはありません。またお客様のクレジットカード情報が送信されることはありません。',
		'yes' : 'はい',
		'no' : 'いいえ',
		'prefill' : 'フォームに記入します',
		'noprefill' : 'あとで記入します'
	},
	"promo.booking.errors.msg": {
		"Please fill in the following fields": "次の内容を入力してください。",
		"destination": "目的地",
		"countries": "国",
		"cities": "都市",
		"hotels": "ホテル",
		"check-in date": "チェックイン日"
	},
	
	"promo.booking.defaults": {
		"Country": "国",
		"Select a country": "国を選択",
		"City": "都市",
		"Select a city": "都市を選択",
		"Hotel": "ホテル",
		"Select a hotel": "ホテルを選択",
		"Close": "閉じる"
	},
	
	"cartography": {
		"Show on a map": "地図に表示"
	},
	
	"hotels.list": {
		"Book": "Book",
		"Request a proposal": "Request a quotation",
		"wHotels" : "hotels",
		"wHotel" : "hôtel",
		"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": "You should select at least 2 hotels to make a comparison"
	},
	
	"hotels.filter": {
	    "TOW": "街の中心", 
	    "SUB": "郊外", 
	    "AIR": "空港",
	    "restaurant": "レストラン",
	    "swimmingPool": "プール",
	    "parking": "駐車場",
	    "meetingRoom": "会議室",
	    "wifi": "無線 LAN",
	    "petAllowed": "ペット同伴",
	    "hotels match": "件のホテルが一致",
	    "hotel match": "件のホテルが一致",
	    "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" : "Mr.",
			"A" : "Mrs",
			"M" : "Miss"
	},
	
	"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='/ja/profil/registration.shtml?context=B2C'>cliquez ici</a>",
      		
			"error.email.blocked" : "入力した情報に誤りがあるか、手続きを最後まで終了されなかった可能性があります。入力した詳細情報を修正するか、最後まで入力してください。A|clubアカウントをすでにお持ちのため、@accor.comまたは類似のアドレスからのEメールの受信が拒否されます。",
			"error.email.unknown" : "電子メールアドレスが不明です。 正しいメールアドレスを入力してください。",	
			"error.email.already.exists" : 'この電子メールはすでに登録されています。<br />［ご登録済みの方］リンクをクリックしてログインしてください。',

			"error.login.failed.wrong.identifiers" : "ID が無効です。 しばらくしてからもう一度やり直すか、アカウントを作成してください。",
			"error.login.failed.account.blocked" : "アカウントのパスワードをお忘れの場合は、[パスワードを忘れた場合]をクリックしてください。",
			"error.login.failed.application.blocked" : "ID が無効です。 しばらくしてからもう一度やり直すか、アカウントを作成してください。",
			
			"error.user.notIdentified" : 'このページにアクセスするには、<a href="/ja/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 />ご登録いただければ、お得なキャンペーン情報をお届けします。"
	},
	
	"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" : "オールシーズンズウェブサイトの最新ニュース、 サービス、特典",
		
		// AEC
		"AEC" : "E コンシェルジュからの特別サービス",
		
		// 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" : "オールシーズンズサイトの最新ニュースと特典",
		"MGA" : "MGallery.com のニュースレター",
		
		// PRO
		"BUS" : "出張者向けのの E ニュース",
		"MEE" : "Meetingataccorhotels.com の E ニュース",
		
		// Autres
		"BRE" : "アコーホテルズ（ブラジル）のプラン",
		"ASI" : "Accorhotels.com アジア",
		"AUS" : "Accorhotels.com オーストラリア",
		"BOT" : "アコー Thalassa オンラインショップのニュースレター",
		"TRA" : "旅行代理店向けの E ニュース",
		"LEI" : "レジャー業界の E ニュース"
	},
	
	"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;
	}
}

