mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	FIX: [STUDIO-2698] Load failed content translation
Jira: STUDIO-2698 Change-Id: Ic59868492eff4f91b765cb0907a94a880dba9c0f
This commit is contained in:
		
							parent
							
								
									793c50b1a6
								
							
						
					
					
						commit
						ad035fa637
					
				
					 13 changed files with 83 additions and 63 deletions
				
			
		|  | @ -8,7 +8,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: PACKAGE VERSION\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
|  | @ -4904,8 +4904,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| 
 | ||||
| msgid "Line width" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: \n" | ||||
| "Last-Translator: \n" | ||||
| "Language-Team: \n" | ||||
|  | @ -5291,13 +5291,13 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Wenn Sie einen Zeitraffer ohne Werkzeugkopf aufnehmen, wird empfohlen, einen " | ||||
| "\"Timelapse Wischturm\" hinzuzufügen, indem Sie mit der rechten Maustaste " | ||||
| "auf die leere Position der Bauplatte klicken und \"Primitiv hinzufügen\"-" | ||||
| ">\"Timelapse Wischturm\" wählen." | ||||
| "auf die leere Position der Bauplatte klicken und \"Primitiv hinzufügen\"->" | ||||
| "\"Timelapse Wischturm\" wählen." | ||||
| 
 | ||||
| msgid "Line width" | ||||
| msgstr "Breite der Linie" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "Language: en\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|  | @ -5168,13 +5168,13 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| 
 | ||||
| msgid "Line width" | ||||
| msgstr "Line width" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: \n" | ||||
| "Last-Translator: \n" | ||||
| "Language-Team: \n" | ||||
|  | @ -5268,8 +5268,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Al grabar timelapse sin el cabezal de la herramienta, se recomienda añadir " | ||||
| "una «Torre de purga para el timelapse» \n" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: \n" | ||||
| "Last-Translator: \n" | ||||
| "Language-Team: \n" | ||||
|  | @ -1529,8 +1529,8 @@ msgid "" | |||
| "Choose an AMS slot then press \"Load\" or \"Unload\" button to automatically " | ||||
| "load or unload filiament." | ||||
| msgstr "" | ||||
| "Choisissez un slot AMS puis appuyez sur le bouton \"charger\" " | ||||
| "ou\"Décharger\" pour charger ou décharger automatiquement le filament." | ||||
| "Choisissez un slot AMS puis appuyez sur le bouton \"charger\" ou\"Décharger" | ||||
| "\" pour charger ou décharger automatiquement le filament." | ||||
| 
 | ||||
| msgid "Edit" | ||||
| msgstr "Éditer" | ||||
|  | @ -5272,8 +5272,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Lorsque vous enregistrez un timelapse sans tête d’outil, il est recommandé " | ||||
| "d’ajouter une \"Tour de nettoyage timelapse\".\n" | ||||
|  | @ -5401,9 +5401,9 @@ msgid "" | |||
| "Bed temperature when cool plate is installed. Value 0 means the filament " | ||||
| "does not support to print on the Cool Plate" | ||||
| msgstr "" | ||||
| "Il s'agit de la température du plateau lorsque le plateau froid (\"Cool " | ||||
| "plate\") est installé. Une valeur à 0 signifie que ce filament ne peut pas " | ||||
| "être imprimé sur le plateau froid." | ||||
| "Il s'agit de la température du plateau lorsque le plateau froid (\"Cool plate" | ||||
| "\") est installé. Une valeur à 0 signifie que ce filament ne peut pas être " | ||||
| "imprimé sur le plateau froid." | ||||
| 
 | ||||
| msgid "Engineering plate" | ||||
| msgstr "Plaque d'ingénierie" | ||||
|  | @ -6492,8 +6492,8 @@ msgstr "" | |||
| 
 | ||||
| msgid "The prime tower is not supported in \"By object\" print." | ||||
| msgstr "" | ||||
| "La tour de nettoyage n'est pas prise en charge dans l'impression \"Par " | ||||
| "objet\"." | ||||
| "La tour de nettoyage n'est pas prise en charge dans l'impression \"Par objet" | ||||
| "\"." | ||||
| 
 | ||||
