var LangText={
    "en": {
        "t1": "Welcome to Bambu Studio",
        "t2": "Bambu Studio will be setup in several steps. Let's start!",
        "t3": "User Agreement",
        "t4": "Disagree",
        "t5": "Agree",
        "t6": "We kindly request your help to improve<br/> everyone's printing",
        "t7": "Join our Customer Experience Improvement Program",
        "t8": "Back",
        "t9": "Next",
        "t10": "Printer Selection",
        "t11": "All",
        "t12": "Clear all",
        "t13": "mm nozzle",
        "t14": "Filament Selection",
        "t15": "Printer",
        "t16": "Filament type",
        "t17": "Vendor",
        "t18": "error",
        "t19": "At least one filament must be selected.",
        "t20": "Do you want to use default filament ?",
        "t21": "yes",
        "t22": "no",
        "t23": "Release note",
        "t24": "Get Started",
        "t25": "Finish",
        "t26": "Login",
        "t27": "Register",
        "t28": "Models",
        "t29": "Mall",
        "t30": "Manual",
        "t31": "New Project",
        "t32": "Create new project",
        "t33": "Open Project",
        "t34": "hotspot",
        "t35": "Recently opened",
        "t36": "ok",
        "t37": "At least one printer must be selected.",
        "t38": "Cancel",
        "t39": "Confirm",
        "t40": "Network disconnect, please check and try again later.",
        "t47": "Please select your login region",
        "t48": "Asia-Pacific",
        "t49": "China",
        "t50": "Log out",
        "t52": "Skip",
        "t53": "Join",
        "t54": "In the 3D Printing community, we learn from each other's successes and failures to adjust our own slicing parameters and settings. Bambu Studio follows the same principle and uses machine learning to improve its performance from the successes and failures of the vast number of prints by our users. We are training Bambu Studio to be smarter by feeding them the real-world data. If you are willing, this service will access information from your error logs and usage logs, which may include information described in ",
        "t55": "Privacy Policy",
        "t56": ". We will not collect any Personal Data by which an individual can be identified directly or indirectly, including without limitation names, addresses, payment information, or phone numbers. By enabling this service, you agree to these terms and the statement about Privacy Policy.",
        "t57": "",
        "t58": "",
        "t59": ".",
        "t60": "Europe",
        "t61": "North America",
        "t62": "Others",
        "t63": "After changing the region, your account will be logged out. Please log in again later.",
        "t64": "Bambu Network plug-in",
        "t65": "Sending print job via WLAN",
        "t66": "Full remote control",
        "t67": "Liveview streaming",
        "t68": "User data synchronization",
        "t69": "Install Bambu Network plug-in",
        "t70": "",
        "t71": "Downloading",
        "t72": "Downloading failed",
        "t73": "Installation successful.",
        "t74": "Restart",
        "t75": "Bambu Network plug-in provides the following features:",
        "t76": "Bambu Network plug-in not detected. Click ",
        "t77": "here",
        "t78": " to install it.",
        "t79": "Failed to install plug-in. ",
        "t80": "Try the following steps:",
        "t81": "1, Click ",
        "t82": " to open the plug-in directory",
        "t83": "2, Close all open Bambu Studio",
        "t84": "3, Delete all files under the plug-in directory",
        "t85": "4, Reopen Bambu studio and install the plug-in again",
        "t86": "Close",
        "t87": "User Manual",
        "t88": "Remove",
        "t89": "Open Containing Folder",
        "t90": "3D Model",
        "t91": "Download 3D models",
		"t92": "Create by",
		"t93": "Remixed by",
		"t94": "Shared by",
		"t95": "Model Information",
		"t96": "Accessories",
		"t97": "Profile Information",
		"t98": "Model name",
		"t100":"Model description",
		"t101":"BOM",
		"t102":"Assembly Guide",
		"t103":"Other",
		"t104":"Profile name",
		"t105":"Profile Author",
		"t106":"Profile description",
		"t107":"Online Models"
    },
    "zh_CN": {
        "t1": "欢迎使用Bambu Studio",
        "t2": "Bambu Studio需要几步安装步骤，让我们开始吧！",
        "t3": "用户使用协议",
        "t4": "拒绝",
        "t5": "同意",
        "t6": "帮助提升Bambu Studio性能",
        "t7": "允许发送匿名数据",
        "t8": "上一步",
        "t9": "下一步",
        "t10": "选择打印机",
        "t11": "全部",
        "t12": "清空",
        "t13": "mm 喷嘴",
        "t14": "选择材料",
        "t15": "打印机",
        "t16": "材料类型",
        "t17": "供应商",
        "t18": "错误",
        "t19": "至少要选择一款材料。",
        "t20": "你希望使用默认的材料列表吗?",
        "t21": "是",
        "t22": "否",
        "t23": "发布说明",
        "t24": "开始",
        "t25": "结束",
        "t26": "登录",
        "t27": "注册",
        "t28": "模型",
        "t29": "商城",
        "t30": "使用手册",
        "t31": "新建项目",
        "t32": "创建一个新项目",
        "t33": "打开项目",
        "t34": "热点",
        "t35": "近期打开文件",
        "t36": "确定",
        "t37": "至少需要选择一款打印机。",
        "t38": "取消",
        "t39": "确定",
        "t40": "网络不通，请检查并稍后重试。",
        "t47": "请选择登录区域",
        "t48": "亚太",
        "t49": "中国",
        "t50": "退出登录",
        "t52": "忽略",
        "t53": "同意",
        "t54": "在3D打印社区，我们从彼此的成功和失败中学习调整自己的切片参数和设置。Bambu Studio遵循同样的原则，通过机器学习的方式从大量用户打印的成功和失败中获取经验，从而改善打印性能。我们正在通过向Bambu Studio提供真实世界的数据来训练他们变得更聪明。如果您愿意，此服务将访问您的错误日志和使用日志中的信息，其中可能包括",
        "t55": "隐私政策",
        "t56": "中描述的信息。我们不会收集任何可以直接或间接识别个人的个人数据，包括但不限于姓名、地址、支付信息或电话号码。启用此服务即表示您同意这些条款和有关隐私政策的声明。",
        "t57": "",
        "t58": "",
        "t59": "。",
        "t60": "欧洲",
        "t61": "北美",
        "t62": "其他",
        "t63": "切换区域后，你的账号会被登出。稍后请重新登录。",
        "t64": "Bambu网络插件",
        "t65": "通过WLAN发送打印任务",
        "t66": "强大的远程控制功能",
        "t67": "实时视频流",
        "t68": "用户数据同步",
        "t69": "安装Bambu网络插件",
        "t70": "",
        "t71": "正在下载",
        "t72": "下载失败",
        "t73": "安装成功。",
        "t74": "重启",
        "t75": "Bambu网络插件提供以下功能：",
        "t76": "没有发现Bambu网络插件，请",
        "t77": "下载",
        "t78": "并安装。",
        "t79": "安装插件失败。",
        "t80": "请尝试如下步骤：",
        "t81": "1, 点击",
        "t82": "打开插件所在目录",
        "t83": "2, 关闭所有Bambu Studio",
        "t84": "3, 删除插件所在目录下的所有文件",
        "t85": "4, 重新启动Bambu Studio并尝试安装插件",
        "t86": "关闭",
        "t87": "使用引导",
        "t88": "移除",
        "t89": "打开所在的文件夹",
        "t90": "3D 模型",
        "t91": "下载3D模型",
		"t92": "创作",
		"t93": "修改",
		"t94": "分享",
		"t95": "模型信息",
		"t96": "附件",
		"t97": "配置信息",	
		"t98": "模型名称",
		"t100":"模型介绍",
		"t101":"物料清单",
		"t102":"装备指导",
		"t103":"其他",
		"t104":"配置名称",
		"t105":"配置作者",
		"t106":"配置介绍",
		"t107":"在线模型",
        "wk1": "快速入门指南",
        "wk2": "本文介绍了Bambu Studio的最基本用法。它指导用户配置软件，创建项目，并逐步完成第一个打印任务。",
        "wk3": "基于项目的工作流",
        "wk4": "Bambu Studio提出了领先的工作流程，真正实现了“一体化”项目。基于主流的3MF项目格式，它提供了一系列革命性的新功能，如支持多盘、项目资源管理器和装配/零件视图。它可以大幅提高模型创作者及普通用户的使用效率。",
        "wk5": "质量卓越的高速打印",
        "wk6": "在保持高质量的前提下进行高速打印是非常具有挑战性的。Bambu Studio让这一切发生。支持“圆弧移动”特性使工具头移动更加顺滑，有效减少机器振动。基于不同材料类型的精细标定过的冷却控制参数，使得冷却过程可以自动开展。在悬垂区域进行“自动减速”，可防止高速打印时在此区域的外观瑕疵。",
        "wk7": "多色打印",
        "wk8": "Bambu Studio提供了多种着色工具来制作彩色模型。您可以在项目中自由添加/移除打印材料，并使用不同的笔刷为模型着色。开始打印时，打印任务中的各个材料将自动映射到匹配的AMS槽位，无需手动调整AMS中的料卷位置。",
        "wk9": "切片参数设置指南",
        "wk10": "Bambu Studio中的参数管理功能为切片过程提供了非常灵活和强大的控制。本文介绍了切片参数的组织分类和设置方法，并提供了一些使用技巧。",
        "wk11": "远程控制和监控",
        "wk12": "Bambu Studio支持通过WAN/LAN网络向打印机发送打印任务，控制和查看3D打印机和打印任务的各个方面。如果您有多台打印机，还可以在设备列表中轻松切换。",
        "wk13": "STEP格式",
        "wk14": "与STL相比，STEP带来了更多有效的信息。由于STEP的高精度，切片时可以生成更多的圆弧路径。STEP还包括模型每个零件的装配关系，可分割模型后恢复装配视图。",
        "wk15": "3D文本",
        "wk16": "使用3D文本工具，用户可以轻松地在项目中创建各种3D文本形状，使模型更加个性化。Bambu Studio提供了数十种字体，并支持粗体和斜体样式，使文本具有更大的灵活性。"
    },
    "ja_JP": {
        "t1": "Bambu Studioへようこそ",
        "t2": "セットアップ",
        "t3": "利用規約",
        "t4": "同意しない",
        "t5": "同意",
        "t6": "ユーザ体験向上プログラム",
        "t7": "匿名で送信することを許容",
        "t8": "戻る",
        "t9": "次へ",
        "t10": "プリンター選択",
        "t11": "全て",
        "t12": "全てを解除",
        "t13": "mm ノズル",
        "t14": "フィラメント選択",
        "t15": "プリンター",
        "t16": "フィラメントタイプ",
        "t17": "メーカー",
        "t18": "エラー",
        "t19": "最低限一つのフィラメントを選択する必要があります",
        "t20": "デフォルトのフィラメントにしますか？",
        "t21": "はい",
        "t22": "いいえ",
        "t23": "リリースノート",
        "t24": "利用開始",
        "t25": "完了",
        "t26": "サインイン",
        "t27": "登録",
        "t28": "モデル",
        "t29": "モール",
        "t30": "マニュアル",
        "t31": "新規プロジェクト",
        "t32": "プロジェクトを作成",
        "t33": "プロジェクトを開く",
        "t34": "ホットスポット",
        "t35": "最近開いた項目",
        "t36": "OK",
        "t37": "最低限一つのプリンターを選択する必要があります",
        "t38": "取消し",
        "t39": "確認",
        "t40": "ネットワークが切断されたのようです、もう一度も試しください",
        "t47": "地域を選択してください",
        "t48": "アジア-太平洋",
        "t49": "中国",
        "t50": "サインアウト",
        "t52": "スキップ",
        "t53": "参加する",
        "t54": "3Dプリンティングのコミュニティで、私たちはお互いの成功例と失敗例から色々勉強してきています。Bambu Labもそうと考えています、AIでユーザの実世界の経験から勉強し、造型の性能を向上しにいきたいと思います。あなたの経験は私たちにとって大切なので、私たちの「ユーザ体験向上プログラム」を参加してみませんか？「参加」する場合、エラーログや使用ログから情報をBambu Labと共有します、具体的な項目は",
        "t55": "プライバシーポリシー",
        "t56": "をご参照ください。個人情報は一切共有しませんのでご安心ください。",
        "t57": "",
        "t58": "",
        "t59": ".",
        "t60": "欧州",
        "t61": "北米",
        "t62": "その他",
        "t63": "地域を変更したら、一回サインアウトされます。もう一度サインインしてください",
        "t64": "Bambu ネットワークプラグイン",
        "t65": "WiFi経由で造形タスクを送信します",
        "t66": "リモートコントロール",
        "t67": "ライブビュー",
        "t68": "ユーザデータ同期",
        "t69": "Bambu ネットワークプラグインをインストール",
        "t70": "",
        "t71": "ダウンロード中",
        "t72": "ダウンロード失敗",
        "t73": "インストールは成功しました",
        "t74": "再起動",
        "t75": "Bambu ネットワークプラグインは以下の機能を提供します：",
        "t76": "Bambu ネットワークプラグインは検出されません。",
        "t77": "こちら",
        "t78": "をクリックし、インストールしてください。",
        "t79": "インストールは失敗しました",
        "t80": "下記の方法もお試しください",
        "t81": "1. クリックして ",
        "t82": "プラグイン フォルダを開く",
        "t83": "2. 全て開いたBambu Studioを閉じる",
        "t84": "3. プラグイン フォルダのファイルを全て削除",
        "t85": "4. Bambu Studioを開く、再度プラグインをインストールしてください",
        "t86": "閉じる",
        "t87": "ユーザ マニュアル",
        "t88": "削除",
        "t89": "フォルダを開く",
        "t90": "3Dモデル",
        "t91": "モデルをダウンロード",
		"t92": "創作",
		"t93": "修正",
		"t94": "共有",
		"t95": "モデル情報",
		"t96": "添付ファイル",
		"t97": "構成情報",	
		"t98": "モデル名",
		"t100":"モデルの紹介",
		"t101":"BOM",
		"t102":"装備指導",
		"t103":"その他",
		"t104":"構成名",
		"t105":"構成著者",
		"t106":"構成の概要",
		"t107":"スタッフが選ぶ"
    }
};


var LANG_COOKIE_NAME="BambuWebLang";
var LANG_COOKIE_EXPIRESECOND= 365*86400;

function TranslatePage()
{
	let strLang=GetQueryString("lang");
	if(strLang!=null)
	{
		//setCookie(LANG_COOKIE_NAME,strLang,LANG_COOKIE_EXPIRESECOND,'/');
		localStorage.setItem(LANG_COOKIE_NAME,strLang);
	}
	else
	{
		//strLang=getCookie(LANG_COOKIE_NAME);
		strLang=localStorage.getItem(LANG_COOKIE_NAME);
	}
	
	//alert(strLang);
	
	if( !LangText.hasOwnProperty(strLang) )
		strLang="en";
	
    let AllNode=$(".trans");
	let nTotal=AllNode.length;
	for(let n=0;n<nTotal;n++)
	{
		let OneNode=AllNode[n];
		
		let tid=$(OneNode).attr("tid");
		if( LangText[strLang].hasOwnProperty(tid) )
		{
			$(OneNode).html(LangText[strLang][tid]);
		}
	}
}
