
var en_us_loc = {
}
var zh_cn_loc = {
	"Share Link": "分享链接",
	"Link has been created!": "链接已经创建！",
	"Copy the link and share it to your friends.": "复制链接分享给好友吧。",
	"Password : ": "密码：",
	"Add Password": "添加密码",
	"Remove": "取消密码",
	"Link : ": "链接：",
	"Stop Sharing": "取消分享",
	"Copy Link": "复制链接",
	"Copy Link & Password": "复制链接及密码",
	"Share to Weibo": "分享到微博",
	"Share to WeChat": "分享到微信",
	"Open WeChat to scan the QR code and share the note with your friends.": "用微信“扫一扫”左侧的二维码，即可把笔记分享给微信好友或朋友圈。",
	"Hide": "隐藏",
	"(%1 Day(s) Left)": "（剩余 %1 天）",
	"(%1 Time(s) Left)": "（剩余 %1 次）",
	"(Unlimited)":"（不限）",
	"Access Limitations": "链接访问限制",
	"Automatically stop sharing after the limit is exceeded.": "超出访问限制后将自动停止分享。",
	"Reading Time": "阅读次数",
	"Sharing Days": "分享天数",
	"30 times": "30次",
	"50 times": "50次",
	"100 times": "100次",
	"Unlimited": "不限",
	"1 day": "1天",
	"3 days": "3天",
	"7 days": "7天",
	"Save Modified": "保存修改",
	"Create link failed!": "创建链接失败！",
	"Please check network and retry.": "请检查网络后重试。",
	"WizNote internal error.(token invalid)": "为知笔记内部错误。（token 失效）",
	"Do you want to create a public link?": "即将为您创建公开链接！",
	"The public link can be visited by anyone, you can add a password or set access limitations for it.": "创建后所有人可以查看，您可为链接添加密码或设置访问限制哦~",
	"Don't prompt": "不再提示",
	"Cancel": "取消",
	"Create Now": "继续创建",
	"Getting information, please waiting...": "正在获取信息，请稍候...",
	"Link copied successfully!": "链接复制成功！",
	"Link and password copied successfully!": "链接及密码复制成功！",
	"Unknown error.": "未知错误。",
	"Canceled successfully!": "取消成功！",
	"Modified successfully!": "修改成功！",
	"Network error! Please check the network and retry.": "网络错误，请检查网络后重试！",
	"Server error.": "服务器错误。",
	"Only VIP user can modify access limitations.": "仅 VIP 用户可以修改访问限制。",
	"Account unverified! Please verify it and retry.": "账号未验证，请验证后重试！",
	"No permission to access the knowledge base.": "没有权限访问知识库。",
	"The note has not been uploaded to server! Please upload it and retry.": "笔记未上传，请上传后重试！",
	"Only VIP user can create link, please retry after upgrading to VIP and syncing with server.": "仅 VIP 用户能创建链接，请升级 VIP 并同步客户端后重试！",
	"Sorry, due to some restriction, you can't use link sharing service temporarily.": "抱歉，由于相关限制，你暂时无法使用分享笔记链接功能。",
	"You didn't verify your mobile phone number, can not share notes." : "您未验证手机号，暂时无法使用分享笔记链接功能.",
	"Immediately verify" : "立即验证"
};
var zh_tw_loc = {
	"Share Link": "分享連結",
	"Link has been created!": "連結已經建立！",
	"Copy the link and share it to your friends.": "複製連結分享給好友吧。",
	"Password : ": "密碼：",
	"Add Password": "加入密碼",
	"Remove": "取消密碼",
	"Link : ": "連結：",
	"Stop Sharing": "取消分享",
	"Copy Link": "複製連結",
	"Copy Link & Password": "複製連結及密碼",
	"Share to Weibo": "分享到微博",
	"Share to WeChat": "分享到微信",
	"Open WeChat to scan the QR code and share the note with your friends.": "用微信「掃一掃」左側的二維碼，即可把筆記分享給微信好友或朋友圈。",
	"Hide": "隱藏",
	"(%1 Day(s) Left)": "(剩餘 %1 天)",
	"(%1 Time(s) Left)": "(剩餘 %1 次)",
	"(Unlimited)":"(不限)",
	"Access Limitations": "連結存取限制",
	"Automatically stop sharing after the limit is exceeded.": "超出存取限制後將自動停止分享。",
	"Reading Time": "閱讀次數",
	"Sharing Days": "分享天數",
	"30 times": "30 次",
	"50 times": "50 次",
	"100 times": "100 次",
	"Unlimited": "不限",
	"1 day": "1 天",
	"3 days": "3 天",
	"7 days": "7 天",
	"Save Modified": "儲存修改",
	"Create link failed!": "建立連結失敗！",
	"Please check network and retry.": "請檢查網路後重試。",
	"WizNote internal error.(token invalid)": "為知筆記內部錯誤。(token 失效)",
	"Do you want to create a public link?": "即將為您建立公開連結！",
	"The public link can be visited by anyone, you can add a password or set access limitations for it.": "建立後所有人可以檢視，您可以為連結加入密碼或設定存取限制哦~",
	"Don't prompt": "不再提示",
	"Cancel": "取消",
	"Create Now": "繼續建立",
	"Getting information, please waiting...": "正在取得資訊，請稍後...",
	"Link copied successfully!": "連結複製成功！",
	"Link and password copied successfully!": "連結及密碼複製成功！",
	"Unknown error.": "未知錯誤。",
	"Canceled successfully!": "取消成功！",
	"Modified successfully!": "修改成功！",
	"Network error! Please check the network and retry.": "網路錯誤，請檢查網路後重試！",
	"Server error.": "伺服器錯誤。",
	"Only VIP user can modify access limitations.": "僅 VIP 使用者可以修改存取限制。",
	"Account unverified! Please verify it and retry.": "帳號未驗證，請驗證後重試！",
	"No permission to access the knowledge base.": "沒有權限存取知識庫。",
	"The note has not been uploaded to server! Please upload it and retry.": "筆記未上傳，請上傳後重試！",
	"Only VIP user can create link, please retry after upgrading to VIP and syncing with server.": "僅 VIP 使用者能建立連結，請升級 VIP 並同步客戶端後重試！",
	"Sorry, due to some restriction, you can't use link sharing service temporarily.": "抱歉，由於相關限制，您暫時無法使用分享筆記連結功能。",
	"You didn't verify your mobile phone number, can not share notes." : "您未驗證手機號，暫時無法使用筆記連結功能.",
	"Immediately verify" : "立即驗證"
} ;
//
function GetBrowserLanguage() {
	var type = navigator.appName
	//
	return type == "Netscape" ? navigator.language
							  : navigator.userLanguage;
}
//
var ShareLocale = (function() {
	var lng = GetBrowserLanguage().toLowerCase();
	//
	var objLng;
	switch (lng) {
		case "zh-cn":
			objLng = zh_cn_loc;
			break;
		case "zh-tw":
			objLng = zh_tw_loc;
			break;
		default:
			objLng = en_us_loc;
	};
	//
	return objLng;
})();