| msgid "" | ||||
| "The prime tower is not supported when adaptive layer height is on. It " | ||||
|  | @ -7078,8 +7078,8 @@ msgid "" | |||
| "thickness (top+bottom solid layers)" | ||||
| msgstr "" | ||||
| "Ajoutez du remplissage solide à proximité des surfaces inclinées pour " | ||||
| "garantir l'épaisseur verticale de la coque (couches solides " | ||||
| "supérieure+inférieure)." | ||||
| "garantir l'épaisseur verticale de la coque (couches solides supérieure" | ||||
| "+inférieure)." | ||||
| 
 | ||||
| msgid "Internal bridge support thickness" | ||||
| msgstr "Épaisseur du support interne du pont" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: \n" | ||||
| "Last-Translator: \n" | ||||
| "Language-Team: \n" | ||||
|  | @ -5225,8 +5225,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Ha a nyomtatófej nélküli timelapse engedélyezve van, javasoljuk, hogy " | ||||
| "helyezz el a tálcán egy „Timelapse törlőtornyot“. Ehhez kattints jobb " | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "Language: it\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|  | @ -5238,8 +5238,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Quando si registra un timelapse senza testa di satmpa, si consiglia di " | ||||
| "aggiungere un \"Timelapse Torre di pulizia\"\n" | ||||
|  | @ -6122,8 +6122,8 @@ msgid "" | |||
| msgstr "" | ||||
| "È stato rilevato un aggiornamento importante che deve essere eseguito prima " | ||||
| "che la stampa possa continuare. Si desidera aggiornare ora? È possibile " | ||||
| "effettuare l'aggiornamento anche in un secondo momento da \"Aggiorna " | ||||
| "firmware\"." | ||||
| "effettuare l'aggiornamento anche in un secondo momento da \"Aggiorna firmware" | ||||
| "\"." | ||||
| 
 | ||||
| msgid "" | ||||
| "The firmware version is abnormal. Repairing and updating are required before " | ||||
|  | @ -10236,8 +10236,8 @@ msgstr "" | |||
| #~ "Quando si registra un timelapse senza testa di satmpa, si consiglia di " | ||||
| #~ "aggiungere un \"Timelapse Torre di pulizia\"\n" | ||||
| #~ "facendo clic con il pulsante destro del mouse sulla posizione vuota del " | ||||
| #~ "piatto e scegli \"Aggiungi primitiva\" ->\"Timelapse Torre di " | ||||
| #~ "pulizia\"».\n" | ||||
| #~ "piatto e scegli \"Aggiungi primitiva\" ->\"Timelapse Torre di pulizia" | ||||
| #~ "\"».\n" | ||||
| 
 | ||||
| #~ msgid "" | ||||
| #~ "When sparse infill density is low, the internal solid infill or internal " | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "Language: ja\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|  | @ -5052,8 +5052,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "ヘッド無しのタイムラプスビデオを録画する時に、「タイムラプスプライムタワー」" | ||||
| "を追加してください。プレートで右クリックして、「プリミティブを追加」→「タイム" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "Language: nl\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|  | @ -5276,8 +5276,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "Bij het opnemen van timelapse zonder toolhead is het aan te raden om een " | ||||
| "„Timelapse Wipe Tower” toe te voegen \n" | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Bambu Studio\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "Language: sv\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
|  | @ -5189,8 +5189,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "När du spelar in timelapse utan verktygshuvud rekommenderas att du lägger " | ||||
| "till ett \"Timelapse Wipe Tower\".\n" | ||||
|  | @ -6833,9 +6833,9 @@ msgid "" | |||
| "quality for needle and small details" | ||||
| msgstr "" | ||||
| "Aktivera detta val för att sänka utskifts hastigheten för att göra den sista " | ||||
| "lager tiden inte kortare än lager tidströskeln \"Max fläkthastighets " | ||||
| "tröskel\", detta så att lager kan kylas under en längre tid. Detta kan " | ||||
| "förbättra kylnings kvaliteten för små detaljer" | ||||
| "lager tiden inte kortare än lager tidströskeln \"Max fläkthastighets tröskel" | ||||
| "\", detta så att lager kan kylas under en längre tid. Detta kan förbättra " | ||||
| "kylnings kvaliteten för små detaljer" | ||||
| 
 | ||||
