Fix various typos

Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
This commit is contained in:
luz paz 2021-09-07 11:33:54 -04:00
parent 7eeae4db87
commit d68f375e38
68 changed files with 99 additions and 100 deletions

View file

@ -143,7 +143,7 @@ Button
Binding
{
// When settting width directly, an unjust binding loop warning would be triggered,
// When setting width directly, an unjust binding loop warning would be triggered,
// because button.width is part of this expression.
// Using parent.width is fine in fixedWidthMode.
target: buttonText

View file

@ -200,7 +200,7 @@ UM.MainWindow
}
}
// This is a placehoder for adding a pattern in the header
// This is a placeholder for adding a pattern in the header
Image
{
id: backgroundPattern
@ -311,8 +311,8 @@ UM.MainWindow
Toolbar
{
// The toolbar is the left bar that is populated by all the tools (which are dynamicly populated by
// plugins)
// The toolbar is the left bar that is populated by all the tools
// (which are dynamically populated by plugins)
id: toolbar
property int mouseX: base.mouseX

View file

@ -10,7 +10,7 @@ import Cura 1.0 as Cura
// Reusable component that holds an (re-colorable) icon on the left with some text on the right.
// This component is also designed to be used with layouts. It will use the width of the text + icon as preferred width
// It sets the icon size + half of the content as its minium width (in which case it will elide the text)
// It sets the icon size + half of the content as its minimum width (in which case it will elide the text)
Item
{
property alias source: icon.source

View file

@ -70,7 +70,7 @@ Item
// This id is required to find the stage buttons through Squish
property string stageId: model.id
// This is a trick to assure the activeStage is correctly changed. It doesn't work propertly if done in the onClicked (see CURA-6028)
// This is a trick to assure the activeStage is correctly changed. It doesn't work properly if done in the onClicked (see CURA-6028)
MouseArea
{
anchors.fill: parent

View file

@ -46,7 +46,7 @@ Item
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: UM.Theme.getSize("default_margin").width
// There are two cases that we want to differenciate, one is when Cura is loading the configurations and the
// There are two cases that we want to differentiate, one is when Cura is loading the configurations and the
// other when the connection was lost
text: Cura.MachineManager.printerConnected ?
catalog.i18nc("@label", "Loading available configurations from the printer...") :

View file

@ -37,7 +37,7 @@ Menu
}
}
// Unassign the shortcuts when the submenu is invisible (i.e. when there is only one file provider) to avoid ambiguous shortcuts.
// When there is a signle file provider, the openAction is assigned with the Ctrl+O shortcut instead.
// When there is a single file provider, the openAction is assigned with the Ctrl+O shortcut instead.
shortcut: openFilesMenu.visible ? model.shortcut : ""
}
onObjectAdded: openFilesMenu.insertItem(index, object)

View file

@ -37,7 +37,7 @@ Item
}
if(activePrintJob.timeTotal == 0)
{
return 0 // Prevent devision by 0
return 0 // Prevent division by 0
}
return activePrintJob.timeElapsed / activePrintJob.timeTotal * 100
}

View file

