Index: /branches/version-2_12-multilang/html/js/locales/en.js =================================================================== --- /branches/version-2_12-multilang/html/js/locales/en.js (revision 22166) +++ /branches/version-2_12-multilang/html/js/locales/en.js (revision 22166) @@ -0,0 +1,64 @@ +/* + * This file is part of EC-CUBE + * + * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. + * + * http://www.lockon.co.jp/ + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +var cube_locale_messages = { + // js/site.js + 'j_001': '郵便番号を正しく入力して下さい。', + 'j_002': '選択したカテゴリとカテゴリ内のすべてのカテゴリを削除します', + 'j_003': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?', + 'j_004': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?\n\n※ 在庫数は手動で戻してください。', + 'j_005': '登録しても宜しいですか', + 'j_006': '検索結果をすべて削除しても宜しいですか', + 'j_007': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?', + 'j_008': '登録しても宜しいですか', + 'j_009': '登録しても宜しいですか', + 'j_010': 'メールアドレス/パスワードを入力して下さい。', + 'j_011': '縮小', + 'j_012': '拡大', + // js/products.js + 'j_013': '申し訳ございませんが、只今品切れ中です。', + // user_data/packages/admin/js/admin.js + 'j_014': '必須項目を入力して下さい。', + 'j_015': '内容を登録しても宜しいでしょうか', + 'j_016': '登録内容を削除しても宜しいでしょうか', + 'j_017': 'カテゴリを登録しても宜しいでしょうか', + 'j_018': '親カテゴリは選択できません', + 'j_019': '登録内容を削除しても宜しいでしょうか', + 'j_020': 'この内容で登録しても宜しいでしょうか', + 'j_021': '削除しても宜しいでしょうか', + 'j_022': '登録内容を削除しても宜しいでしょうか', + 'j_023': 'カテゴリを登録しても宜しいでしょうか', + 'j_024': '親カテゴリは選択できません', + 'j_025': '登録内容を削除しても宜しいでしょうか', + 'j_026': 'この内容で登録しても宜しいでしょうか', + 'j_027': '削除しても宜しいでしょうか', + 'j_028': '既に登録されているメールアドレスです。\nメルマガの種類が変更されます。宜しいですか?', + 'j_029': ' << 表示 ', + 'j_030': ' >> 非表示 ', + // user_data/packages/admin/js/breadcrumbs.js + 'j_031': 'ホーム', + // user_data/packages/sphone/js/barbutton + 'j_032': 'TOPへ', + // user_data/packages/sphone/js/favorite.js + 'j_033': 'お気に入りに登録しました', + 'j_034': '
お気に入り登録済み
', + 'j_035': 'お気に入りの登録に失敗しました' +}; Index: /branches/version-2_12-multilang/html/js/locales/ja.js =================================================================== --- /branches/version-2_12-multilang/html/js/locales/ja.js (revision 22166) +++ /branches/version-2_12-multilang/html/js/locales/ja.js (revision 22166) @@ -0,0 +1,64 @@ +/* + * This file is part of EC-CUBE + * + * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. + * + * http://www.lockon.co.jp/ + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +var cube_locale_messages = { + // js/site.js + 'j_001': '郵便番号を正しく入力して下さい。', + 'j_002': '選択したカテゴリとカテゴリ内のすべてのカテゴリを削除します', + 'j_003': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?', + 'j_004': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?\n\n※ 在庫数は手動で戻してください。', + 'j_005': '登録しても宜しいですか', + 'j_006': '検索結果をすべて削除しても宜しいですか', + 'j_007': '一度削除したデータは、元に戻せません。\n削除しても宜しいですか?', + 'j_008': '登録しても宜しいですか', + 'j_009': '登録しても宜しいですか', + 'j_010': 'メールアドレス/パスワードを入力して下さい。', + 'j_011': '縮小', + 'j_012': '拡大', + // js/products.js + 'j_013': '申し訳ございませんが、只今品切れ中です。', + // user_data/packages/admin/js/admin.js + 'j_014': '必須項目を入力して下さい。', + 'j_015': '内容を登録しても宜しいでしょうか', + 'j_016': '登録内容を削除しても宜しいでしょうか', + 'j_017': 'カテゴリを登録しても宜しいでしょうか', + 'j_018': '親カテゴリは選択できません', + 'j_019': '登録内容を削除しても宜しいでしょうか', + 'j_020': 'この内容で登録しても宜しいでしょうか', + 'j_021': '削除しても宜しいでしょうか', + 'j_022': '登録内容を削除しても宜しいでしょうか', + 'j_023': 'カテゴリを登録しても宜しいでしょうか', + 'j_024': '親カテゴリは選択できません', + 'j_025': '登録内容を削除しても宜しいでしょうか', + 'j_026': 'この内容で登録しても宜しいでしょうか', + 'j_027': '削除しても宜しいでしょうか', + 'j_028': '既に登録されているメールアドレスです。\nメルマガの種類が変更されます。宜しいですか?', + 'j_029': ' << 表示 ', + 'j_030': ' >> 非表示 ', + // user_data/packages/admin/js/breadcrumbs.js + 'j_031': 'ホーム', + // user_data/packages/sphone/js/barbutton + 'j_032': 'TOPへ', + // user_data/packages/sphone/js/favorite.js + 'j_033': 'お気に入りに登録しました', + 'j_034': 'お気に入り登録済み
', + 'j_035': 'お気に入りの登録に失敗しました' +}; Index: /branches/version-2_12-multilang/html/js/locale.js =================================================================== --- /branches/version-2_12-multilang/html/js/locale.js (revision 22166) +++ /branches/version-2_12-multilang/html/js/locale.js (revision 22166) @@ -0,0 +1,62 @@ +/* + * This file is part of EC-CUBE + * + * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. + * + * http://www.lockon.co.jp/ + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +function fnT() { + var msgid = ''; + + if (arguments.length == 0) { + throw new Error('invalid arguments.'); + } + + // message id only. + if (arguments.length == 1) { + msgid = arguments[0]; + if (cube_locale_messages[msgid]) { + return cube_locale_messages[msgid]; + } + return msgid; + } + + // formated message + if (arguments.length > 1) { + msgid = arguments[0]; + if (cube_locale_messages[msgid]) { + var message = cube_locale_messages[msgid]; + for (var i = 1; i < arguments.length; i++) { + var reg = new RegExp("\\{" + (i - 1) + "\\}", "g"); + if (arguments[i] == null) { + message = message.replace(reg, "null"); + } else { + try { + message = message.replace(reg, arguments[i].toString()); + } catch (e) { + message = message.replace(reg, "[object]"); + } + } + } + return message; + } + return msgid; + } + return msgid; +} + Index: /branches/version-2_12-multilang/data/Smarty/templates/sphone/site_frame.tpl =================================================================== --- /branches/version-2_12-multilang/data/Smarty/templates/sphone/site_frame.tpl (revision 21867) +++ /branches/version-2_12-multilang/data/Smarty/templates/sphone/site_frame.tpl (revision 22166) @@ -31,5 +31,6 @@ - + + Index: /branches/version-2_12-multilang/data/Smarty/templates/default/site_frame.tpl =================================================================== --- /branches/version-2_12-multilang/data/Smarty/templates/default/site_frame.tpl (revision 21867) +++ /branches/version-2_12-multilang/data/Smarty/templates/default/site_frame.tpl (revision 22166) @@ -29,4 +29,6 @@ + + @@ -56,7 +58,13 @@