var global_message = {};
var global_substitute_word = '###SUBSTITUTE###';
global_message['photo'] = {};
global_message['photo']['confirm_delete'] = '写真「'+ global_substitute_word +'」を削除します。ほかのYahoo!サービスでも公開している場合、\nそのサービス上でも写真は削除されます。よろしいですか？';
global_message['photo_title'] = {};
global_message['photo_title']['empty'] = 'タイトルを全角64文字以内で入力してください。' ;
global_message['photo_title']['too_long'] = 'タイトルが長すぎます。全角64文字以内で入力してください。' ;
global_message['photo_title']['saving'] = '保存中';
global_message['photo_title']['api_error'] = 'タイトルを変更できませんでした。';
global_message['photo_title']['blank_string'] = 'クリックしてタイトルを編集できます。';
global_message['photo_title']['save_button'] = '決定';
global_message['photo_title']['cancel_button'] = 'キャンセル';
global_message['photo_description'] = {};
global_message['photo_description']['too_long'] = '説明が長すぎます。全角256文字以内で入力してください。';
global_message['photo_description']['saving'] = '保存中';
global_message['photo_description']['api_error'] = '説明文を変更できませんでした。';
global_message['photo_description']['blank_string'] = 'クリックして説明文を全角256文字以内で編集できます。';
global_message['album_description'] = {};
global_message['album_description']['too_long'] = '説明が長すぎます。全角1000文字以内で入力してください。';
global_message['album_description']['blank_string'] = 'クリックして説明文を全角1000文字以内で編集できます。';
global_message['photo_upload'] = {};
global_message['photo_upload']['select_file_error'] = 'アップロードしたいファイルを選択してください。';
global_message['photo_upload']['select_file_invalid'] = '選択したファイルが不正です。';
global_message['photo_yightbox'] = {};
global_message['photo_yightbox']['select_album_error'] = 'アルバムを選択してください。';
global_message['photo_yightbox']['get_albumlist_error'] = 'Myアルバム一覧を表示できませんでした。しばらく時間をおいて再度おためしください。';
global_message['photo_yightbox']['albumlist_empty'] = 'Myアルバムが作成されていません。';
global_message['photo_yightbox_p'] = {};
global_message['photo_yightbox_p']['select_photo_error'] = '写真を選択してください。';
global_message['photo_yightbox_p']['get_photolist_error'] = '写真を表示できませんでした。しばらく時間をおいて再度お試しください。';
global_message['photo_yightbox_p']['photolist_empty'] = '写真がありません。';
global_message['photo_page_tag'] = {};
global_message['photo_page_tag']['tag_is_null'] = 'タグを入力してください。';
global_message['photo_page_tag']['invalid_tag'] = 'タグに使用できない文字があります。[<a href="' + global_substitute_word + '">タグに使用できない文字</a>]';
global_message['photo_page_tag']['too_long_tags'] = 'タグが長すぎます。半角1文字以上、全角20文字以内で入力してください。';
global_message['photo_page_tag']['too_long_tags_string'] = '一度につけられたタグの文字数が400文字を超えています。あわせて400文字以内でタグをつけてください。';
global_message['photo_page_tag']['too_many_tags'] = 'タグの数が上限の300個を超えるため、新しいタグをつけることはできません。';
global_message['photo_page_tag']['too_many_tags_for_photo'] = '1つの写真につけられるタグは20個までです。';
global_message['photo_page_tag']['add_api_error'] = 'タグが追加できませんでした。';
global_message['photo_page_tag']['remove_api_error'] = 'タグを削除できませんでした。';
global_message['photo_page_tag']['confirm_delete'] = 'タグ「'+ global_substitute_word +'」をこの写真から削除します。';
global_message['photo_page_tag']['black_tag'] = '不正なタグが含まれています。';
global_message['photo_page_tag']['loading'] = '読み込み中';
global_message['photo_page_tag']['read_api_error'] = 'タグが読み込めませんでした。';
global_message['photo_page_tag']['no_tag_data'] = 'タグがありません。';
global_message['photo_page_tag']['select_tags'] = '選択';
global_message['photo_page_tag']['display_all_tags'] = '一覧';
global_message['photo_acl'] = {};
global_message['photo_acl']['api_error'] = '公開範囲を変更できませんでした。';
global_message['photo_acl']['done'] = '写真の公開範囲を変更しました。';
global_message['albums'] = {};
global_message['albums']['confirm_delete'] = 'アルバム「'+ global_substitute_word +'」を削除するとアルバム、コメントは削除され元に戻せません。\n写真は投稿した人の写真一覧に残ります。';
global_message['albums']['confirm_delete_comment'] = 'このコメントを削除します。';
global_message['albums']['title_empty'] = 'アルバムタイトルを入力してください。';
global_message['albums']['title_too_long'] = 'アルバムタイトルが長すぎます。全角64文字以内で入力してください。';
global_message['albums']['desc_too_long'] = 'アルバムの説明が長すぎます。全角1000文字以内で入力してください。';
global_message['albums']['photo_not_found'] = 'アルバムの中に写真がありません。';
global_message['albums']['detach_photo_done'] = 'アルバムから写真を外しました。';
global_message['albums']['attach_photo_done'] = 'アルバムに写真を入れました。';
global_message['batch'] = {}
global_message['batch']['nocheck'] = '写真が選択されていません。';
global_message['batch']['detach_photo'] = '選択した写真をアルバムから外します。よろしいですか？';
global_message['batch']['attach_photo_album'] = '選択した写真をアルバムに追加します。よろしいですか？';
global_message['batch']['attach_photo_community'] = '「共有アルバム」「合い言葉制共有アルバム」に写真を入れると、写真の公開範囲にかかわらず、アルバムを見れる\n人は誰でも写真を見られます。選択した写真をこのアルバムに入れます。';
global_message['batch']['delete_photo'] = '選択した写真を削除します。ほかのYahoo!サービスでも公開している場合、\nそのサービス上でも写真は削除されます。よろしいですか？';
global_message['photo']['confirm_atach_photo'] = 'この写真をアルバム「' + global_substitute_word + '」に入れます。';
global_message['photo']['confirm_atach_photo2'] = '写真をこのアルバムに入れます。';
global_message['photo']['confirm_community_atach_photo'] = '「共有アルバム」「合い言葉制共有アルバム」に写真を入れると、写真の公開範囲にかかわらず、アルバムを見れる\n人は誰でも写真を見られます。';
global_message['photo']['confirm_detach_photo'] = 'この写真をアルバム「' + global_substitute_word + '」から外します。';
global_message['photo']['confirm_detach_photo2'] = 'この写真をアルバムから外します。';
global_message['photo']['detach_photo_done'] = '写真をアルバムから外しました。';
global_message['photo']['attach_photo_done'] = '写真をアルバムに入れました。';
global_message['photo']['remove_tag_done'] = '写真のタグを削除しました。';
global_message['photo']['remove_photo_api_error'] = 'アルバムから写真を削除できませんでした。';
global_message['photo']['attach_photo_api_error'] = 'アルバムに写真を追加できません。';
global_message['account'] = {};
global_message['account']['confirm_mobile_edit'] = '投稿先メールアドレスを変更します。' ;
global_message['account']['confirm_mobile_get'] = '投稿先メールアドレスを取得します。' ;
global_message['rotatebox'] = {};
global_message['rotatebox']['rotate_error'] = '写真を回転できませんでした。';
global_message['common_error'] = {};
global_message['common_error']['connection_failure'] = 'エラーが発生しました。';
global_message['api_error_code_common_message'] = {};
var global_done = {};
global_done['photo'] = {};
global_done['photo']['attach_photo_done'] = 211;
global_done['photo']['detach_photo_done'] = 212;
global_done['albums'] = {};
global_done['albums']['attach_photo_done'] = 250;
global_done['albums']['detach_photo_done'] = 251;
global_done['albums']['rotate_photo_done'] = 219;
function _message_substitute(raw_message,substitute_data){
return raw_message.replace( global_substitute_word, substitute_data );
}
function _api_error_message(api_name,error_code){
call_api_error_message_hash = api_name.split(".").join("_");
return global_message[call_api_error_message_hash][error_code];
}

