diff --git a/public/config-default.js b/public/config-default.js index 18a9b67f..aa4d9e52 100644 --- a/public/config-default.js +++ b/public/config-default.js @@ -22,6 +22,10 @@ var Config = { { "filename": "zh-hk", "name": "繁体中文" + }, + { + "filename": "ja-jp", + "name": "日本語" } ], "lang": "en-us", diff --git a/public/config.js b/public/config.js index 18a9b67f..aa4d9e52 100644 --- a/public/config.js +++ b/public/config.js @@ -22,6 +22,10 @@ var Config = { { "filename": "zh-hk", "name": "繁体中文" + }, + { + "filename": "ja-jp", + "name": "日本語" } ], "lang": "en-us", diff --git a/public/langs/ja-jp.js b/public/langs/ja-jp.js new file mode 100644 index 00000000..dd41b000 --- /dev/null +++ b/public/langs/ja-jp.js @@ -0,0 +1,332 @@ +{ + "3th": "他の方でログイン", + "aboutLeanote": "leanoteについて", + "aboutMe": "ホルダーについて", + "accountSetting": "アカウント設定", + "addChildNotebook": "サブノートブックを追加", + "addNotebook": "ノートブックを追加", + "addShare": "シェア", + "all": "最新", + "app": "leanote", + "attachments ": "添付ファイル", + "basicInfo": "基本情報", + "blog": "ブログ", + "blogInfo": "ノートを共有して、知識が飛んでしましょう", + "blogSet": "ブログ設定", + "blue": "青", + "Cancel": "キャンセル", + "Cancel public": "共有ブログをキャンセル", + "canntNewNoteTips": "申し訳ございません、ノートを追加できない、その前にノートブックが必要です", + "checkEmai": "メールをチェック", + "checkEmail": "メールをチェック", + "clearSearch": "クリア", + "clickAddTag": "タグを追加", + "clickToChangePermission": "権限を変更", + "clickToCopy": "コピー", + "Close": "クローズ", + "confirmBackup": "本当に古いバージョンを復元したいですか?復元前に、システムは本バージョンをばバックアップします。", + "confirmPassword": "入力されたパスワードが一致しません", + "cooperation": "協創", + "cooperationInfo": "友達と共有して、一緒に編集してください。", + "Copy": "コピー", + "copyFailed": "申し訳ございません、コピーが失敗した、自分でコピーしてください", + "copySuccess": "コピーした", + "copyToMyNotebook": "自分のメートに保存する", + "create": "新規", + "createAccount": "アカウントを作成", + "createAccountFailed": "アカウントを作成できません", + "createAccountSuccess": "アカウントを作成した", + "curUser": "本アカウント", + "currentEmail": "本メールアドレス: \u003ccode\u003e%s\u003c/code\u003e ", + "datetime": "日付", + "default": "デフォルト", + "defaultShare": "デフォルトシェア", + "defaulthhare": "デフォルトシェア", + "delete": "削除", + "deleteAllShared": "共有物を全て削除", + "deleteSharedNotebook": "共有ノートブックを全て削除", + "demoRegister": "\u003ca href=\"/register\"\u003eアカウントを作成\u003c/a\u003e", + "discussion": "コミュニティ検討", + "donate ": " 寄付", + "download": "ダウンロード", + "editorTips": "ガイド", + "email": "メールアドレス", + "emailBodyRequired": "メッセージの内容を入手してください", + "emailInSending": "メッセージを送信している", + "emailOrOthers": "メールアドレスや他の連絡先", + "emailSendFailed": "メッセージの送信に失敗しました", + "errorEmail": "正しいメールアドレスを入手してください", + "errorPassword": "長さが6文字以上、複雑なパスワードをお願い致します", + "findPassword": "パスワードを忘れている場合", + "findPasswordSendEmailOver": "パスワード変更ためメールを送信した、メールを確認してください。", + "findPasswordTimeout": "リンクの有効期限が切れている", + "fold": "折り畳む", + "forgetPassword ": " パスワードをお忘れですか?", + "fork github": "Github ソース", + "friendEmail": "友達のメールアドレス", + "friendNotExits": "このユーザーはまだ利用できない%s, 招待状のリンクを彼に送信してください, リンク: %s", + "green": "緑", + "hadAcount ": " アカウントをお持ちでいるか?", + "hasAcount ": " アカウントをお持ちでないか?", + "hi": "よろしく", + "history": "履歴", + "home": "ホームページ", + "howToInstallLeanote": "leanoteインストール手順", + "ing": "処理している", + "inputEmail": "メールアドレス入力", + "inputFriendEmail": "友達のメールアドレスを入力", + "inputNewPassword": "新しいパスワードを入力", + "inputPassword": "パスワードを入力", + "inputPassword2": "パスワードを確認入力", + "inputUsername": "名前を入力", + "knowledge": "知識", + "knowledgeInfo": "leanoteがノートアプリ、知識管理向け", + "leanoteBlog": "公式ブログ", + "leftHidden": "隐藏左侧左を隠す", + "leftShow": "左側を示す", + "login": "ログイン", + "loginSuccess": "ログインした、少々お待ちください", + "logining": "ログインしている", + "logout": "ログアウト", + "Logout": "ログオフ", + "minLength": "最小長さが%s", + "Move": "移動", + "myBlog": "マイブログ", + "myNote": "マイノート", + "myNotebook": "マイノートブック", + "myTag": "マイなタグ", + "nav": "ナビ", + "new": "新規", + "newMarkdown": "Markdown型ノートを新規", + "newMarkdownNote": "Markdown型ノートを新規", + "newNote": "ノート新規", + "newPassword": "新しいパスワード", + "noHistories": "履歴がなし", + "noNoteNewNoteTips": "このノート中に何もないが、必ず何かを書きてください", + "noSpecialChars": "特殊文字が含まれるがダメです", + "normalMode": "普通な型", + "notFound": "該当するファイルが存在しない", + "notGoodPassword": "パスワードの最小長さが6文字です", + "notebook": "ノートブック", + "oldPassword": "古いパスワード", + "or": "か", + "password": "パスワード", + "password2": "パスワードを確認", + "passwordTips": "パスワードの最小長さが6文字です", + "permission": "権限", + "reFindPassword": "パスワードの最小長さが6文字です", + "readOnly": "読み取り専用の", + "red": "赤い", + "register": "アカウントを作成", + "registerSuccessAndRdirectToNote": "アカウントを作成した、少々お待ちください。", + "rename": "名前を変更", + "resendVerifiedEmail": "確認メールを再送信します", + "restoreFromThisVersion": "从该版本还原古いバージョンを復元します", + "save": "保存", + "saveSuccess": "保存した", + "saving": "保存中…", + "search": "検索", + "send": "送信", + "sendFailed": "送信が失敗です", + "sendInviteEmailToYourFriend": "誘いメールを送信します", + "sendSuccess": "送信した", + "sendVerifiedEmail": "確認メールアドレスへ送信します", + "setAvatar": "画像を設定", + "setUsername": "名前を設定", + "setUsernameTips": "メールアドレスが \u003ccode\u003e%s\u003c/code\u003e, 一つだけの名前を設定できる.\u003cbr /\u003e名前の長さが4文字です, 特殊文字がダメです", + "share": "シェア", + "shareInfo": "友達とシェアできます", + "shareToFriends": "友達とシェア", + "simple": "シンプル", + "submit": "提出", + "suggestions": "助言", + "suggestionsInfo": "leanoteを改善私たちを助け", + "tag": "タグ", + "themeSetting": "テーマ設定", + "thirdCreateAcountTips": "今は他のサービスアカウントでログインしている%(app)s, %(app)sアカウントを作成できる, 直ぐに作成してお願い致します \u003cbr /\u003e作成した後で、他のサービスアカウントも利用できる。", + "trash": "ゴミ箱", + "try": "試みる", + "unTitled": "無題", + "unVerified": "未検証", + "unfold": "示す", + "update": "アップデート", + "updateEmail": "メールアドレスを変更", + "updateEmailTips": "メールアドレスを変更した、検証してください。検証した後で、新しいメールアドレスでログイン出来ます。", + "updatePassword": "パスワードを変更", + "updatePasswordSuccess": "パスワードを変更した", + "updatePasswordSuccessRedirectToLogin": "変更した、少々お待ちください。", + "updateUsernameSuccess": "名前を変更した", + "uploadImage": "イメージをアップロード", + "use ": " 使用", + "usernameIsExisted": "この名前がもう存在している", + "usernameOrEmail": "名前やメールアドレス", + "usernameSetting": "名前を設定", + "verified": "検証した", + "verifiedEmaiHasSent": "検証メールを送信した、確認してください。", + "verifiedNow": "直ぐに確認します", + "welcomeUseLeanote": "leanoteを使用して、よろしく", + "writable": "書き込み可能な", + "writingMode": "書き込みモード", + "wrongEmail": "メールアドレスの形式が正しくありません", + "wrongPassword": "パスワードが正しくありません", + "wrongUsernameOrPassword": "名前やパスワードが間違っている", + "yellow": "イエロー", + "yourContact": "ご連絡先", + "yourSuggestions": "leanoteを改善私たちを助け", + "Close": "クローズ", + + "Notebook": "ノートブック", + "Note": "ノート", + "Tag": "タグ", + "Starred": "スタート", + "Newest": "最新ノート", + "New": "新規", + "New note": "ノートを新規", + "Search note": "ノートを検索", + "Search notebook": "ノートブックを検索", + + "Add account": "アカウントを追加", + "Switch account": "アカウントを切り替えます", + "Sync": "同期", + "Loading": "ロード中…", + "Loading...": "ロード中…", + "loading...": "ロード中…", + "loading": "ロード中…", + "Choose Files": "ファイルを選択", + "Check for updates": "更新プログラムを確認", + "Checking for udpates...": "更新プログラムを確認している", + "Current version": "本バージョン", + "Upgrade": "アップグレード", + "This note is conflicted with:": "ノートの競合次の注意事項:", + "Maker as resolved": "競合の解決策をマーキング", + "Leanote, Not Just A Notepad": "Leanote, ノートだけではありません。", + "Public as blog": "ブログで共有します。", + "Cancel public": "共有ブログをキャンセルします。", + "Delete": "削除", + "Remove": "取り除く", + "Export": "出力", + "Export notes": "出力", + "Histories": "履歴", + "Created": "新規登録", + "Updated": "更新", + "Modify": "編集", + "Toggle writting mode": "書き込みモードを切り替えます", + "Attachments": "添付ファイル", + "UnTitled": "無題", + + "Vim mode": "Vim モード", + "Emacs mode": "Emacs モード", + "Normal mode": "普通なモード", + "Light editor": "軽いエディタ", + "Light": "軽い", + "Normal": "普通な", + + "Add sub notebook": "サブノートブックを追加", + "Rename": "名前を変更", + "Import notes": "ノート入力", + + "My blog": "マイブログ", + "Sync now": "直ぐに同期", + + "Custom server": "カスタム サーバー", + "Host, https://leanote.com": "サーバーアドバイス, 例えば: https://leanote.com", + "Username or Email": "名前やメールアドレス", + "Password": "パスワード", + "Sign up": "アカウントを作成", + "Sign up Leanote": "Leanoteを作成", + "Forget password?": "パスワードをお忘れですか?", + "Find password": "パスワードをお忘れた場合", + + "Untitled": "無題", + "No Starred Note": "スタートないノート", + "Conflict": "競合", + "Star": "スター", + "Blog": "ブログ", + "Setting": "設定", + + "Insert link into content": "リンク先を書き込む", + "Save as": "別名で保存", + + "Search results": "検索結果", + + "Image saved successful!": "イメージを保存した!", + "Image saved failed!": "イメージを保存するが失敗です!", + "File saved failed!": "ファイルを保存するが失敗です!", + "File saved successful!": "ファイルを保存した!", + + "File not exists!": "ファイルがありません!", + "Error": "エラー", + "Cut": "カット", + "Copy": "コピー", + "Paste": "ペースト", + "Open link in browser": "ブラウザを開きます", + + "Info": "提示", + "Warning": "警告", + + "Mode": "モード", + "Toggle Fullscreen": "全画面を切り替えます", + "Toggle Presentation": "プレゼンを切り替えます", + "Toggle View": "閲覧を切り替えます", + + "More...": "さらに", + "Force full sync": "全て強制に同期します", + "ForceFullSyncMsg": "全て強制に同期することは、先ずローカルデータを全て削除して, サーバーからデータを取得します, 本当に欲しいですか?", + + "Are you sure to delete it ?": "本当に削除したい?", + "Are you sure ?": "本当にやりたい?", + + "Email or Password Error": "名前やパスワードが間違った", + "Invalid host": "サーバーアドバイスが間違った", + "Leanote login": "ログイン", + "Email is required": "名前やメールアドレスを入力してください。", + "Password is required": "パスワードを入力", + + "The minimum password length is 6": "パスワードの最小長さが6文字", + "Sign in to Self-hosted Service": "自分のサーバーへログイン", + "Self-hosted Service": "自分のサーバーを構築", + "Create Local Account": "ローカルアカウントを作成", + "Sign in to Leanote": "Leanoteへログイン", + "Confirm password": "パスワード確認入力", + "Username": "名前", + "User exists": "ユーザーがもう存在している", + "Local": "ローカル", + + "Synchronizing": "同期中…", + + "Hyperlink":"リンク", + "Please provide the link URL and an optional title":"リンクとタイトルを入力してください", + "optional title":"タイトル選択肢", + "Cancel":"キャンセル", + "Strong":"太字", + "strong text":"太字", + "Emphasis":"斜体", + "emphasized text":"斜体", + "Blockquote":"引用", + "Code Sample":"コード", + "enter code here":"コード", + "Image":"イメージ", + "Heading":"ヘディング", + "Numbered List":"順序付きリスト", + "Bulleted List":"無秩序にリスト", + "List item":"项目", + "Horizontal Rule":"レベル線", + "Undo":"取り消し", + "Redo":"やり直し", + "enter image description here":"イメージタイトル", + "enter link description here":"リンクタイトル", + + "Please select a note firstly.": "その前、ノートを選択してください。", + " notes selected": "選択したノートが  篇", + + "Sync error, retry to sync after 3 seconds": "同期が失敗し、3秒後に自動的に同期を再試行", + "Network error!": "ネットワークは何か問題がありますね。", + + "Load Database Error": "加载数据库出错, 请尝试在帐户管理中优化数据库", + + "Local account warning": "ローカルアカウント警告", + "localAccountTips": "お客様はローカルアカウント使用しているので、 データが全てローカルに保存します。 Leanote サーバーと同期できません、 一旦ローカルに何か問題が発生した、 今のデータが全て消します、これはとても怖いです。
だから、Leanoteアカウントを作成してください、 これからデータが全てLeanoteサーバーに保存して、 データ損失が回避できる。
今後にはLeanoteアプリでローカルアカウントを作成できない、でも元々のローカルアカウント利用できます。", + "Don't Show Anymore": "再表示しません", + + "ctrl/cmd+e Toggle Modify with Readonly": "ctrl/cmd+e 編集と閲覧を変更" +} diff --git a/public/plugins/accounts/plugin.js b/public/plugins/accounts/plugin.js index 0b169ff0..5fe5167a 100644 --- a/public/plugins/accounts/plugin.js +++ b/public/plugins/accounts/plugin.js @@ -74,6 +74,36 @@ define(function() { "Database": "數據庫", "Image": "圖片", "Attachment": "附件", + }, + 'ja-jp': { + 'Accounts': 'アカウント管理', + "Username": "名前", + "Is Local": "ローカルアカウント", + 'Host': 'サーバー', + "Yes": "はい", + "No": "いいえ", + "DB Optimization": "データベース最適化", + "Open Dir": "ディレクトリを開く", + "Data": "データ", + "Options": "操作", + "Current": "現在の", + "Delete": "削除", + "Close": "クローズ", + + "Optimizing": "最適化しています", + "Completed": "最適化した", + "Deleted": "削除した", + + "Error": "エラー", + "No such account": "本アカウントがない", + "Are you sure, it can't be recovered after it has been deleted": "本当にこのアカウントを削除したいですか? このアカウントについてのデータを全て削除します。", + "Notebook": "ノートブック", + "Note": "ノート", + "Tag": "タグ", + + "Database": "データベース", + "Image": "イメージ", + "Attachment": "添付ファイル", } }, _tpl: ` @@ -88,7 +118,7 @@ define(function() { } #accountsDialog td button { padding: 5px 8px; - + } #accountsDialog .modal-dialog { width: 830px ; @@ -263,7 +293,7 @@ define(function() { var host = user.Host || Api.evtService.getHost(); username += '
' + me.getMsg('Host') + ': ' + host + ''; } - + var tr = '' + username + ''; tr += '' + (user.IsLocal ? me.getMsg('Yes') : me.getMsg('No')) + ''; @@ -459,7 +489,7 @@ define(function() { // 如果是笔记, 则迁移它的笔记历史记录 if (name === 'notes') { me.migrateNoteHistories( - doc.NoteId, + doc.NoteId, sourceDb['noteHistories'], distDb['noteHistories'], function () { @@ -479,7 +509,7 @@ define(function() { callback(true); }); }); - + }, dbNames: ['notebooks', 'notes', 'tags', 'images', 'attachs', 'noteHistories'], @@ -513,7 +543,7 @@ define(function() { cb(); return; } - + me.migrateEach(userId, sourceDb, distDb, name, function(ok) { if (ok) { // console.log(name + ' Over'); @@ -572,4 +602,4 @@ define(function() { return accounts; -}); \ No newline at end of file +}); diff --git a/public/plugins/langs/plugin.js b/public/plugins/langs/plugin.js index b0284653..2b969b8b 100644 --- a/public/plugins/langs/plugin.js +++ b/public/plugins/langs/plugin.js @@ -12,6 +12,9 @@ define(function() { }, 'zh-hk': { 'setLang': '語言設置', + }, + 'ja-jp': { + 'setLang': '语言设置' } }, _langsMenu: {}, // // name => menu diff --git a/public/plugins/theme/plugin.js b/public/plugins/theme/plugin.js index affda80c..ced92369 100644 --- a/public/plugins/theme/plugin.js +++ b/public/plugins/theme/plugin.js @@ -12,6 +12,9 @@ define(function() { }, 'zh-hk': { 'changeTheme': '主題設置' + }, + 'ja-jp': { + 'changeTheme': '主題設定' } }, diff --git a/public/themes/themes/black/theme.json b/public/themes/themes/black/theme.json index 24c78454..3024782f 100644 --- a/public/themes/themes/black/theme.json +++ b/public/themes/themes/black/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "暗" + }, + "ja-jp": { + "name": "ダーク" } } } \ No newline at end of file diff --git a/public/themes/themes/blue/theme.json b/public/themes/themes/blue/theme.json index 77716364..0965d6ff 100644 --- a/public/themes/themes/blue/theme.json +++ b/public/themes/themes/blue/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "藍" + }, + "ja-jp": { + "name": "青い" } } } \ No newline at end of file diff --git a/public/themes/themes/grass/theme.json b/public/themes/themes/grass/theme.json index 7aa44289..ffd50991 100644 --- a/public/themes/themes/grass/theme.json +++ b/public/themes/themes/grass/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "綠草" + }, + "ja-jp": { + "name": "草" } } } \ No newline at end of file diff --git a/public/themes/themes/night/theme.json b/public/themes/themes/night/theme.json index 20a14195..023976e6 100644 --- a/public/themes/themes/night/theme.json +++ b/public/themes/themes/night/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "夜色" + }, + "ja-jp": { + "name": "夜" } } } \ No newline at end of file diff --git a/public/themes/themes/pebbles/theme.json b/public/themes/themes/pebbles/theme.json index 6cdbd0a0..3d8f3d9b 100644 --- a/public/themes/themes/pebbles/theme.json +++ b/public/themes/themes/pebbles/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "鵝卵石" + }, + "ja-jp": { + "name": "玉石" } } } \ No newline at end of file diff --git a/public/themes/themes/pebbles_night/theme.json b/public/themes/themes/pebbles_night/theme.json index 42227516..24a31093 100644 --- a/public/themes/themes/pebbles_night/theme.json +++ b/public/themes/themes/pebbles_night/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "鵝卵石-夜色" + }, + "ja-jp": { + "name": "玉石-夜" } } } \ No newline at end of file diff --git a/public/themes/themes/vegetables/theme.json b/public/themes/themes/vegetables/theme.json index 5e518ed6..be1fcae7 100644 --- a/public/themes/themes/vegetables/theme.json +++ b/public/themes/themes/vegetables/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "蔬菜" + }, + "ja-jp": { + "name": "野菜" } } } \ No newline at end of file diff --git a/public/themes/themes/volumn/theme.json b/public/themes/themes/volumn/theme.json index c3c634a3..14cc2cc2 100644 --- a/public/themes/themes/volumn/theme.json +++ b/public/themes/themes/volumn/theme.json @@ -12,6 +12,9 @@ }, "zh-hk": { "name": "書卷" + }, + "ja-jp": { + "name": "書巻" } } } \ No newline at end of file diff --git a/public/themes/themes/water/theme.json b/public/themes/themes/water/theme.json index 7f2b978d..0bc6d1c0 100644 --- a/public/themes/themes/water/theme.json +++ b/public/themes/themes/water/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "波光" + }, + "ja-jp": { + "name": "波光" } } } \ No newline at end of file diff --git a/public/themes/themes/water_night/theme.json b/public/themes/themes/water_night/theme.json index d1cd370c..5a8e5659 100644 --- a/public/themes/themes/water_night/theme.json +++ b/public/themes/themes/water_night/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "波光-夜色" + }, + "ja-jp": { + "name": "波光-夜" } } } \ No newline at end of file diff --git a/public/themes/themes/wheat/theme.json b/public/themes/themes/wheat/theme.json index 2abdbb61..a90fef3b 100644 --- a/public/themes/themes/wheat/theme.json +++ b/public/themes/themes/wheat/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "小麥" + }, + "ja-jp": { + "name": "小麦" } } } \ No newline at end of file diff --git a/public/themes/themes/wood/theme.json b/public/themes/themes/wood/theme.json index 4182711b..8e15d2bd 100644 --- a/public/themes/themes/wood/theme.json +++ b/public/themes/themes/wood/theme.json @@ -11,6 +11,9 @@ }, "zh-hk": { "name": "木紋" + }, + "ja-jp": { + "name": "木" } } } \ No newline at end of file