function wizTranslate (str) {
	if (!ShareLocale || !ShareLocale[str])
		return str;
	//
	return ShareLocale[str];
}

var sharelocale_remain_days = wizTranslate("(%1 Day(s) Left)");
var sharelocale_remain_times = wizTranslate("(%1 Time(s) Left)");
var sharelocale_token_invalid = wizTranslate("WizNote internal error.(token invalid)");
var sharelocale_copy_link_succeeded = wizTranslate("Link copied successfully!");
var sharelocale_copy_link_password_succeeded = wizTranslate("Link and password copied successfully!");
var sharelocale_unknown_error = wizTranslate("Unknown error.");
var sharelocale_cancel_succeeded = wizTranslate("Canceled successfully!");
var sharelocale_modify_succeeded = wizTranslate("Modified successfully!");
var sharelocale_network_error = wizTranslate("Network error! Please check the network and retry.");
var sharelocale_server_error = wizTranslate("Server error.");
var sharelocale_free_account_set_limit = wizTranslate("Only VIP user can modify access limitations.");
var sharelocale_mail_unverified = wizTranslate("Account unverified! Please verify it and retry.");
var sharelocale_access_other_kb = wizTranslate("No permission to access the knowledge base.");
var sharelocale_note_not_in_server = wizTranslate("The note has not been uploaded to server! Please upload it and retry.");
var sharelocale_free_account_create_link = wizTranslate("Only VIP user can create link, please retry after upgrading to VIP and syncing with server.");
var sharelocale_blacklist = wizTranslate("Sorry, due to some restriction, you can't use link sharing service temporarily.");
var sharelocale_mobile_no_verified = wizTranslate("You didn't verify your mobile phone number, can not share notes.");
var sharelocale_verfify_mobile_immediately = wizTranslate("Immediately verify");