Skip to content

Commit 8c0fa49

Browse files
committed
fixed typos
1 parent 9125c12 commit 8c0fa49

14 files changed

+18
-18
lines changed

RELEASE_NOTES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* Duplicate passed argument
4141
* Children passed to module not accepting children
4242
* Reference to inknown $special_variables
43-
* Duplicate assigment
43+
* Duplicate assignment
4444
* New translations: Ukrainian, Polish
4545
# OpenSCAD 2015.03
4646

doc/translation.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ Please note that message context should follow some constrains:
7878
(changing the context name requires the translates to update the translation)
7979
- do not abuse the message context as a comment
8080

81-
The first paramater of _(msgid, msgctxt) and q_(msgid, msgctxt) is the
81+
The first parameter of _(msgid, msgctxt) and q_(msgid, msgctxt) is the
8282
message itself.
8383
The second parameter of _(msgid, msgctxt) and q_(msgid, msgctxt)
84-
respectivly is the message context.
84+
respectively is the message context.
8585

8686
Note that msgid and msgctxt are swapped compared to pgettext.
8787

scripts/beautify.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FORMAT_CMD=$FORMAT_CMD_UNCRUSTIFY
1313

1414
# Filter out any files that shouldn't be auto-formatted.
1515
# note: -v flag inverts selection - this tells grep to *filter out* anything
16-
# that matches the pattern. For testing, you can remove the -v to ssee
16+
# that matches the pattern. For testing, you can remove the -v to see
1717
# which files would have been excluded.
1818
FILTER_CMD="grep -v -E ext/"
1919

scripts/macosx-sanity-check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
#
4-
# This is used to verify that all the dependant libraries of a Mac OS X executable
4+
# This is used to verify that all the dependent libraries of a Mac OS X executable
55
# are present and that they are backwards compatible with at least 10.9.
66
# Run with an executable as parameter
77
# Will return 0 if the executable an all libraries are OK

src/Preferences.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void Preferences::on_comboBoxLineWrap_activated(int val)
561561

