fix(de): Correct orthographic and grammatical errors in JS Functions … - #281
Open
raitaskeen wants to merge 1 commit into
Open
fix(de): Correct orthographic and grammatical errors in JS Functions …#281raitaskeen wants to merge 1 commit into
raitaskeen wants to merge 1 commit into
Conversation
…reference While reading through the German translation of the JavaScript Functions reference, I noticed a few minor grammatical inaccuracies and orthographic issues. This commit resolves them by correcting adjective declension errors (updating "strikte Modus" to the proper dative case "strikten Modus"), removing an erroneous comma splice, and applying standard German capitalization rules to compound nouns like "Block-Level-Funktionen". Vielen Dank für die Überprüfung! Ich freue mich darauf, zur deutschen MDN-Community beizutragen.
There was a problem hiding this comment.
Pull request overview
Diese PR aktualisiert die deutsche Übersetzung der MDN-Seite „JavaScript Functions“, um kleinere orthografische/grammatische Fehler zu korrigieren und die Formulierungen natürlicher zu machen.
Changes:
- Anpassung der Terminologie/Schreibweise rund um „strict mode“ und related Formulierungen.
- Entfernen eines fehlerhaften Kommas in einem Satz zu Getter/Setter-Syntax.
- Überarbeitung von Begriffen/Überschriften rund um „Block-Level …“ und „First-Class …“ (inkl. Glossary-Linktext).
Suppressed comments (2)
files/de/web/javascript/reference/functions/index.md:276
- Im Fließtext wird „Block-Level Funktionen“ ebenfalls ohne Bindestrich geschrieben. Wenn die beabsichtigte Korrektur „Block-Level-Funktionen“ ist (PR-Beschreibung), sollte das auch hier konsistent sein.
Im [strikten Modus](/de/docs/Web/JavaScript/Reference/Strict_mode) sind Funktionen innerhalb von Blöcken auf diesen Block begrenzt. Vor ES2015 waren Block-Level Funktionen im strikten Modus verboten.
files/de/web/javascript/reference/functions/index.md:296
- Auch in dieser Überschrift fehlt der Bindestrich im Kompositum; das passt nicht zur in der PR-Beschreibung genannten Zielschreibung („Block-Level-Funktionen“).
### Block-Level Funktionen in nicht-striktem Code
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Allgemein gesprochen ist eine Funktion ein "Unterprogramm", das von externem Code (oder internem Code im Fall von Rekursion) aufgerufen werden kann. Wie das Programm selbst besteht eine Funktion aus einer Abfolge von Anweisungen, die als _Funktionskörper_ bezeichnet werden. Werte können als Parameter an eine Funktion _übergeben_ werden, und die Funktion wird einen Wert _zurückgeben_. | ||
|
|
||
| In JavaScript sind Funktionen {{Glossary("First-class_Function", "first-class objects")}}, da sie an andere Funktionen übergeben, von Funktionen zurückgegeben und Variablen und Eigenschaften zugewiesen werden können. Sie können auch Eigenschaften und Methoden wie jedes andere Objekt haben. Was sie von anderen Objekten unterscheidet, ist, dass Funktionen aufgerufen werden können. | ||
| In JavaScript sind Funktionen {{Glossary("First-Class_Function", "First-Class-Objekte")}}, da sie an andere Funktionen übergeben, von Funktionen zurückgegeben und Variablen und Eigenschaften zugewiesen werden können. Sie können auch Eigenschaften und Methoden wie jedes andere Objekt haben. Was sie von anderen Objekten unterscheidet, ist, dass Funktionen aufgerufen werden können. |
| Beachten Sie, dass diese Syntaxen eine _Objekteigenschaft_ und keine _Methode_ erstellen. Die Getter- und Setterfunktionen selbst können nur mit reflektierenden APIs wie {{jsxref("Object.getOwnPropertyDescriptor()")}} aufgerufen werden. | ||
|
|
||
| ### Block-level Funktionen | ||
| ### Block-Level Funktionen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While reading through the German translation of the JavaScript Functions reference, I noticed a few minor grammatical inaccuracies and orthographic issues. This commit resolves them by correcting adjective declension errors (updating "strikte Modus" to the proper dative case "strikten Modus"), removing an erroneous comma splice, and applying standard German capitalization rules to compound nouns like "Block-Level-Funktionen".
Vielen Dank für die Überprüfung! Ich freue mich darauf, zur deutschen MDN-Community beizutragen.
Description
Fixed minor grammatical typos (dative case declension for "strikten Modus"), removed a comma splice, and corrected the capitalization of compound nouns like "Block-Level-Funktionen" and "First-Class-Objekte".
Motivation
These changes correct minor literal translation artifacts, ensuring the German documentation reads naturally and follows proper orthographic rules for native developers.
Additional details
N/A - Simple typo and grammar fixes.
Related issues and pull requests
N/A