From a73905c1490c145f5212a29b752628e259cd2d58 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 30 Dec 2024 02:25:08 +0000 Subject: [PATCH] Fix typos in projectforge*/ directories Found via codespell See c3b0602a893 --- .../i18n/I18nKeysSourceAnalyzer.kt | 2 +- .../setup/wizard/FinalizeScreenSupport.kt | 2 +- .../setup/wizard/JdbcConnectionTest.kt | 2 +- .../src/main/resources/logback-spring.xml | 2 +- .../SortAndCheckI18nPropertiesMain.kt | 2 +- .../org/projectforge/common/BeanHelper.java | 2 +- .../org/projectforge/common/CSVParser.java | 2 +- .../org/projectforge/common/CSVWriter.java | 2 +- .../common/mgc/MGCClassUtils.java | 4 +-- .../common/mgc/PrivateBeanUtils.java | 18 ++++++------ .../projectforge/common/logging/LogLevel.kt | 2 +- .../org/projectforge/common/PriorityTest.java | 2 +- .../kotlin/org/projectforge/jcr/FileObject.kt | 2 +- .../org/projectforge/jcr/JCRCheckSanityJob.kt | 2 +- .../org/projectforge/jcr/RepoBackupService.kt | 4 +-- .../org/projectforge/jcr/RepoService.kt | 4 +-- .../kotlin/org/projectforge/jcr/ZipMode.kt | 4 +-- .../rest/ChangePasswordPageRest.kt | 2 +- .../rest/TimesheetMultiSelectedPageRest.kt | 2 +- .../projectforge/rest/TimesheetPagesRest.kt | 4 +-- .../rest/calendar/CalendarServicesRest.kt | 2 +- .../rest/calendar/TeamEventPagesRest.kt | 2 +- .../rest/core/AbstractPagesRest.kt | 8 +++--- .../rest/core/ListFilterService.kt | 2 +- .../rest/core/UserPrefRestService.kt | 2 +- .../org/projectforge/rest/dto/BaseDTO.kt | 4 +-- .../multiselect/AbstractMultiSelectedPage.kt | 2 +- .../rest/multiselect/TextFieldModification.kt | 2 +- .../rest/my2fa/My2FAServicesRest.kt | 4 +-- .../rest/poll/excel/ExcelExport.kt | 4 +-- .../pub/CalendarSubscriptionServiceRest.kt | 2 +- .../projectforge/rest/pub/SystemStatusRest.kt | 2 +- .../rest/scripting/ScriptExecution.kt | 2 +- .../rest/scripting/ScriptFileAccessor.kt | 4 +-- .../rest/sipgate/SipgateContactSyncService.kt | 4 +-- .../rest/sipgate/SipgatePageRest.kt | 2 +- .../rest/task/TaskServicesRest.kt | 4 +-- ...AuthnPublicKeyCredentialCreationOptions.kt | 2 +- .../web/rest/RestAuthenticationUtils.kt | 2 +- .../multiselect/MassUpdateParameterTest.kt | 2 +- .../multiselect/TextFieldModificationTest.kt | 2 +- projectforge-webapp/README.md | 4 +-- .../design/input/ValidationManager.jsx | 2 +- .../page/calendar/CalendarContext.jsx | 2 +- .../fraser/neil/plaintext/DiffMatchPatch.java | 2 +- .../wicket/fullcalendar/res/fullcalendar.js | 6 ++-- .../web/address/AddressImportForm.java | 4 +-- .../org/projectforge/web/admin/SetupPage.java | 4 +-- .../web/calendar/CalendarPanel.html | 2 +- .../web/core/SearchAreaPanel.java | 2 +- .../projectforge/web/dialog/ModalDialog.java | 2 +- .../web/fibu/NewProjektSelectPanel.java | 2 +- .../web/fibu/ReportObjectivesPage.java | 2 +- .../TaskSelectAutoCompleteFormComponent.java | 2 +- .../projectforge/web/task/TaskTreeForm.java | 2 +- .../web/task/TaskTreeProvider.java | 4 +-- .../web/timesheet/TimesheetEditPage.java | 2 +- .../projectforge/web/tree/TreeTableNode.java | 2 +- .../web/user/UserSelectPanel.java | 2 +- .../web/wicket/AbstractListForm.java | 2 +- .../web/wicket/AbstractListPage.java | 4 +-- .../web/wicket/AbstractSecuredPage.java | 2 +- .../web/wicket/EditPageSupport.java | 2 +- .../projectforge/web/wicket/ErrorPage.java | 6 ++-- .../projectforge/web/wicket/WicketUtils.java | 8 +++--- .../wicket/components/DropFileContainer.java | 2 +- .../components/LabelValueChoiceRenderer.java | 2 +- .../web/wicket/components/TimeZoneField.java | 2 +- .../web/wicket/components/TimeZonePanel.java | 2 +- .../components/YearListCoiceRenderer.java | 2 +- .../web/wicket/converter/MyDateConverter.java | 2 +- .../flowlayout/AbstractFieldsetPanel.java | 2 +- .../web/wicket/flowlayout/FieldsetPanel.java | 2 +- .../flowlayout/Select2MultiChoicePanel.html | 2 +- .../flowlayout/Select2SingleChoicePanel.html | 2 +- .../src/main/resources/lesscss/env.rhino.js | 28 +++++++++---------- .../projectforge/web/wicket/scripts/jquery.js | 2 +- .../webapp/imagecropper/history/history.js | 2 +- .../autogrow/jquery.autogrowtextarea.js | 2 +- .../core/CreateImageDimensions.java | 2 +- .../web/wicket/ListAndEditPagesTestBase.java | 4 +-- .../web/wicket/WicketPageTestBase.java | 2 +- .../converter/JodaDateConverterTest.java | 16 +++++------ .../wicket/converter/MyDateConverterTest.java | 2 +- 84 files changed, 139 insertions(+), 139 deletions(-) diff --git a/projectforge-application/src/main/kotlin/org/projectforge/i18n/I18nKeysSourceAnalyzer.kt b/projectforge-application/src/main/kotlin/org/projectforge/i18n/I18nKeysSourceAnalyzer.kt index bc374507f0..0ab2ef3fbd 100644 --- a/projectforge-application/src/main/kotlin/org/projectforge/i18n/I18nKeysSourceAnalyzer.kt +++ b/projectforge-application/src/main/kotlin/org/projectforge/i18n/I18nKeysSourceAnalyzer.kt @@ -108,7 +108,7 @@ internal class I18nKeysSourceAnalyzer { } getI18nEnums() getPropertyInfos() - // Now, add all found occurences of all i18n keys detected: + // Now, add all found occurrences of all i18n keys detected: i18nKeyMap.values.forEach { entry -> stringConstantsMap[entry.i18nKey]?.forEach { file -> entry.addUsage(file) diff --git a/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/FinalizeScreenSupport.kt b/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/FinalizeScreenSupport.kt index 80953d8655..c61591fc90 100644 --- a/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/FinalizeScreenSupport.kt +++ b/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/FinalizeScreenSupport.kt @@ -77,7 +77,7 @@ object FinalizeScreenSupport { sb.append("You chose a directory different to ${File(System.getProperty("user.home"), "ProjectForge")}. That's OK.\n") sb.append("To be sure, that this directory is found by the ProjectForge server, please refer log files or home page.\n\n") } - sb.append("Press 'Finish' for starting the intialization and for starting-up the server.") + sb.append("Press 'Finish' for starting the initialization and for starting-up the server.") return sb.toString() } diff --git a/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/JdbcConnectionTest.kt b/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/JdbcConnectionTest.kt index ece56a3109..52b5c5aad2 100644 --- a/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/JdbcConnectionTest.kt +++ b/projectforge-application/src/main/kotlin/org/projectforge/setup/wizard/JdbcConnectionTest.kt @@ -35,7 +35,7 @@ object JdbcConnectionTest { val saveLogLevelConnection = Logger.getLogger(ConnectionFactoryImpl::class.java.name).level val saveLogLevelDriver = Logger.getLogger("org.postgresql.Driver").level try { - // Will avoid logs on console (otherwise lanterna teminal window might be overlayed and results in crap). + // Will avoid logs on console (otherwise lanterna terminal window might be overlayed and results in crap). Logger.getLogger(ConnectionFactoryImpl::class.java.name).level = Level.OFF Logger.getLogger("org.postgresql.Driver").level = Level.OFF val connection = DriverManager.getConnection(jdbcUrl, username, password) diff --git a/projectforge-application/src/main/resources/logback-spring.xml b/projectforge-application/src/main/resources/logback-spring.xml index 15f871c789..7507ee5f5b 100644 --- a/projectforge-application/src/main/resources/logback-spring.xml +++ b/projectforge-application/src/main/resources/logback-spring.xml @@ -66,7 +66,7 @@ remove fragments var newurl = urlparse.urlnormalize(urlparse.urljoin(base, path, false)); @@ -1136,7 +1136,7 @@ Envjs.uri = function(path, base) { /** * Used in the XMLHttpRquest implementation to run a - * request in a seperate thread + * request in a separate thread * @param {Object} fn */ Envjs.runAsync = function(fn){}; @@ -1290,7 +1290,7 @@ function __extend__(a,b) { * Some sites redefine 'print' as in 'window.print', so instead of * printing to stdout, you are popping open a new window, which might * call print, etc, etc,etc This can cause infinite loops and can - * exhausing all memory. + * exhausting all memory. * * By defining this upfront now, Envjs.log will always call the native 'print' * function @@ -8369,7 +8369,7 @@ HTMLElement.registerSetAttribute('BUTTON', 'name', /* - * This is a "non-Abstract Base Class". For an implmentation that actually + * This is a "non-Abstract Base Class". For an implementation that actually * did something, all these methods would need to over-written */ CanvasRenderingContext2D = function() { @@ -9102,7 +9102,7 @@ __extend__(HTMLImageElement.prototype, { * the fake doco parser to indicate that events should not be * triggered on this. * - * We coud make 'owner.parser' == [ 'none', 'full', 'fragment'] + * We could make 'owner.parser' == [ 'none', 'full', 'fragment'] * and just use one variable That was not done since the patch is * quite large as is. * @@ -10228,7 +10228,7 @@ __extend__(HTMLTableElement.prototype, { if(child&&child.nodeType==Node.ELEMENT_NODE){ tagName = child.tagName.toLowerCase(); if (tagName === "tr") { - // need an implcit to contain this... + // need an implicit to contain this... if (!this.currentBody) { this.currentBody = document.createElement("tbody"); @@ -10469,7 +10469,7 @@ HTMLTableCellElement.prototype = new HTMLElement(); __extend__(HTMLTableCellElement.prototype, { - // TOOD: attribute unsigned long colSpan; + // TODO: attribute unsigned long colSpan; // TODO: attribute unsigned long rowSpan; // TODO: attribute DOMString headers; // TODO: readonly attribute long cellIndex; @@ -13896,7 +13896,7 @@ Window = function(scope, parent, opener){ * Safari 4: * - Requires one argument (second can be MIA) * - Returns a CSSStyleDeclaration object - * - if bad imput, returns null + * - if bad input, returns null * * getComputedStyle should really be an "add on" from the css * modules. Unfortunately, 'window' comes way after the 'css' diff --git a/projectforge-wicket/src/main/resources/org/projectforge/web/wicket/scripts/jquery.js b/projectforge-wicket/src/main/resources/org/projectforge/web/wicket/scripts/jquery.js index dcc17e328a..ef241aed4d 100644 --- a/projectforge-wicket/src/main/resources/org/projectforge/web/wicket/scripts/jquery.js +++ b/projectforge-wicket/src/main/resources/org/projectforge/web/wicket/scripts/jquery.js @@ -1113,7 +1113,7 @@ // Support: IE<10 // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programatically-set names, + // The broken getElementById methods don't pick up programmatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( div ) { docElem.appendChild( div ).id = expando; diff --git a/projectforge-wicket/src/main/webapp/imagecropper/history/history.js b/projectforge-wicket/src/main/webapp/imagecropper/history/history.js index 8ba2d519ed..c85cede7b0 100644 --- a/projectforge-wicket/src/main/webapp/imagecropper/history/history.js +++ b/projectforge-wicket/src/main/webapp/imagecropper/history/history.js @@ -287,7 +287,7 @@ BrowserHistory = (function() { //This occurs when the user has navigated to a specific URL //within the app, and didn't use browser back/forward //IE seems to have a bug where it stops updating the URL it - //shows the end-user at this point, but programatically it + //shows the end-user at this point, but programmatically it //appears to be correct. Do a full app reload to get around //this issue. if (browser.version < 7) { diff --git a/projectforge-wicket/src/main/webapp/scripts/autogrow/jquery.autogrowtextarea.js b/projectforge-wicket/src/main/webapp/scripts/autogrow/jquery.autogrowtextarea.js index 89da745b6b..e1d160bf46 100644 --- a/projectforge-wicket/src/main/webapp/scripts/autogrow/jquery.autogrowtextarea.js +++ b/projectforge-wicket/src/main/webapp/scripts/autogrow/jquery.autogrowtextarea.js @@ -9,7 +9,7 @@ * Autogrow Textarea Plugin Version v3.0 * http://www.technoreply.com/autogrow-textarea-plugin-3-0 * - * THIS PLUGIN IS DELIVERD ON A PAY WHAT YOU WHANT BASIS. IF THE PLUGIN WAS USEFUL TO YOU, PLEASE CONSIDER BUYING THE PLUGIN HERE : + * THIS PLUGIN IS DELIVERD ON A PAY WHAT YOU WANT BASIS. IF THE PLUGIN WAS USEFUL TO YOU, PLEASE CONSIDER BUYING THE PLUGIN HERE : * https://sites.fastspring.com/technoreply/instant/autogrowtextareaplugin * * Date: October 15, 2012 diff --git a/projectforge-wicket/src/test/java/org/projectforge/core/CreateImageDimensions.java b/projectforge-wicket/src/test/java/org/projectforge/core/CreateImageDimensions.java index f9c2891e84..9b3df13638 100644 --- a/projectforge-wicket/src/test/java/org/projectforge/core/CreateImageDimensions.java +++ b/projectforge-wicket/src/test/java/org/projectforge/core/CreateImageDimensions.java @@ -43,7 +43,7 @@ import org.projectforge.web.wicket.WebConstants; /** - * Creates a dimenstion file for setting the html markup attributes width and size for images. It generates a dimension + * Creates a dimension file for setting the html markup attributes width and size for images. It generates a dimension * file which is read by PresizedImage. Test case should be executed every time after modifying dimensions of web app * images or adding new images. * diff --git a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/ListAndEditPagesTestBase.java b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/ListAndEditPagesTestBase.java index b174c5b329..9dc3aa68d3 100644 --- a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/ListAndEditPagesTestBase.java +++ b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/ListAndEditPagesTestBase.java @@ -93,14 +93,14 @@ protected Integer getNumberOfExistingListElements() { } /** - * Starts list page with reseted filter. + * Starts list page with reset filter. */ protected void startListPage() { startListPage(null); } /** - * Starts list page with reseted filter and given search string as filter string. + * Starts list page with reset filter and given search string as filter string. */ protected void startListPage(final String searchString) { tester.startPage(getListPageClass()); diff --git a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/WicketPageTestBase.java b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/WicketPageTestBase.java index bf7d025803..05f13ea73b 100644 --- a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/WicketPageTestBase.java +++ b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/WicketPageTestBase.java @@ -73,7 +73,7 @@ public class WicketPageTestBase extends AbstractTestBase { private LoginDefaultHandler loginHandler; /** - * don't know why, but we chache it... + * don't know why, but we cache it... */ private static ResourceSettings resourceSettings; diff --git a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/JodaDateConverterTest.java b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/JodaDateConverterTest.java index 5313249ecf..394e32107a 100644 --- a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/JodaDateConverterTest.java +++ b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/JodaDateConverterTest.java @@ -57,31 +57,31 @@ public void convertToObjetErrors() final JodaDateConverter conv = new JodaDateConverter(); try { conv.convertToObject("31.11.09", Locale.GERMAN); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } try { conv.convertToObject("31.11.", Locale.GERMAN); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } try { conv.convertToObject("11/31/1970", Locale.ENGLISH); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } try { conv.convertToObject("11/31/70", Locale.ENGLISH); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } try { conv.convertToObject("11/31", Locale.ENGLISH); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } @@ -123,7 +123,7 @@ private void convertToObjectGerman(final DateTimeZone timeZone) assertDates(testDate, date); try { date = conv.convertToObject("21/10/1970", Locale.GERMAN); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } @@ -135,7 +135,7 @@ private void convertToObjectGerman(final DateTimeZone timeZone) assertDates(testDate, date); try { date = conv.convertToObject("1970.10.21", Locale.GERMAN); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } @@ -175,7 +175,7 @@ private void convertToObjectEnglish(final DateTimeZone timeZone) assertDates(testDate, date); try { date = conv.convertToObject(String.valueOf(testDate), Locale.ENGLISH); // millis not supported. - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK } diff --git a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/MyDateConverterTest.java b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/MyDateConverterTest.java index 25073d1ad1..6eb4cce1f5 100644 --- a/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/MyDateConverterTest.java +++ b/projectforge-wicket/src/test/java/org/projectforge/web/wicket/converter/MyDateConverterTest.java @@ -130,7 +130,7 @@ private void convertToObjectGerman(final TimeZone timeZone) { assertDates(testDate, date); try { date = conv.convertToObject("21/10/1970", Locale.GERMAN); - fail("ConversionException exprected."); + fail("ConversionException expected."); } catch (final ConversionException ex) { // OK }