562562
void Preferences::on_comboBoxLineWrapIndentationStyle_activated(int val)
563563
{
564-
//Next Line disables the Indent Spin-Box when 'Same' or 'Indented' is choosen from LineWrapIndentationStyle Combo-Box.
564+
//Next Line disables the Indent Spin-Box when 'Same' or 'Indented' is chosen from LineWrapIndentationStyle Combo-Box.
565565
spinBoxLineWrapIndentationIndent->setDisabled(comboBoxLineWrapIndentationStyle->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");
566566

567567
applyComboBox(comboBoxLineWrapIndentationStyle, val, Settings::Settings::lineWrapIndentationStyle);
@@ -1010,7 +1010,7 @@ void Preferences::updateGUI()
10101010

10111011

10121012
/* Next Line disables the Indent Spin-Box,for 'Same' and 'Indented' LineWrapStyle selection from LineWrapIndentationStyle Combo-box, just after launching the openscad application.
1013-
Removing this line will cause misbehaviour, and will not disable the Indent spin-box untill you interact with the LineWrapStyle Combo-Box first-time and choose a style for which disabling has been handled.
1013+
Removing this line will cause misbehaviour, and will not disable the Indent spin-box until you interact with the LineWrapStyle Combo-Box first-time and choose a style for which disabling has been handled.
10141014
For normal cases, a similar line, inside the function 'on_comboBoxLineWrapIndentationStyle_activated()' handles the disabling functionality.
10151015
*/
10161016
this->spinBoxLineWrapIndentationIndent->setDisabled(comboBoxLineWrapIndentationStyle->currentData() == "Same" || comboBoxLineWrapIndentationStyle->currentData() == "Indented");

src/QWordSearchField.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void QWordSearchField::updateFieldLabel()
3636
{
3737
if (findcount > 0) {
3838
fieldLabel->setText(QString::number(findcount));
39-
//Fixes issue #2962 : Due to that fieldLabel->setText above does not seem to change the size of the field correct (seems to always be to short field to accomodate all digits)
39+
//Fixes issue #2962 : Due to that fieldLabel->setText above does not seem to change the size of the field correct (seems to always be to short field to accommodate all digits)
4040
//when the field changes many times during several searches, we need to work around that by setting minimum size.
4141
fieldLabel->setMinimumSize(fieldLabel->minimumSizeHint());
4242
fieldLabel->setVisible(true);

src/RenderStatistic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RenderStatistic: protected GeometryVisitor
5555
static void printRenderingTime(std::chrono::milliseconds ms);
5656

5757
/**
58-
* Actaully print the statistic based on the given Geometry
58+
* Actually print the statistic based on the given Geometry
5959
* @arg geom A Geometry-derived object statistic for which we should print.
6060
*/
6161
void print(const Geometry &geom);

src/UIUtils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ QFileInfoList UIUtils::openFiles(QWidget *parent)
7777

7878
if(!fileInfoList.isEmpty())
7979
{
80-
QDir last_dir = fileInfoList[fileInfoList.size() - 1].dir(); // last_dir is set to directory of last choosen valid file
80+
QDir last_dir = fileInfoList[fileInfoList.size() - 1].dir(); // last_dir is set to directory of last chosen valid file
8181
last_dirname = last_dir.path();
8282
settings.setValue("lastOpenDirName", last_dirname);
8383
}

src/mainwin.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ MainWindow::MainWindow(const QStringList &filenames)
624624

625625
//handle the hide/show of exportSTL action in view toolbar according to the visibility of editor dock
626626
if (!editorDock->isVisible()) {
627-
QAction *beforeAction = viewerToolBar->actions().at(2); //a seperator, not a part of the class
627+
QAction *beforeAction = viewerToolBar->actions().at(2); //a separator, not a part of the class
628628
viewerToolBar->insertAction(beforeAction, this->fileActionExportSTL);
629629
}
630630

src/parameter/ParameterWidget.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void ParameterWidget::readFile(QString scadFile)
174174
}
175175

176176
//Write the json file if the parameter sets are not empty.
177-
//This prevents creating unnecessary json filess.
177+
//This prevents creating unnecessary json files.
178178
//This method also updates the UI state (change indicator, file name, ...)
179179
void ParameterWidget::writeFileIfNotEmpty(QString scadFile)
180180
{

src/scadapi.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ScadApi::~ScadApi()
1919

2020
void ScadApi::updateAutoCompletionList(const QStringList &context, QStringList &list)
2121
{
22-
//first see if we are in a string literal. if so, don't allow auto comlete
22+
//first see if we are in a string literal. if so, don't allow auto complete
2323
bool lastWasEscape=false;
2424
bool inString=false;
2525
int line, col;

src/value.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ inline int trimTrailingZeroesHelper(char *buffer, const int pos, char *currentpo
102102
cont = trimTrailingZeroesHelper(buffer, pos, currentpos, exppos, decimalpos, zeropos);
103103
}
104104

105-
//we have found the first occurrance of not a zero and have zeroes and exponent to take care of (move exponent to either the position of the zero or the decimal)
105+
//we have found the first occurrence of not a zero and have zeroes and exponent to take care of (move exponent to either the position of the zero or the decimal)
106106
if(cont && zeropos && exppos){
107107
int count = &buffer[pos] - exppos + 1;
108108
memmove(zeropos - 1 == decimalpos ? decimalpos : zeropos, exppos, count);

src/value.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class RangeType {
5656
// iterator_traits required types:
5757
using iterator_category = std::forward_iterator_tag ;
5858
using value_type = double;
59-
using difference_type = void; // type used by operator-(iterator), not implemented for forward interator
59+
using difference_type = void; // type used by operator-(iterator), not implemented for forward iterator
6060
using reference = value_type; // type used by operator*(), not actually a reference
6161
using pointer = void; // type used by operator->(), not implemented
6262
iterator(const RangeType &range, type_t type);
@@ -340,7 +340,7 @@ class Value
340340
* It holds only a shared_ptr to its VectorObject type, and provides a convenient
341341
* interface for various operations needed on the vector.
342342
*
343-
* EmbeddedVectorType class derives from VectorType and enables O(1) concatentation of vectors
343+
* EmbeddedVectorType class derives from VectorType and enables O(1) concatenation of vectors
344344
* by treating their elements as elements of their parent, traversable via VectorType's custom iterator.
345345
* -- An embedded vector should never exist "in the wild", only as a pseudo-element of a parent vector.
346346
* Eg "Lc*" Expressions return Embedded Vectors but they are necessairly child expressions of a Vector expression.
@@ -381,7 +381,7 @@ class Value
381381
void operator()(VectorObject* vec);
382382
};
383383
void flatten() const; // flatten replaces VectorObject::vec with a new vector
384-
// where any embedded elements are copied direclty into the top level vec,
384+
// where any embedded elements are copied directly into the top level vec,
385385
// leaving only true elements for straightforward indexing by operator[].
386386
explicit VectorType(const shared_ptr<VectorObject> &copy) : ptr(copy) { } // called by clone()
387387
public:

testdata/scad/3D/features/mirror-tests.scad

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// tranformation matrices should consist of all -1, 0, and 1 values
1+
// transformation matrices should consist of all -1, 0, and 1 values
22
for(mx=[0,1],my=[0,1],mz=[0,1]) {
33
m = [mx,my,mz];
44
if (m == [1,1,1]) scale(-1) cube(); // can't mirror all 3 axes with single mirror operation

0 commit comments

Comments
 (0)