Debian Codegraph @

docs/de/llm-prompt.md

raw
1 ### Target language
2
3 Translate to German (Deutsch).
4
5 Language code: de.
6
7 ### Grammar to use when talking to the reader
8
9 Use the formal grammar (use `Sie` instead of `Du`).
10
11 ### Quotes
12
13 1) Convert neutral double quotes (`"`) to German double typographic quotes (`„` and `“`). Convert neutral single quotes (`'`) to German single typographic quotes (`‚` and `‘`).
14
15 Do NOT convert quotes in code snippets and code blocks to their German typographic equivalents.
16
17 Examples:
18
19 Source (English):
20
21 ```
22 "Hello world"
23 “Hello Universe”
24 "He said: 'Hello'"
25 “my name is ‘Nils’”
26 `"__main__"`
27 `"items"`
28 ```
29
30 Result (German):
31
32 ```
33 „Hallo Welt“
34 „Hallo Universum“
35 „Er sagte: ‚Hallo‘“
36 „Mein Name ist ‚Nils‘“
37 `"__main__"`
38 `"items"`
39 ```
40
41 ### Ellipsis
42
43 - Make sure there is a space between an ellipsis and a word following or preceding the ellipsis.
44
45 Examples:
46
47 Source (English):
48
49 ```
50 ...as we intended.
51 ...this would work:
52 ...etc.
53 others...
54 More to come...
55 ```
56
57 Result (German):
58
59 ```
60 ... wie wir es beabsichtigt hatten.
61 ... das würde funktionieren:
62 ... usw.
63 Andere ...
64 Später mehr ...
65 ```
66
67 - This does not apply in URLs, code blocks, and code snippets. Do not remove or add spaces there.
68
69 ### Headings
70
71 - Translate headings using the infinite form.
72
73 Examples:
74
75 Source (English):
76
77 ```
78 ## Create a Project { #create-a-project }
79 ```
80
81 Result (German):
82
83 ```
84 ## Ein Projekt erstellen { #create-a-project }
85 ```
86
87 Do NOT translate with (German):
88
89 ```
90 ## Erstellen Sie ein Projekt { #create-a-project }
91 ```
92
93 Source (English):
94
95 ```
96 # Install Packages { #install-packages }
97 ```
98
99 Translate with (German):
100
101 ```
102 # Pakete installieren { #install-packages }
103 ```
104
105 Do NOT translate with (German):
106
107 ```
108 # Installieren Sie Pakete { #install-packages }
109 ```
110
111 Source (English):
112
113 ```
114 ### Run Your Program { #run-your-program }
115 ```
116
117 Translate with (German):
118
119 ```
120 ### Ihr Programm ausführen { #run-your-program }
121 ```
122
123 Do NOT translate with (German):
124
125 ```
126 ### Führen Sie Ihr Programm aus { #run-your-program }
127 ```
128
129 - Make sure that the translated part of the heading does not end with a period.
130
131 Example:
132
133 Source (English):
134
135 ```
136 ## Another module with `APIRouter` { #another-module-with-apirouter }
137 ```
138
139 Translate with (German):
140
141 ```
142 ## Ein weiteres Modul mit `APIRouter` { #another-module-with-apirouter }
143 ```
144
145 Do NOT translate with (German) – notice the added period:
146
147 ```
148 ## Ein weiteres Modul mit `APIRouter`. { #another-module-with-apirouter }
149 ```
150
151 - Replace occurrences of literal ` - ` (a space followed by a hyphen followed by a space) with ` – ` (a space followed by a dash followed by a space) in the translated part of the heading.
152
153 Example:
154
155 Source (English):
156
157 ```
158 # FastAPI in Containers - Docker { #fastapi-in-containers-docker }
159 ```
160
161 Translate with (German) – notice the dash:
162
163 ```
164 # FastAPI in Containern – Docker { #fastapi-in-containers-docker }
165 ```
166
167 Do NOT translate with (German) – notice the hyphen:
168
169 ```
170 # FastAPI in Containern - Docker { #fastapi-in-containers-docker }
171 ```
172
173 - Do not apply rule 3 when there is no space before or no space after the hyphen.
174
175 Example:
176
177 Source (English):
178
179 ```
180 ## Type hints and annotations { #type-hints-and-annotations }
181 ```
182
183 Translate with (German) - notice the hyphen:
184
185 ```
186 ## Typhinweise und -annotationen { #type-hints-and-annotations }
187 ```
188
189 Do NOT translate with (German) - notice the dash:
190
191 ```
192 ## Typhinweise und –annotationen { #type-hints-and-annotations }
193 ```
194
195 - Do not modify the hyphens in the content in headers inside of curly braces, which you shall not translate.
196
197 ### German instructions, when to use and when not to use hyphens in words (written in first person, which is you).
198
199 In der Regel versuche ich so weit wie möglich Worte zusammenzuschreiben, also ohne Bindestrich, es sei denn, es ist Konkretesding-Klassevondingen, etwa «Pydantic-Modell» (aber: «Datenbankmodell»), «Python-Modul» (aber: «Standardmodul»). Ich setze auch einen Bindestrich, wenn er die gleichen Buchstaben verbindet, etwa «Enum-Member», «Cloud-Dienst», «Template-Engine». Oder wenn das Wort sonst einfach zu lang wird, etwa, «Performance-Optimierung». Oder um etwas visuell besser zu dokumentieren, etwa «Pfadoperation-Dekorator», «Pfadoperation-Funktion».
200
201
202 ### German instructions about difficult to translate technical terms (written in first person, which is you)
203
204 Ich versuche nicht, alles einzudeutschen. Das bezieht sich besonders auf Begriffe aus dem Bereich der Programmierung. Ich wandele zwar korrekt in Großschreibung um und setze Bindestriche, wo notwendig, aber ansonsten lasse ich solch ein Wort unverändert. Beispielsweise wird aus dem englischen Wort «string» in der deutschen Übersetzung «String», aber nicht «Zeichenkette». Oder aus dem englischen Wort «request body» wird in der deutschen Übersetzung «Requestbody», aber nicht «Anfragekörper». Oder aus dem englischen «response» wird im Deutschen «Response», aber nicht «Antwort».
205
206 ### List of English terms and their preferred German translations
207
208 Below is a list of English terms and their preferred German translations, separated by a colon (:). Use these translations, do not use your own. If an existing translation does not use these terms, update it to use them. In the below list, a term or a translation may be followed by an explanation in brackets, which explains when to translate the term this way. If a translation is preceded by `NOT`, then that means: do NOT use this translation for this term. English nouns, starting with the word `the`, have the German genus – `der`, `die`, `das` – prepended to their German translation, to help you to grammatically decline them in the translation. They are given in singular case, unless they have `(plural)` attached, which means they are given in plural case. Verbs are given in the full infinitive – starting with the word `to`.
209
210 * /// check: /// check | Testen
211 * /// danger: /// danger | Gefahr
212 * /// info: /// info | Info
213 * /// note | Technical Details: /// note | Technische Details
214 * /// note: /// note | Hinweis
215 * /// tip: /// tip | Tipp
216 * /// warning: /// warning | Achtung
217 * you: Sie
218 * your: Ihr
219 * e.g: z. B.
220 * etc.: usw.
221 * ref: Ref.
222 * the Tutorial - User guide: das Tutorial – Benutzerhandbuch
223 * the Advanced User Guide: das Handbuch für fortgeschrittene Benutzer
224 * the SQLModel docs: die SQLModel-Dokumentation
225 * the docs: die Dokumentation (use singular case)
226 * the env var: die Umgebungsvariable
227 * the `PATH` environment variable: die `PATH`-Umgebungsvariable
228 * the `PATH`: der `PATH`
229 * the `requirements.txt`: die `requirements.txt`
230 * the API Router: der API-Router
231 * the Authorization-Header: der Autorisierungsheader
232 * the `Authorization`-Header: der `Authorization`-Header
233 * the background task: der Hintergrundtask
234 * the button: der Button
235 * the cloud provider: der Cloudanbieter
236 * the CLI: Das CLI
237 * the coverage: Die Testabdeckung
238 * the command line interface: Das Kommandozeileninterface
239 * the default value: der Defaultwert
240 * the default value: NOT der Standardwert
241 * the default declaration: die Default-Deklaration
242 * the deployment: das Deployment
243 * the dict: das Dict
244 * the dictionary: das Dictionary
245 * the enumeration: die Enumeration
246 * the enum: das Enum
247 * the engine: die Engine
248 * the error response: die Error-Response
249 * the event: das Event
250 * the exception: die Exception
251 * the exception handler: der Exceptionhandler
252 * the form model: das Formularmodell
253 * the form body: der Formularbody
254 * the header: der Header
255 * the headers (plural): die Header
256 * in headers (plural): in Headern
257 * the forwarded header: der Forwarded-Header
258 * the lifespan event: das Lifespan-Event
259 * the lock: der Lock
260 * the locking: das Locking
261 * the mobile application: die Mobile-Anwendung
262 * the model object: das Modellobjekt
263 * the mounting: das Mounten
264 * mounted: gemountet
265 * the origin: das Origin
266 * the override: Die Überschreibung
267 * the parameter: der Parameter
268 * the parameters (plural): die Parameter
269 * the function parameter: der Funktionsparameter
270 * the default parameter: der Defaultparameter
271 * the body parameter: der Body-Parameter
272 * the request body parameter: der Requestbody-Parameter
273 * the path parameter: der Pfad-Parameter
274 * the query parameter: der Query-Parameter
275 * the cookie parameter: der Cookie-Parameter
276 * the header parameter: der Header-Parameter
277 * the form parameter: der Formular-Parameter
278 * the payload: die Payload
279 * the performance: NOT die Performance
280 * the query: die Query
281 * the recap: die Zusammenfassung
282 * the request (what the client sends to the server): der Request
283 * the request body: der Requestbody
284 * the request bodies (plural): die Requestbodys
285 * the response (what the server sends back to the client): die Response
286 * the return type: der Rückgabetyp
287 * the return value: der Rückgabewert
288 * the startup (the event of the app): der Startup
289 * the shutdown (the event of the app): der Shutdown
290 * the startup event: das Startup-Event
291 * the shutdown event: das Shutdown-Event
292 * the startup (of the server): das Hochfahren
293 * the startup (the company): das Startup
294 * the SDK: das SDK
295 * the tag: der Tag
296 * the type annotation: die Typannotation
297 * the type hint: der Typhinweis
298 * the wildcard: die Wildcard
299 * the worker class: die Workerklasse
300 * the worker class: NOT die Arbeiterklasse
301 * the worker process: der Workerprozess
302 * the worker process: NOT der Arbeiterprozess
303 * to commit: committen
304 * to deploy (in the cloud): deployen
305 * to modify: ändern
306 * to serve (an application): bereitstellen
307 * to serve (a response): ausliefern
308 * to serve: NOT bedienen
309 * to upgrade: aktualisieren
310 * to wrap: wrappen
311 * to wrap: NOT hüllen
312 * `foo` as a `type`: `foo` vom Typ `type`
313 * `foo` as a `type`: `foo`, ein `type`
314 * FastAPI's X: FastAPIs X
315 * Starlette's Y: Starlettes Y
316 * X is case-sensitive: Groß-/Klein­schrei­bung ist relevant in X
317 * X is case-insensitive: Groß-/Klein­schrei­bung ist nicht relevant in X
318 * standard Python: Standard-Python
319 * deprecated: deprecatet
320
321
322 ### Other rules
323
324 Preserve indentation. Keep emojis. Encode in utf-8. Use Linux line breaks (LF).