language pack checkpoint
This commit is contained in:
parent
135cc359be
commit
1a59d7a491
2 changed files with 182 additions and 139 deletions
|
|
@ -249,50 +249,50 @@ var gs_kiri_init = exports;
|
|||
]
|
||||
]),
|
||||
|
||||
layout: UC.newGroup('options'),
|
||||
showOrigin: UC.newBoolean("show origin", booleanSave, {title:"show device or process origin"}),
|
||||
alignTop: UC.newBoolean("align top", booleanSave, {title:"align parts to the\ntallest part when\nno stock is set", modes:CAM}),
|
||||
autoLayout: UC.newBoolean("auto layout", booleanSave, {title:"automatically layout platform\nwhen new items added\nor when arrange clicked\nmore than once"}),
|
||||
freeLayout: UC.newBoolean("free layout", booleanSave, {title:"permit dragable layout"}),
|
||||
reverseZoom: UC.newBoolean("invert zoom", booleanSave, {title:"invert mouse wheel\nscroll zoom"}),
|
||||
units: UC.newSelectField("units", {modes:CAM}, "units"),
|
||||
layout: UC.newGroup(LANG.op_menu),
|
||||
showOrigin: UC.newBoolean(LANG.op_show_s, booleanSave, {title:LANG.op_show_l}),
|
||||
alignTop: UC.newBoolean(LANG.op_alig_s, booleanSave, {title:LANG.op_alig_l, modes:CAM}),
|
||||
autoLayout: UC.newBoolean(LANG.op_auto_s, booleanSave, {title:LANG.op_auto_l}),
|
||||
freeLayout: UC.newBoolean(LANG.op_free_s, booleanSave, {title:LANG.op_free_l}),
|
||||
reverseZoom: UC.newBoolean(LANG.op_invr_s, booleanSave, {title:LANG.op_invr_l}),
|
||||
units: UC.newSelectField(LANG.op_unit_s, {title: LANG.op_unit_l, modes:CAM}, "units"),
|
||||
|
||||
// allow modules to insert new items at the bottom of the left menu
|
||||
appendLeft: UC.checkpoint(),
|
||||
|
||||
layers: UC.setGroup($("layers")),
|
||||
layerOutline: UC.newBoolean("outline", onLayerToggle, {modes:LOCAL ? ALL : FDM_LASER}),
|
||||
layerTrace: UC.newBoolean("trace", onLayerToggle, {modes:FDM_LASER}),
|
||||
layerFacing: UC.newBoolean("facing", onLayerToggle, {modes:CAM}),
|
||||
layerRough: UC.newBoolean("roughing", onLayerToggle, {modes:CAM}),
|
||||
layerFinish: UC.newBoolean("finishing", onLayerToggle, {modes:CAM}),
|
||||
layerFinishX: UC.newBoolean("finish x", onLayerToggle, {modes:CAM}),
|
||||
layerFinishY: UC.newBoolean("finish y", onLayerToggle, {modes:CAM}),
|
||||
layerDelta: UC.newBoolean("delta", onLayerToggle, {modes:FDM}),
|
||||
layerSolid: UC.newBoolean("solids", onLayerToggle, {modes:FDM}),
|
||||
layerFill: UC.newBoolean("solid fill", onLayerToggle, {modes:FDM}),
|
||||
layerSparse: UC.newBoolean("sparse fill", onLayerToggle, {modes:FDM}),
|
||||
layerSupport: UC.newBoolean("support", onLayerToggle, {modes:FDM}),
|
||||
layerPrint: UC.newBoolean("print", onLayerToggle),
|
||||
layerMoves: UC.newBoolean("moves", onLayerToggle),
|
||||
layerOutline: UC.newBoolean(LANG.la_olin, onLayerToggle, {modes:LOCAL ? ALL : FDM_LASER}),
|
||||
layerTrace: UC.newBoolean(LANG.la_trce, onLayerToggle, {modes:FDM_LASER}),
|
||||
layerFacing: UC.newBoolean(LANG.la_face, onLayerToggle, {modes:CAM}),
|
||||
layerRough: UC.newBoolean(LANG.la_ruff, onLayerToggle, {modes:CAM}),
|
||||
layerFinish: UC.newBoolean(LANG.la_fini, onLayerToggle, {modes:CAM}),
|
||||
layerFinishX: UC.newBoolean(LANG.la_finx, onLayerToggle, {modes:CAM}),
|
||||
layerFinishY: UC.newBoolean(LANG.la_finy, onLayerToggle, {modes:CAM}),
|
||||
layerDelta: UC.newBoolean(LANG.la_dlta, onLayerToggle, {modes:FDM}),
|
||||
layerSolid: UC.newBoolean(LANG.la_slds, onLayerToggle, {modes:FDM}),
|
||||
layerFill: UC.newBoolean(LANG.la_fill, onLayerToggle, {modes:FDM}),
|
||||
layerSparse: UC.newBoolean(LANG.la_sprs, onLayerToggle, {modes:FDM}),
|
||||
layerSupport: UC.newBoolean(LANG.la_sprt, onLayerToggle, {modes:FDM}),
|
||||
layerPrint: UC.newBoolean(LANG.la_prnt, onLayerToggle),
|
||||
layerMoves: UC.newBoolean(LANG.la_move, onLayerToggle),
|
||||
|
||||
settingsGroup: UC.newGroup("settings", control),
|
||||
settingsGroup: UC.newGroup(LANG.se_menu, control),
|
||||
settingsTable: UC.newTableRow([
|
||||
[
|
||||
UI.settingsLoad =
|
||||
UC.newButton("load", settingsLoad),
|
||||
UC.newButton(LANG.se_load, settingsLoad),
|
||||
UI.settingsSave =
|
||||
UC.newButton("save", settingsSave)
|
||||
UC.newButton(LANG.se_save, settingsSave)
|
||||
],[
|
||||
UI.settingsExpert =
|
||||
UC.newButton("expert", () => { UC.setExpert(true); SDB.setItem('expert', true) }, {modes:FDM, expert: false}),
|
||||
UC.newButton(LANG.se_xprt, () => { UC.setExpert(true); SDB.setItem('expert', true) }, {modes:FDM, expert: false}),
|
||||
UI.settingsExpert =
|
||||
UC.newButton("basic", () => { UC.setExpert(false); SDB.removeItem('expert') }, {modes:FDM, expert: true})
|
||||
UC.newButton(LANG.se_bsic, () => { UC.setExpert(false); SDB.removeItem('expert') }, {modes:FDM, expert: true})
|
||||
]
|
||||
]),
|
||||
|
||||
process: UC.newGroup("slicing", control, {modes:FDM_LASER}),
|
||||
process: UC.newGroup(LANG.sl_menu, control, {modes:FDM_LASER}),
|
||||
|
||||
// 3d print
|
||||
sliceHeight: UC.newInput("layer height", {title:"millimeters", convert:UC.toFloat, modes:FDM}),
|
||||
sliceShells: UC.newInput("shell count", {convert:UC.toInt, modes:FDM}),
|
||||
sliceTopLayers: UC.newInput("top layers", {title:"top solid layer count", convert:UC.toInt, modes:FDM}),
|
||||
|
|
|
|||
|
|
@ -144,7 +144,50 @@ let gs_kiri_lang = exports;
|
|||
// WORKSPACE menu
|
||||
ws_menu: "workspace",
|
||||
ws_save: "Save",
|
||||
ws_cler: "Clear"
|
||||
ws_cler: "Clear",
|
||||
|
||||
// OPTIONS menu
|
||||
op_menu: "options",
|
||||
op_show_s: "show origin",
|
||||
op_show_l: "show device or process origin",
|
||||
op_alig_s: "align top",
|
||||
op_alig_l: "align parts to the\ntallest part when\nno stock is set",
|
||||
op_auto_s: "auto layout",
|
||||
op_auto_l: "automatically layout platform\nwhen new items added\nor when arrange clicked\nmore than once",
|
||||
op_free_s: "free layout",
|
||||
op_free_l: "permit dragable layout",
|
||||
op_invr_s: "invert zoom",
|
||||
op_invr_l: "invert mouse wheel\nscroll zoom",
|
||||
op_unit_s: "units",
|
||||
op_unit_l: "workspace units affects\nspeeds and distances",
|
||||
|
||||
// LAYERS pop-menu
|
||||
la_menu: "layers",
|
||||
la_olin: "outline",
|
||||
la_trce: "trace",
|
||||
la_face: "facing",
|
||||
la_ruff: "roughing",
|
||||
la_fini: "finishing",
|
||||
la_finx: "finish x",
|
||||
la_finy: "finish y",
|
||||
la_dlta: "delta",
|
||||
la_slds: "solids",
|
||||
la_fill: "solid fill",
|
||||
la_sprs: "sparse",
|
||||
la_sprt: "support",
|
||||
la_prnt: "print",
|
||||
la_move: "moves",
|
||||
|
||||
// SETTINGS menu
|
||||
se_menu: "settings",
|
||||
se_load: "load",
|
||||
se_save: "save",
|
||||
se_xprt: "expert",
|
||||
se_bsic: "basic",
|
||||
|
||||
// SLICING menu
|
||||
sl_menu: "slicing"
|
||||
|
||||
};
|
||||
|
||||
LANG['test'] = { bogus: "not a valid key" };
|
||||
|
|
|
|||
Loading…
Reference in a new issue