| msgid "Normal printing" | ||||
| msgstr "Normal utskrift" | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ msgid "" | |||
| msgstr "" | ||||
| "Project-Id-Version: Slic3rPE\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2023-04-16 12:36+0800\n" | ||||
| "POT-Creation-Date: 2023-04-17 10:55+0800\n" | ||||
| "PO-Revision-Date: 2023-04-16 12:40+0800\n" | ||||
| "Last-Translator: Jiang Yue <maze1024@gmail.com>\n" | ||||
| "Language-Team: \n" | ||||
|  | @ -5044,8 +5044,8 @@ msgstr "" | |||
| msgid "" | ||||
| "When recording timelapse without toolhead, it is recommended to add a " | ||||
| "\"Timelapse Wipe Tower\" \n" | ||||
| "by right-click the empty position of build plate and choose \"Add " | ||||
| "Primitive\"->\"Timelapse Wipe Tower\"." | ||||
| "by right-click the empty position of build plate and choose \"Add Primitive" | ||||
| "\"->\"Timelapse Wipe Tower\"." | ||||
| msgstr "" | ||||
| "在录制无工具头延时摄影视频时,建议添加“延时摄影擦料塔”\n" | ||||
| "右键单击打印板的空白位置,选择“添加标准模型”->“延时摄影擦料塔”。" | ||||
|  | @ -8373,6 +8373,21 @@ msgstr "支撑:正在生成多边形" | |||
| msgid "Support: generate toolpath" | ||||
| msgstr "支撑:正在生成走线路径" | ||||
| 
 | ||||
| msgid "Unknown file format. Input file must have .stl, .obj, .amf(.xml) extension." | ||||
| msgstr "未知的文件格式。输入文件的扩展名必须为.stl、.obj 或 .amf(.xml)。" | ||||
| 
 | ||||
| msgid "Loading of a model file failed." | ||||
| msgstr "加载模型文件失败。" | ||||
| 
 | ||||
| msgid "The supplied file couldn't be read because it's empty" | ||||
| msgstr "无法读取提供的文件,因为该文件为空。" | ||||
| 
 | ||||
| msgid "Unknown file format. Input file must have .3mf or .zip.amf extension." | ||||
| msgstr "未知的文件格式。输入文件的扩展名必须为.3mf或.zip .amf。" | ||||
| 
 | ||||
| msgid "Canceled" | ||||
| msgstr "已取消" | ||||
| 
 | ||||
| #, c-format, boost-format | ||||
| msgid "Support: generate polygons at layer %d" | ||||
| msgstr "支撑:正在生成层%d的多边形" | ||||
|  | @ -12401,8 +12416,8 @@ msgstr "" | |||
| #~ msgstr "正在准备设置页" | ||||
| 
 | ||||
| #~ msgid "" | ||||
| #~ "You have the following presets with saved options for \"Print Host " | ||||
| #~ "upload\"" | ||||
| #~ "You have the following presets with saved options for \"Print Host upload" | ||||
| #~ "\"" | ||||
| #~ msgstr "您的以下预设中包含未保存的选项“打印主机上传”" | ||||
| 
 | ||||
| #~ msgid "" | ||||
|  |  | |||
										
											Binary file not shown.
										
									
								
							|  | @ -37,6 +37,11 @@ | |||
| #include "MeshBoolean.hpp" | ||||
| #include "Format/3mf.hpp" | ||||
| 
 | ||||
| // Transtltion
 | ||||
| #include "I18N.hpp" | ||||
| 
 | ||||
| #define _L(s) Slic3r::I18N::translate(s) | ||||
| 
 | ||||