@ -19,7 +19,7 @@ UM.PreferencesPage
function setDefaultLanguage(languageCode)
{
//loops trough the languageList and sets the language using the languageCode
//loops through the languageList and sets the language using the languageCode
for(var i = 0; i < languageList.count; i++)
{
if (languageComboBox.model.get(i).code == languageCode)

View file

@ -18,7 +18,7 @@ Item
property var sectionName: ""
property var elementsModel // This can be a MaterialTypesModel or GenericMaterialsModel or FavoriteMaterialsModel
property var hasMaterialTypes: true // It indicates wheather it has material types or not
property var hasMaterialTypes: true // It indicates whether it has material types or not
property var expanded: materialList.expandedBrands.indexOf(sectionName) > -1
height: childrenRect.height

View file

@ -12,7 +12,7 @@ Button
// This is a work around for a qml issue. Since the default button uses a private implementation for contentItem
// (the so called IconText), which handles the mnemonic conversion (aka; ensuring that &Button) text property
// is rendered with the B underlined. Since we're also forced to mix controls 1.0 and 2.0 actions together,
// we need a special property for the text of the label if we do want it to be rendered correclty, but don't want
// we need a special property for the text of the label if we do want it to be rendered correctly, but don't want
// another shortcut to be added (which will cause for "QQuickAction::event: Ambiguous shortcut overload: " to
// happen.
property string labelText: ""
@ -29,7 +29,7 @@ Button
radius: UM.Theme.getSize("action_button_radius").width
}
// Workarround to ensure that the mnemonic highlighting happens correctly
// Workaround to ensure that the mnemonic highlighting happens correctly
function replaceText(txt)
{
var index = txt.indexOf("&")

View file

@ -203,7 +203,7 @@ Item
h -= mouse_absolute_y - base.height;
}
// Enforce a minimum size (again).
// This is a bit of a hackish way to do it, but we've seen some ocasional reports that the size
// This is a bit of a hackish way to do it, but we've seen some occasional reports that the size
// could get below the the minimum height.
if(h < absoluteMinimumHeight)
{

View file

@ -169,8 +169,8 @@ Item
// Update the slider value to represent the rounded value
infillSlider.value = roundedSliderValue
// Update value only if the Recomended mode is Active,
// Otherwise if I change the value in the Custom mode the Recomended view will try to repeat
// Update value only if the Recommended mode is Active,
// Otherwise if I change the value in the Custom mode the Recommended view will try to repeat
// same operation
var active_mode = UM.Preferences.getValue("cura/active_mode")

View file

@ -105,7 +105,7 @@ Item
Rectangle
{
// This can (and should) be done wiht a verticalCenter. For some reason it does work in QtCreator
// This can (and should) be done with a verticalCenter. For some reason it does work in QtCreator
// but not when using the exact same QML in Cura.
anchors.verticalCenter: parent ? parent.verticalCenter : undefined
anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined

View file

@ -12,7 +12,7 @@ Button
id: base
anchors.left: parent.left
anchors.right: parent.right
// To avoid overlaping with the scrollBars
// To avoid overlapping with the scrollBars
anchors.rightMargin: 2 * UM.Theme.getSize("thin_margin").width
hoverEnabled: true

View file

@ -17,7 +17,7 @@ Item
height: UM.Theme.getSize("section").height
anchors.left: parent.left
anchors.right: parent.right
// To avoid overlaping with the scrollBars
// To avoid overlapping with the scrollBars
anchors.rightMargin: 2 * UM.Theme.getSize("thin_margin").width
property alias contents: controlContainer.children

View file

@ -228,7 +228,7 @@ Item
id: definitionsModel
containerId: Cura.MachineManager.activeMachine !== null ? Cura.MachineManager.activeMachine.definition.id: ""
visibilityHandler: UM.SettingPreferenceVisibilityHandler { }
exclude: ["machine_settings", "command_line_settings", "infill_mesh", "infill_mesh_order", "cutting_mesh", "support_mesh", "anti_overhang_mesh"] // TODO: infill_mesh settigns are excluded hardcoded, but should be based on the fact that settable_globally, settable_per_meshgroup and settable_per_extruder are false.
exclude: ["machine_settings", "command_line_settings", "infill_mesh", "infill_mesh_order", "cutting_mesh", "support_mesh", "anti_overhang_mesh"] // TODO: infill_mesh settings are excluded hardcoded, but should be based on the fact that settable_globally, settable_per_meshgroup and settable_per_extruder are false.
expanded: CuraApplication.expandedCategories
onExpandedChanged:
{
@ -330,7 +330,7 @@ Item
}
}
// Specialty provider that only watches global_inherits (we cant filter on what property changed we get events
// Specialty provider that only watches global_inherits (we can't filter on what property changed we get events
// so we bypass that to make a dedicated provider).
UM.SettingPropertyProvider
{

View file

@ -183,7 +183,7 @@ Item
borderColor: UM.Theme.getColor("lining")
borderWidth: UM.Theme.getSize("default_lining").width
MouseArea //Catch all mouse events (so scene doesnt handle them)
MouseArea //Catch all mouse events (so scene doesn't handle them)
{
anchors.fill: parent
acceptedButtons: Qt.AllButtons

View file

@ -56,7 +56,7 @@ Item
Cura.RoundedRectangle
{
id: contentRectangle
// Move up a bit (exaclty the width of the border) to avoid double line
// Move up a bit (exactly the width of the border) to avoid double line
y: header.height - UM.Theme.getSize("default_lining").width
anchors.left: header.left
anchors.right: header.right