16 lines
6.9 KiB
JavaScript
16 lines
6.9 KiB
JavaScript
var MSG = {"3th":"Third-party accounts","aboutLeanote":"About leanote","aboutMe":"About me","accountSetting":"Account","addChildNotebook":"Add child notebook","addNotebook":"Add notebook","addShare":"Add Friend","all":"Newest","app":"leanote","attachments ":" Attachments","basicInfo":"Basic","blog":"Blog","blogInfo":"You can public your knowledge and leanote is your blog!","blogSet":"Set blog","blue":"blue","cancel":"Cancel","cancelPublic":"Cancel public","canntNewNoteTips":"Sorry, cannot new note in here, please choose a notebook at first.","checkEmai":"Check email","checkEmail":"Check email","clearSearch":"Clear Search","clickAddTag":"Click to add Tag","clickToChangePermission":"Click to change permission","clickToCopy":"Click to copy","close":"Close","confirmBackup":"Are you sure to restore from this version? We will backup the current note.","confirmPassword":"Password not matched","cooperation":"Cooperation","cooperationInfo":"Collaborate with friends to improve your knowledge.","copy":"Copy","copyFailed":"Copy failed","copySuccess":"Copy success","copyToMyNotebook":"Copy to my notebook","create":"Create","createAccount":"Create account","createAccountFailed":"Account create failed","createAccountSuccess":"Account create success","curUser":"Email","currentEmail":"Your current email is: \u003ccode\u003e%s\u003c/code\u003e ","datetime":"Datetime","default":"Default","defaultShare":"Default sharing","defaulthhare":"Default","delete":"Delete","deleteAllShared":"Delete shared user","deleteSharedNotebook":"Delete shared notebook","demoRegister":"\u003ca href=\"/register\"\u003eSign up\u003c/a\u003e","discussion":"Discussion","donate ":" Donate","download":"Download","editorTips":"Tips","editorTipsInfo":"\u003ch4\u003e1. Short cuts\u003c/h4\u003ectrl+shift+c Toggle code \u003cbr /\u003e ctrl+shift+i Insert/edit image \u003ch4\u003e2. shift+enter Get out of current block\u003c/h4\u003e eg. \u003cimg src=\"/images/outofcode.png\" style=\"width: 90px\"/\u003e in this situation you can use shift+enter to get out of current code block.","email":"Email","emailBodyRequired":"Email body is required","emailInSending":"In sending to ","emailOrOthers":"Email or other contact way","emailSendFailed":"Email send failed","errorEmail":"Please input the right email","errorPassword":"The passowd's length is at least 6 and be sure as complex as possible","findPassword":"Find password","findPasswordSendEmailOver":"We have already send the find password link to your email, please check out your email","findPasswordTimeout":"time out","fold":"Fold","forgetPassword ":" Forget password?","fork github":"Fork leanote on Github","friendEmail":"Friend email","friendNotExits":"Your friend hasn't %s's account, invite register link: %s","green":"green","hadAcount ":" Already have an account?","hasAcount ":" Do not have an account?","hi":"Hi","historiesNum":"We have saved at most \u003cb\u003e10\u003c/b\u003e latest histories with each note","history":"Histories","home":"Home","howToInstallLeanote":"How to install leanote","ing":"processing","inputEmail":"Email is required","inputFriendEmail":"Friend email is required","inputNewPassword":"The new password is required","inputPassword":"Password is required","inputPassword2":"Please input the new password again","inputUsername":"input username","inviteEmailBody":"Hi,I am %s, %s is awesome, come on!","knowledge":"Knowledge","knowledgeInfo":"Use leanote as a note, manage your knowledge in leanote.","leanoteBlog":"Blog","leftHidden":"Hidden slide bar","leftShow":"Show slide bar","login":"Sign in","loginSuccess":"login success","logining":"Sign in","logout":"Logout","minLength":"The length is at least %s","moto":"your own cloud note!","moto2":"Knowledge, Sharing, Cooperation, Blog... all in leanote","moto3":"Brief But Not Simple","move":"Move","myBlog":"Blog","myNote":"My note","myNotebook":"My notebook","myTag":"My tag","nav":"Note nav","new":"New","newMarkdown":"New markdown note","newMarkdownNote":"New Markdown Note","newNote":"New note","newPassword":"New password","noHistories":"No histories","noNoteNewNoteTips":"The notebook is empty, why not...","noSpecialChars":"username cannot contains special chars","normalMode":"Normal Mode","notFound":"This page cann't found.","notGoodPassword":"Tt's not a good password, the length is at least 6","notebook":"Notebook","oldPassword":"Old password","or":"or","password":"Password","password2":"Confirm your password","passwordTips":"The length is at least 6","permission":"Permission","publicAsBlog":"Public as blog","reFindPassword":"find password again","readOnly":"Read only","red":"red","register":"Sign up","registerSuccessAndRdirectToNote":"Register success, redirecting...","rename":"Rename","resendVerifiedEmail":"Resend verification email","restoreFromThisVersion":"Restore from this version","save":"Save","saveSuccess":"Save success","saving":"Saving","search":"Search","send":"Send","sendInviteEmailToYourFriend":"Send invite email to your friend","sendSuccess":"success","sendVerifiedEmail":"Send verification email","setAvatar":"Avatar","setUsername":"Set username","setUsernameTips":"Your current email is: \u003ccode\u003e%s\u003c/code\u003e. You can set a unique username. \u003cbr /\u003eUsername' length is at least 4 and cannot contains special characters.","share":"Share","shareInfo":"Share your knowledge to your friends in leanote.","shareToFriends":"Share to friends","simple":"Simple","submit":"submit","suggestions":"Suggestions","suggestionsInfo":"help us to improve our service.","tag":"Tag","themeSetting":"Theme","thirdCreateAcountTips":"You are using the 3th account to login %(app)s, you can create a %(app)s account too. \u003cbr /\u003eAfter you create %(app)s account, you can use the account and the 3th account to login %(app)s.","trash":"Trash","try":"Try it","unTitled":"UnTitled","unVerified":"Unverfied","unfold":"Unfold","update":"Update","updateEmail":"Update email","updateEmailTips":"You must verify the email after you update the email. The verified email will be your new account.","updatePassword":"Update password","updatePasswordSuccess":"Update password success","updatePasswordSuccessRedirectToLogin":"update password success and redirect to login page...","updateUsernameSuccess":"Update username success","uploadImage":"Upload image","use ":" Use","usernameIsExisted":"Username is already exists","usernameOrEmail":"Username or email","usernameSetting":"Update username","verified":"Verified","verifiedEmaiHasSent":"The verification email has been sent, please check your email.","verifiedNow":"Verify now","welcomeUseLeanote":"Welcome!","writable":"Writable","writingMode":"Writing Mode","wrongEmail":"Wrong email","wrongPassword":"Wrong password","wrongUsernameOrPassword":"Wrong username or password","yellow":"yellow","yourContact":"Your contact","yourSuggestions":"Suggestions"};
|
|
function getMsg(key, data) {
|
|
var msg = MSG[key]
|
|
if(msg) {
|
|
if(data) {
|
|
if(!isArray(data)) {
|
|
data = [data];
|
|
}
|
|
for(var i = 0; i < data.length; ++i) {
|
|
msg = msg.replace("%s", data[i]);
|
|
}
|
|
}
|
|
return msg;
|
|
}
|
|
return key;
|
|
} |