| namespace Slic3r { | ||||
|     // BBS initialization of static variables
 | ||||
|     std::map<size_t, ExtruderParams> Model::extruderParamsMap = { {0,{"",0,0}}}; | ||||
|  | @ -191,7 +196,7 @@ Model Model::read_from_file(const std::string& input_file, DynamicPrintConfig* c | |||
|         //BBS: is_xxx is used for is_bbs_3mf when load 3mf
 | ||||
|         result = load_bbs_3mf(input_file.c_str(), config, config_substitutions, &model, plate_data, project_presets, is_xxx, file_version, proFn, options, project, plate_id); | ||||
|     else | ||||
|         throw Slic3r::RuntimeError("Unknown file format. Input file must have .stl, .obj, .amf(.xml) extension."); | ||||
|         throw Slic3r::RuntimeError(_L("Unknown file format. Input file must have .stl, .obj, .amf(.xml) extension.")); | ||||
| 
 | ||||
|     if (is_cb_cancel) { | ||||
|         Model empty_model; | ||||
|  | @ -200,13 +205,13 @@ Model Model::read_from_file(const std::string& input_file, DynamicPrintConfig* c | |||
| 
 | ||||
|     if (!result) { | ||||
|         if (message.empty()) | ||||
|             throw Slic3r::RuntimeError("Loading of a model file failed."); | ||||
|             throw Slic3r::RuntimeError(_L("Loading of a model file failed.")); | ||||
|         else | ||||
|             throw Slic3r::RuntimeError(message); | ||||
|     } | ||||
| 
 | ||||
|     if (model.objects.empty()) | ||||
|         throw Slic3r::RuntimeError("The supplied file couldn't be read because it's empty"); | ||||
|         throw Slic3r::RuntimeError(_L("The supplied file couldn't be read because it's empty")); | ||||
| 
 | ||||
|     for (ModelObject *o : model.objects) | ||||
|         o->input_file = input_file; | ||||
|  | @ -252,14 +257,14 @@ Model Model::read_from_archive(const std::string& input_file, DynamicPrintConfig | |||
|     else if (boost::algorithm::iends_with(input_file, ".zip.amf")) | ||||
|         result = load_amf(input_file.c_str(), config, config_substitutions, &model, &is_bbl_3mf); | ||||
|     else | ||||
|         throw Slic3r::RuntimeError("Unknown file format. Input file must have .3mf or .zip.amf extension."); | ||||
|         throw Slic3r::RuntimeError(_L("Unknown file format. Input file must have .3mf or .zip.amf extension.")); | ||||
| 
 | ||||
|     if (out_file_type != En3mfType::From_Prusa) { | ||||
|         out_file_type = is_bbl_3mf ? En3mfType::From_BBS : En3mfType::From_Other; | ||||
|     } | ||||
| 
 | ||||
|     if (!result) | ||||
|         throw Slic3r::RuntimeError("Loading of a model file failed."); | ||||
|         throw Slic3r::RuntimeError(_L("Loading of a model file failed.")); | ||||
| 
 | ||||
|     for (ModelObject *o : model.objects) { | ||||
| //        if (boost::algorithm::iends_with(input_file, ".zip.amf"))
 | ||||
|  | @ -278,7 +283,7 @@ Model Model::read_from_archive(const std::string& input_file, DynamicPrintConfig | |||
|         if (proFn) { | ||||
|             proFn(IMPORT_STAGE_ADD_INSTANCE, 0, 1, cb_cancel); | ||||
|             if (cb_cancel) | ||||
|                 throw Slic3r::RuntimeError("Canceled"); | ||||
|                 throw Slic3r::RuntimeError(_L("Canceled")); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | @ -289,7 +294,7 @@ Model Model::read_from_archive(const std::string& input_file, DynamicPrintConfig | |||
|     if (proFn) { | ||||
|         proFn(IMPORT_STAGE_UPDATE_GCODE, 0, 1, cb_cancel); | ||||
|         if (cb_cancel) | ||||
|             throw Slic3r::RuntimeError("Canceled"); | ||||
|             throw Slic3r::RuntimeError(_L("Canceled")); | ||||
|     } | ||||
| 
 | ||||
|     //BBS
 | ||||
|  | @ -300,7 +305,7 @@ Model Model::read_from_archive(const std::string& input_file, DynamicPrintConfig | |||
|     if (proFn) { | ||||
|         proFn(IMPORT_STAGE_CHECK_MODE_GCODE, 0, 1, cb_cancel); | ||||
|         if (cb_cancel) | ||||
|             throw Slic3r::RuntimeError("Canceled"); | ||||
|             throw Slic3r::RuntimeError(_L("Canceled")); | ||||
|     } | ||||
| 
 | ||||
|     handle_legacy_sla(*config); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 maosheng.wei
						maosheng.wei